Re: Formatting Python code

2022-05-30 Thread Herbert Voss



Am 30.05.22 um 15:38 schrieb Rich Shepard:
Here's an issue that's appeared twice (so far) in the document and I 
cannot

find the reason.


you have set the listings option "showspaces" and also one indention 
with spaces

instead of tabs.

"showspaces" makes no sense with python code.

Herbert





The *.lyx code in a Program Listing environment looks like this:
-
\begin_layout Plain Layout

    self.sheet = Sheet(self.frame,
\end_layout

\begin_layout Plain Layout

  data = [[f"Row {r},
\end_layout

\begin_layout Plain Layout

  Column {c}
\backslash
nnewline1
\backslash
nnewline2"
\end_layout

\begin_layout Plain Layout

  for c in range(50)]
\end_layout

\begin_layout Plain Layout

  for r in range(500)]) \end_layout
-
The same code in the *.tex file is:
    self.sheet = Sheet(self.frame,
  data = [[f"Row {r},
  Column {c}\nnewline1\nnewline2"
  for c in range(50)]
  for r in range(500)]) --
So why does the pdflatex *.pdf display the attached with small space 
symbols?


Rich



--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Formatting Python code

2022-05-30 Thread Herbert Voss



Am 30.05.22 um 14:48 schrieb Rich Shepard:


I learned the reason for the spacing issues is that the program listing
environment does not support tabs for white space, only spaces. Kinda' 
hard

on the keyboard's space bar. :-)


It _does_ support tab characters, e.g.

\documentclass{article}
\usepackage{listings}
\begin{document}

\lstset{tabsize=8}
\begin{lstlisting}
123456789
    { one tabulator }
    { two tabs }
    123
    { 123+two tabs }
123
\end{lstlisting}
\end{document}


the output:


Herbert-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Chrome and Edge says the LyX website is NOT private and NOT secure

2022-05-27 Thread Herbert Voss



Am 26.05.22 um 23:03 schrieb Jean-Marc Lasgouttes:

Le 26/05/2022 à 13:43, Erez Yerushalmi a écrit :

Hi

Lyx is my favourite editor, so I wanted to inform you that in the 
past few days, both Chrome and Edge tells us that the lyx.org 
 website is NOT private and NOT secure.


I don't know the reason.  Potential users might be diverted away.


Dear Erez,

Indeed, there is a problem on our side. Unfurtunately our certificate 
expert is not available right now. I tried to fix this myself, without 
much success. We'll fix that as fast as we can.



you are using lets encrypt:##

/usr/bin/certbot --quiet renew


Herbert

--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Polyglossia

2022-05-20 Thread Herbert Voss



Am 20.05.22 um 09:50 schrieb Wolfgang Engelmann:



Am 19.05.22 um 20:00 schrieb Jürgen Spitzmüller:

Am Donnerstag, dem 19.05.2022 um 17:48 +0200 schrieb Wolfgang
Engelmann:

shouldn't it has been updated with texhash?


texhash only updates the local filename hash. To update packages, you
need to use your package manager.



sudo apt-get install polyglossia


Wolfgang,
that is the problem: You have TeXLive installed in /usr/local/texlive/2022
and also the Debian specifc one in /usr/share/

That makes no sense. Use _always_ and only the first one
and if you want to update packages then download the zip-file
from CTAN or git and look for the directory of the package

kpsewhich polyglossia.sty

In general you should save own packages in /usr/local/texlive/texmf-local/..
But in this case you could use the official one for polyglossia.

Herbert



--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Polyglossia

2022-05-19 Thread Herbert Voss

Am 19.05.22 um 17:33 schrieb Wolfgang Engelmann:




I did texhash (also under sudo) and reconfigure and reload of the lyx 
file, but get still:



although find -iname 'language.dat.lua' shows, that it exists:

./usr/share/texlive/texmf-dist/tex/latex/polyglossia/gloss-latex.ldf


that's not important. It should be foud by

kpsewhich -all gloss-latex.ldf

However, I get no output, because my file has the
extension .lde instead of .ldf  !!





and

./usr/local/texlive/2021/texmf-var/tex/generic/config/language.dat.lua
./usr/local/texlive/2021/texmf-dist/tex/generic/config/language.dat.lua
./usr/local/texlive/2022/texmf-var/tex/generic/config/language.dat.lua
./usr/local/texlive/2022/texmf-dist/tex/generic/config/language.dat.lua



you have two different directories and I suppose that you saved
the new polyglossia in the wrong one. The correct path can be listed

kpsewhich polyglossia.sty

Herbert
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Jabref error

2022-05-17 Thread Herbert Voss



Am 17.05.22 um 11:24 schrieb Wolfgang Engelmann:

Slightly OT

I use jabref as a reference manager for including literature in my lyx 
documents.

I get a very annoying error >
The library has been modified by another program
 and I don't know how to handle it.

I use
JabRef 5.6--2022-04-25--5c9d898
Linux 5.10.0-14-amd64 amd64

and according to a search in the internet this error should not occur 
in version 5.6 anymore.


Has somebody a solution? I tried various changes in the preferences, 
without success so far.


Another program or instance of JabRef changed the current open file.
You could _reload_ the bib file and save it again.

Herbert
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: How to add Hebrew hyphenruls?

2022-03-21 Thread Herbert Voss via lyx-users



Am 21.03.22 um 16:53 schrieb tush via lyx-users:
I am writing a document in Hebrew. Choosing "Hebrew" as the document's 
language together with Language Package Automatic (and ticking "Use 
Non TeX font") adds the following to the preamble:


\usepackage{polyglossia}
\setdefaultlanguage{hebrew}
\setotherlanguage{english}
(which is correct)

Now I want to add some Hebrew hyphenation rules. For that one should 
add after the above three lines the rules as an hyphenrules 
environment, like the following:


\begin{hyphenrules}{hebrew}

\hyphenation{או-פ-ט-י-מ-ליות}

\end{hyphenrules}

These kind of rules should appear after loading polyglossia.



Try in the documents preamble:

\AtBeginDocument{%
  \begin{hyphenrules}{hebrew}

\hyphenation{או-פ-ט-י-מ-ליות}

  \end{hyphenrules}}


Herbert






How can I tell LyX about those hyphenrules? If I insert it to the 
document preamble via the document settings dialogue, then the rules 
are called *before*​ polyglossia and I get an error.


Any idea or suggestion for that?

The other thing I can do is to choose "None" in the Language package 
and just type manually all the commands (use polyglossia, declare 
languages, state the hyphen rules).


But that sort of misses the help LyX editor offers me - to type 
manually less commands.




--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Solved and addendum >Re: biblatex-spbasic

2022-03-16 Thread Herbert Voss via lyx-users




Am 16.03.22 um 09:08 schrieb Wolfgang Engelmann via lyx-users:



Am 16.03.22 um 08:59 schrieb Herbert Voss via lyx-users:



Am 16.03.22 um 08:46 schrieb Wolfgang Engelmann via lyx-users:


I selected biblatex citation style Nature and kept biblatex-spbasic 
for the bibliography style. The citations are now in [number], but 
that's ok.

Thanks, Herbert, for the suggestion.

Wolfgang


Addendum:

This is of course nonsense:

"I selected biblatex citation style Nature and kept biblatex-spbasic 
for

> the bibliography style."

I can't keep biblatex-spbasic, since it is not numeric.
The bibliography style should also be Nature



It is possible to combine the styles:

citestyle=nature, bibstyle=sbbasic

Herbert


You mean biblatex-spbasic (selected from the Biblatex bibliography 
style menu)? But this does not give numbers in the Bibliography, i.e. 
you can't find your citations there.



yes, I meant it more generally. For your need it makes sense to have

citestyle=nature, bibstyle=numeric

Herbert
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Solved and addendum >Re: biblatex-spbasic

2022-03-16 Thread Herbert Voss via lyx-users




Am 16.03.22 um 08:46 schrieb Wolfgang Engelmann via lyx-users:


I selected biblatex citation style Nature and kept biblatex-spbasic 
for the bibliography style. The citations are now in [number], but 
that's ok.

Thanks, Herbert, for the suggestion.

Wolfgang


Addendum:

This is of course nonsense:

"I selected biblatex citation style Nature and kept biblatex-spbasic for
> the bibliography style."

I can't keep biblatex-spbasic, since it is not numeric.
The bibliography style should also be Nature



It is possible to combine the styles:

citestyle=nature, bibstyle=sbbasic

Herbert
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Continuation of lists across beamer frames

2022-03-15 Thread Herbert Voss via lyx-users



Am 15.03.22 um 21:48 schrieb Paul A. Rubin via lyx-users:

On 3/15/22 15:29, Herbert Voss via lyx-users wrote:



Am 15.03.22 um 19:36 schrieb Paul A. Rubin via lyx-users:

On 3/15/22 13:07, markhsalmon wrote:
Thank you Paul, I really appreciate your response but this is such 
a common issue - at least for me- every lecture pack I produce has 
this problem perhaps every 5 slides so its really driving me round 
the bend. I just leave the environment behind by default and 
manually add the next number  but it looks cheap and nasty. Why 
can’t there be an option to restart previous numbering? I seem to 
remember that option exists in scientific word so it must be 
possible to implement this as a very simple click choice? I have 
been pointed to the ERT route before but this is really a cry to 
the developers of Lyx. Thanks again Paul.

Cheers,
Mark

Decision making is about predicting counterfactuals


My bad. I forgot that one of the devs (Jürgen?) already created a 
workaround in the form of a module. I've attached a different MWE. 
You just have to add the "Beamer Resumable Enumerate" module and 
then choose "Enumerate-Resume" rather than "Enumerate" from the 
environment selection list.


using package enumitem, defining an own list

\newlist{myEnum}{enumerate}{3}
\setlist{myEnum}{resume}

putting it into a LyX layout and you can use the new list myEnum 
which always

has a continuing counter.

Herbert
Is enumitem compatible with Beamer? The Beamer layout forbids the 
enumitem module.


Ah, yes. I forgot ot. But is no problem to define it without enumitem!

Herbert
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Continuation of lists across beamer frames

2022-03-15 Thread Herbert Voss via lyx-users



Am 15.03.22 um 19:36 schrieb Paul A. Rubin via lyx-users:

On 3/15/22 13:07, markhsalmon wrote:
Thank you Paul, I really appreciate your response but this is such a 
common issue - at least for me- every lecture pack I produce has this 
problem perhaps every 5 slides so its really driving me round the 
bend. I just leave the environment behind by default and manually add 
the next number  but it looks cheap and nasty. Why can’t there be an 
option to restart previous numbering? I seem to remember that option 
exists in scientific word so it must be possible to implement this as 
a very simple click choice? I have been pointed to the ERT route 
before but this is really a cry to the developers of Lyx. Thanks 
again Paul.

Cheers,
Mark

Decision making is about predicting counterfactuals


My bad. I forgot that one of the devs (Jürgen?) already created a 
workaround in the form of a module. I've attached a different MWE. You 
just have to add the "Beamer Resumable Enumerate" module and then 
choose "Enumerate-Resume" rather than "Enumerate" from the environment 
selection list.


using package enumitem, defining an own list

\newlist{myEnum}{enumerate}{3}
\setlist{myEnum}{resume}

putting it into a LyX layout and you can use the new list myEnum which 
always

has a continuing counter.

Herbert
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: biblatex-spbasic

2022-03-14 Thread Herbert Voss via lyx-users



Am 14.03.22 um 08:07 schrieb Herbert Voss via lyx-users:



Am 14.03.22 um 07:58 schrieb Herbert Voss via lyx-users:



Am 14.03.22 um 07:53 schrieb Wolfgang Engelmann via lyx-users:



Am 14.03.22 um 07:51 schrieb Herbert Voss via lyx-users:

Am 14.03.22 um 07:47 schrieb Wolfgang Engelmann via lyx-users:




Example:
was shown by Muller^7 and ...
The Bibliography shows the full reference Muller...



This _is_ \footcite{key} with a short reference as footnote and 
bib as usual.


Herbert


I meant ONLY the ^7, WITHOUT the footnote


then you also need a bibliography in numeric style. But spbasic has
a bib in author-year-style

Herbert


What would be the next best numeric style to spbasic ?


there is no best, it is the default  style "numeric" with changing \cite
to footnotes.



You can try "style=nature"   instead of footnotes



sorry, read "instead of numeric"

Herbert
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: biblatex-spbasic

2022-03-14 Thread Herbert Voss via lyx-users



Am 14.03.22 um 07:58 schrieb Herbert Voss via lyx-users:



Am 14.03.22 um 07:53 schrieb Wolfgang Engelmann via lyx-users:



Am 14.03.22 um 07:51 schrieb Herbert Voss via lyx-users:

Am 14.03.22 um 07:47 schrieb Wolfgang Engelmann via lyx-users:




Example:
was shown by Muller^7 and ...
The Bibliography shows the full reference Muller...



This _is_ \footcite{key} with a short reference as footnote and 
bib as usual.


Herbert


I meant ONLY the ^7, WITHOUT the footnote


then you also need a bibliography in numeric style. But spbasic has
a bib in author-year-style

Herbert


What would be the next best numeric style to spbasic ?


there is no best, it is the default  style "numeric" with changing \cite
to footnotes.



You can try "style=nature"   instead of footnotes
It is the style from the "nature" journal.

Herbert
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: biblatex-spbasic

2022-03-14 Thread Herbert Voss via lyx-users



Am 14.03.22 um 07:53 schrieb Wolfgang Engelmann via lyx-users:



Am 14.03.22 um 07:51 schrieb Herbert Voss via lyx-users:

Am 14.03.22 um 07:47 schrieb Wolfgang Engelmann via lyx-users:




Example:
was shown by Muller^7 and ...
The Bibliography shows the full reference Muller...



This _is_ \footcite{key} with a short reference as footnote and bib 
as usual.


Herbert


I meant ONLY the ^7, WITHOUT the footnote


then you also need a bibliography in numeric style. But spbasic has
a bib in author-year-style

Herbert


What would be the next best numeric style to spbasic ?


there is no best, it is the default  style "numeric" with changing \cite
to footnotes.

Herbert
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: biblatex-spbasic

2022-03-14 Thread Herbert Voss via lyx-users

Am 14.03.22 um 07:47 schrieb Wolfgang Engelmann via lyx-users:




Example:
was shown by Muller^7 and ...
The Bibliography shows the full reference Muller...



This _is_ \footcite{key} with a short reference as footnote and bib 
as usual.


Herbert


I meant ONLY the ^7, WITHOUT the footnote


then you also need a bibliography in numeric style. But spbasic has
a bib in author-year-style

Herbert
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: biblatex-spbasic

2022-03-14 Thread Herbert Voss via lyx-users



Am 14.03.22 um 07:37 schrieb Wolfgang Engelmann via lyx-users:



Am 13.03.22 um 07:41 schrieb Herbert Voss via lyx-users:



Am 12.03.22 um 17:53 schrieb Wolfgang Engelmann via lyx-users:
I would like to use biblatex-spbasic for the literature citations 
and the Bibliography.


I have selected the style in Document Settings>Bibliography.

However, I would like to have a superscript number instead of the 
names/years in the document. The output in the Bibliography should 
be as before.



Do you mean \footcite and /or \footfullcite  ??   If yes, see 
documentation.


Herbert




Is this possible already or do I have to wait until somebody is kind 
enough to create it?


The reason is, that I have a large amount of citations in the 
document and reading the text would be less fluent if the names/year 
is given instead of just a superscript.




Example:
was shown by Muller^7 and ...
The Bibliography shows the full reference Muller...



This _is_ \footcite{key} with a short reference as footnote and bib as 
usual.


Herbert

--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: biblatex-spbasic

2022-03-12 Thread Herbert Voss via lyx-users



Am 12.03.22 um 17:53 schrieb Wolfgang Engelmann via lyx-users:
I would like to use biblatex-spbasic for the literature citations and 
the Bibliography.


I have selected the style in Document Settings>Bibliography.

However, I would like to have a superscript number instead of the 
names/years in the document. The output in the Bibliography should be 
as before.



Do you mean \footcite and /or \footfullcite  ??   If yes, see documentation.

Herbert




Is this possible already or do I have to wait until somebody is kind 
enough to create it?


The reason is, that I have a large amount of citations in the document 
and reading the text would be less fluent if the names/year is given 
instead of just a superscript.


--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Vertical spaces between references.

2022-02-21 Thread Herbert Voss via lyx-users



Am 21.02.22 um 13:04 schrieb ananda.samaddar via lyx-users:
Apologies for top-posting.  Kmail is a buggy POS and just will not 
work properly replying to mailing lists so I have to use the webclient.


Sorry if I'm being a bit stupid here but adding:

\bibitemsep
\setlength\bibitemsep{2mm}

to the preamble results in compilation errors for me the log output is 
below:



A misunderstanding. The first command was only from my
 description. However, you yeed the following in the preamble:

\AtBeginDocument{\setlength\bibitemsep{2mm}}

because LyX loads biblatex later and until then \bibitemsep
is unknown. Let ME know if you need an example file

Herbert

--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Vertical spaces between references.

2022-02-21 Thread Herbert Voss via lyx-users

Am 21.02.22 um 11:51 schrieb Ananda Samaddar via lyx-users:

I can't seem to find a way to add vertical space in between my biblatex
generated bibliography.  I'm using the verbose-inote style for my bibliography
with biblatex using biber as a processor. I'm sure it's something silly that
I've missed somewhere so any help would be appreciated.


Write into the preamble:

\bibitemsep The vertical space between the individual entries in the 
bibliography.



Use \setlength\bibitemsep{2mm}  or \addtolength\bibitemsep{1mm}

Herbert
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Index pagestyle

2022-02-20 Thread Herbert Voss via lyx-users




Am 20.02.22 um 18:45 schrieb _johnny7_ger--- via lyx-users:

I have almost finished my book and have now begun to add an index. It
works fine, so far, but the page layout of the index is not perfect. I
use fancyhdr and have added (thanks to the LyX Wiki)
\renewcommand{\ps@plain}{\pagestyle{fancy}}
in the preamble. Now the first page of the index looks like it should,
giving only the page number. 


That is the default for a chapter start, like \printindex: pagestyle
is here _always_ plain! The next page gets the current pagestyle fancy,
if you have it already set.


On the second page, however, the header
shows the index title in uppercase-letters as opposed to my definition
of the pagestyle fancy (small capitals). I tried to write
\markboth{}{}


Witg fancyhdr you can set individually header/footer at any
position in your text. No need for using \markboth

Herbert




before printing the index to suppress the header but that only has an
effect on the first page of the index, not the following.

How can I control the page layout of the index? If possible I want to
avoid using a style file for makeindex.


--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Program Listings

2022-01-13 Thread Herbert Voss via lyx-users
Joseph Hesse via lyx-users schrieb:
> On 1/12/22 15:00, Herbert Voss via lyx-users wrote:

>>
>> Use /Insert -> Program Listing/ option.
>>
>
> I tried what you suggested.  I right clicked on the inset and could not
> find an option where I could specify where my code listing are located.


What do you mean with "listing are located"? If you do not define it
as a float it will appear at the place where you defined it.

Attached the screenshot of the output of the demo file.

Herbert

lst1.lyx
Description: Binary data
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Program Listings

2022-01-12 Thread Herbert Voss via lyx-users



Am 12.01.22 um 13:22 schrieb Joseph Hesse via lyx-users:
I am writing a programing book and want to have programs that have 
been prepared with a text editor included in the book.  This is what I 
have done so far.


Insert->File->Child Document

File: CodeListings/Test.cpp
Include Type: Program Listing
Caption: My Caption
Label: First Program

More Parameters: numbers=left, frame=tb, caption=b, float

It sort of works but I need assistance.
The caption I have set above does not appear on the bottom as 
"caption=b" would suggest.

The label I have set above does not appear anywhere.

I would like the text of the inserted program to have "typewriter" 
font and be colored green.  How do I do this.


Am I on the right track, is the above the correct way of doing what I 
want?


Use /Insert -> Program Listing/ option.

Herbert
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: biblatex error. Can't get correct pdf output

2022-01-08 Thread Herbert Voss via lyx-users

Am 08.01.22 um 12:01 schrieb Wolfgang Engelmann via lyx-users:

However:
A08-TEST.lyx
with SP-WITTE-2022.bib
does not show the references in the bibliography and the one in the 
text is bold, not blue


These are the errors/warnings:
Biber error: BibTeX subsystem: 
/tmp/biber_tmp_tYGf/d7dc170ec507816e85d64326c042e07e_5570.utf8, line 
2837, syntax error: found ",", expected one of: number, name (entry 
type, key, field, or macro name), end of entry ("}" or ")") or quoted 
string ({...} or "...")


and descripition of error:
[6143] Utils.pm:411> ERROR - BibTeX subsystem: 
/tmp/biber_tmp_tYGf/d7dc170ec507816e85d64326c042e07e_5570.utf8, line 
2837, syntax error: found ",", expected one of: number, name (entry 
type, key, field, or macro name), end of entry ("}" or ")") or quoted 
string ({...} or "...")


Wolfgang,
the error message says it all:  Line 2837 of the bib file is a problem 
or at least the line

where something is detected as wrong. And in that line biber found a comma
but expected a number or name to read ...

Line 2837 is:

@InBook{,
...


There is the key missing, for example

@InBook{Ding2019,
...

btw: do not attached the biblatex-spbasic, it is already part of
TeXLive and MiKTeX.

Herbert


--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: TOC in pdf colored red

2022-01-08 Thread Herbert Voss via lyx-users



On 08/01/2022 06:32, Joseph Hesse via lyx-users wrote:

Hi,
I am writing a book in lyx.  When I look at the pdf the TOC appears 
red.  How can I fix this so it is in black and white?  I want to keep 
my URL links as colored blue.


Go into  the preferences menue and insert the following options for hyperref

    colorlinks,
    citecolor=black,
    filecolor=black,
    linkcolor=black,
    urlcolor=blue,
    linktocpage,
    linktoc=all


Herbert
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: How to (re)run biber

2022-01-07 Thread Herbert Voss via lyx-users

Am 07.01.22 um 15:18 schrieb Wolfgang Engelmann via lyx-users:
a short lyx file (attached) with just one reference and some text is 
not correctly exported to lualatex pdf (thick reference instead of a 
blue reference, no bibliography shown).


I use lualatex and the biblatex-spbasic style file (attached).
In the latex log I am told to rerun biber:

Package biblatex Warning: Please (re)run Biber on the file:

Question: Why do I have to (re)run biber and how is it done?



Wolfgang,

your example cannot work! In the lyx file you have defined:

bibfiles "SP-WITTE-2022-AUX"

but your attached bibfile has the filename: "OneRef.bib"

Changing the filename with clicking on the "prinbibliography" button in
the opened  LyX file to the correct one and then running the document
everything is fine.

Herbert
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: lyx_tmpdirs in /tmp

2022-01-05 Thread Herbert Voss via lyx-users



Am 05.01.22 um 19:08 schrieb Wolfgang Engelmann via lyx-users:



On 05.01.22 18:08, Wolfgang Engelmann via lyx-users wrote:



On 05.01.22 16:59, Paul A. Rubin via lyx-users wrote:

On 1/5/22 8:29 AM, Wolfgang Engelmann via lyx-users wrote:

Can I delete the lyx_tmpdirs in the root /tmp?
I have the impression, that a rerun of lyx uses it, which I do not 
want.


I run the current development version and all temp files are
deleted by default when closing LyX.


> I have removed the /lyx_tmpbuf folder, but in running lyx again I get 
an error reading in temporal layout information and

could not open /lyx_tmpbuf ... .tex
Will wait until tomorrow and hope the temporal files are gone.



start LyX and controll the ownership of the temporary directory.
It should be  own by the user.

Herbert
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: How would LyX perform?

2021-12-31 Thread Herbert Voss via lyx-users



Am 31.12.21 um 01:41 schrieb Steve Litt via lyx-users:

Herbert Voss via lyx-users said on Thu, 30 Dec 2021 14:52:15 +0100


Am 30.12.21 um 14:46 schrieb Steve Litt via lyx-users:

Wolfgang Engelmann via lyx-users said on Mon, 27 Dec 2021 11:31:55
+0100

This has shocked me
https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0115069

Would be interesting to see how LyX performs

Plain TeX would be much better than LaTeX, as a native format, if it
could handle fonts well. Does anyone know of a Plain TeX to LuaTeX or
XeTeX converter?

What do you want to convert?? Every Plain TeX document runs with
LuaTeX or XeTeX,
but, of course, not vice versa!

My thought is that I need to convert because I need to use the
tex-gyre-schola font, and as far as I know, Plain TeX won't accommodate
this font. So, as I understand it, my process would need to be:

1: Write in Plain TeX with whatever font is available

2: Convert Plain TeX to LuaTeX



You only have to load the font, tha's all ...

\input luaotfload.sty
\font\rm="[texgyreschola-regular.otf]:+lnum;+dlig"
\font\bf="TeXGyre Schola/B:+lnum;+dlig"
\font\it="TeXGyre Schola/I:+lnum;+dlig"
\font\bfit="TeXGyre Schola/BI:+lnum;+dlig" at 15pt

\rm
TeX Gyre Schola regular

\bf TeX Gyre Schola bold

\it TeX Gyre Schola italic

\bfit  TeX Gyre Schola bolditalic
\bye


Herbert






3: Use AWK to replace the font with tex-gyre-schola

4: Compile to PDF

The reason I need this is I could *easily* convert from (X)HTML5 to
Plain TeX. If I can go the rest of the way I can make a nice PDF from
XHTML5.

But I have neither the programming skills nor the LaTeX knowledge to
create LaTeX from XHTML5.

Thanks,

SteveT

Steve Litt
Spring 2021 featured book: Troubleshooting Techniques of the Successful
Technologist http://www.troubleshooters.com/techniques


--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: How would LyX perform?

2021-12-30 Thread Herbert Voss via lyx-users

Am 30.12.21 um 14:46 schrieb Steve Litt via lyx-users:

Wolfgang Engelmann via lyx-users said on Mon, 27 Dec 2021 11:31:55 +0100


This has shocked me
https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0115069

Would be interesting to see how LyX performs


Plain TeX would be much better than LaTeX, as a native format, if it
could handle fonts well. Does anyone know of a Plain TeX to LuaTeX or
XeTeX converter?


What do you want to convert?? Every Plain TeX document runs with LuaTeX 
or XeTeX,

but, of course, not vice versa!

Herbert
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: LyX-LaTeX to Web

2021-12-22 Thread Herbert Voss via lyx-users




Am 22.12.21 um 11:07 schrieb Baris Erkus via lyx-users:
I wonder if LyX or any other LaTeX based tool can be used to generate 
web site of a book as in the following example:


export your document to LaTeX and then run latex2html
https://ctan.org/pkg/latex2html?lang=de

Herbert




https://learnaboutstructures.com/Common-Load-Types-for-Beams-and-Frames

Any direction would be appreciated.



--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: biblatex warning

2021-12-22 Thread Herbert Voss via lyx-users



Am 22.12.21 um 10:50 schrieb Wolfgang Engelmann via lyx-users:

What does
Package biblatex Warning: Macro 'note+pages' already defined.
mean?


Instead of \renewbibmacro there is a \newbibmacro in spbasic.bbx
Will be fixed, but already doesn't hurt.



These are the surrounding messages:

Package biblatex Info: Delimiter 'nametitledelim' in context 'bib' 
already defined, overwriting.
Package biblatex Info: Delimiter 'nametitledelim' in context 'biblist' 
already defined, overwriting.
Package biblatex Info: Delimiter 'finalnamedelim' in context '' 
already defined, overwriting.


Only infos that spbasic.bbx redefines existing delimiters.


Herbert




Package biblatex Warning: Macro 'note+pages' already defined.
(biblatex)    Using \renewbibmacro.

)
Package biblatex Info: Trying to load citation style 
'biblatex-spbasic'...

Package biblatex Info: ... file 'biblatex-spbasic.cbx' found.

Wolfgang


--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: texlive and biblatex-spbasic

2021-12-20 Thread Herbert Voss via lyx-users



Am 20.12.21 um 19:20 schrieb Kornel Benko via lyx-users:

Am Mon, 20 Dec 2021 19:17:49 +0100
schrieb Wolfgang Engelmann via lyx-users :


Am 20.12.21 um 18:18 schrieb Herbert Voss via lyx-users:

Thanks, Herbert, for your help. One more question for chmod which did
not work:

   And if you do not run the tlmgr as root

then you do not need it for texhash. I prefer always user permissions for
texlive. The reason why I did after installtion of texlive:

sudo chmod -R voss:voss /usr/local/texlive
   

sudo chmod -R wolfgang:wolfgang /usr/local/texlive/
chmod: Ungültiger Modus: „wolfgang:wolfgang“
„chmod --help“ liefert weitere Informationen.

sudo chmod -R wolfgang /usr/local/texlive/
chmod: Ungültiger Modus: „wolfgang“

   who am i
wolfgang pts/22021-12-20 18:52 (:0)

who
wolfgang tty7 2021-12-20 10:16 (:0)
wolfgang pts/02021-12-20 10:16 (:0)
wolfgang pts/22021-12-20 18:52 (:0)
wolfgang pts/32021-12-20 10:16 (:0)

I do not know what would replace voss:voss in my case.

Wolfgang


You meant 'chown' probably.



Uh, yes!
Sorry Wolfgang and thanks Kornel

sudo chown -R voss:voss /usr/local/texlive



Herbert
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: texlive and biblatex-spbasic

2021-12-20 Thread Herbert Voss via lyx-users



Am 20.12.21 um 17:49 schrieb Wolfgang Engelmann via lyx-users:
I would like to better understand the tree(s) for texlive and what 
texhash and tlmgr do


The important points are found behind the  at the end of the mail.

Thanks a lot

Wolfgang

Your installed tlmgr will notice and ask you to update it before 
updating anything else. The command to do this is: tlmgr update --self 
After any updates of tlmgr, you can then run, for instance, tlmgr 
update --all, which will update (including additions and removals) all 
other packages in your installation that have been changed on the server.


sudo tlmgr update --self
[sudo] Passwort für wolfgang:
tlmgr: package repository 
https://ftp.tu-chemnitz.de/pub/tex/systems/texlive/tlnet (verified)

tlmgr: saving backups to /usr/local/texlive/2021/tlpkg/backups
tlmgr: no self-updates for tlmgr available

tlmgr update --all



Wolfgang,

you can run

tlmgr --self --all update

then you do not need two  comamnds



sudo texhash


that is already done my tlmgr.  And if you do not run the tlmgr as root
then you do not need it for texhash. I prefer always user permissions for
texlive. The reason why I did after installtion of texlive:

sudo chmod -R voss:voss /usr/local/texlive

then everything in this directors has user permission! And I never
need sudo to run texhash or tlmgr or 



wolfgang@Fuji:~$ find -iname 'texmf*'
./.texlive2020/texmf-var
./.texlive2016/texmf-var
./TEXMF-Sicherung
./TEXMF-Sicherung/texmf
./.texlive2019/texmf-var
./texmf
./.texlive2021/texmf-var

wolfgang@Fuji:/$ sudo find -iname 'texmf*'
./root/.texlive2020/texmf-var


this is always created if you install texlive as root and running
tlmgr also as root.

If you want to see which package is used, run

kpsewhich biblatex-spbasic.sty

then you'll get what TeX will find first and using. With

kpsewhich --all biblatex-spbasic.sty

you'll get all files in the TeX dirextory structure.


wolfgang@Fuji:/usr/local/texlive/texmf-local$ ls -l
insgesamt 52
-rw-r--r-- 1 wolfgang wolfgang 1943 15. Dez 15:02 biblatex-spbasic.bbx
-rw-r--r-- 1 wolfgang wolfgang 2601 15. Dez 15:02 biblatex-spbasic.cbx
-rw-rw-rw- 1 root staff    1578 10. Jul 20:01 
biblatex-spbasic-old.bbx
-rw-r--r-- 1 root staff 295 10. Jul 20:06 
biblatex-spbasic-old.cbx


 Questions:
How do I make sure the new version is used?


first the current directory is searched, then an existing texmf directory,
then the texmf-local directory, then the main texmf-dist/...


Should I remove the older biblatex-spbasic?


rename the old files to for example:

biblatex-spbasic.bbx.20211212


How do I tell lyx to use the new version?



It will be used automatically if you rename the old files.

Herbert


--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Forest beyond basics

2021-12-20 Thread Herbert Voss via lyx-users



Am 19.12.21 um 22:24 schrieb Steve Litt via lyx-users:

Maria Gouskova via lyx-users said on Sun, 19 Dec 2021 12:20:15 -0500


Dear LyX users,
<
(Actually, I suspect this is a question for Jürgen S., but on the off
chance that someone else knows the answer...)

I need to produce a diagram with the structure shown here. It was
produced using the obsolete xyling package


LyX and LaTeX were never intended to make drawings or diagrams. Not
really.


That is not true! From the beginning of LaTeX there was the picture
environment with, of course, limited capability. But it was good enough
for simple diagrams/graphics.

Herbert







it in your LyX document just like you'd put any old .png or more to the
point .svg. LyX automatically recompiles your Inscape-produced .svg
into a PDF suitable for LyX/LaTeX upon finding that the .svg has
changed.

You know what it's supposed to look like, so you can draw it yourself.
For new work where you need a new "forest", whatever this "forest"
thing is, find a forest making software that can export to .svg,
and then you can either use that .svg, or modify it a little in
Inkscape.

SteveT

Steve Litt
Spring 2021 featured book: Troubleshooting Techniques of the Successful
Technologist http://www.troubleshooters.com/techniques


--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: LuaTeX vs XeTeX

2021-12-18 Thread Herbert Voss via lyx-users



Am 17.12.21 um 20:20 schrieb Virgil Arrington:


*From: *Herbert Voss via lyx-users <mailto:lyx-users@lists.lyx.org>
*Sent: *Friday, December 17, 2021 6:06 AM
*To: *lyx-users@lists.lyx.org
*Subject: *Re: LuaTeX vs XeTeX

Am 16.12.21 um 22:12 schrieb Virgil Arrington via lyx-users:
> > Starting with the completely clean files, I added the Microtype
> > package to both and compiled them. As with my first test, I got
> > different results. XeTeX once again produced many more hyphenated
> > lines -- essentially the same as it produced without Microtype -- 
than

> > did LuaTeX. Neither produced any significant overfull lines at the
> > right margin.
> >
> > So, it seems as if Microtype behaves differently with XeTeX and 
LuaTeX

> > -- at least on my system.
> >

> Sure, microtype for xetex is not the same as microtype for luatex.

So, I’ve learned a lot in the last couple days. Let’s see if I have 
this right.


1. PDFLaTeX creates documents using fonts supplied in the TeX 
distribution.


2. XeTeX creates documents using fonts supplied by the Operating System.



also the ones from the TeX distribution if defined by the font's filename.
Then kpsewhich can find the font.


3. LuaTeX can create documents using fonts from either the TeX 
distribution OR the OS system.




luatex defines an own font database which also has the symbolic names of 
the fonts saved.

.../texmf-var/luatex-cache/generic/names/luaotfload-names.lua.gz


Herbert



If I am right about #3, then I more fully understand Herbert’s 
original assertion that, with LuaTeX, there’s no reason to resort to 
PDF(La)TeX (or XeTeX for that matter).


Virgil

--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users



--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: LuaTeX vs XeTeX

2021-12-17 Thread Herbert Voss via lyx-users



Am 17.12.21 um 15:03 schrieb Neal Becker:

I thought all LaTeX have to pass strict tests and produce identical
results.  Any difference due to different fonts.  Is this correct?


no. It is correct only for TeX, the original one! run the example with
pdftex, xetex, and  luatex

\hsize 1cm
internationalizationmachinery is a long word

\bye

Herbert




On Fri, Dec 17, 2021 at 6:06 AM Herbert Voss via lyx-users
 wrote:

Am 16.12.21 um 22:12 schrieb Virgil Arrington via lyx-users:

Starting with the completely clean files, I added the Microtype
package to both and compiled them. As with my first test, I got
different results. XeTeX once again produced many more hyphenated
lines -- essentially the same as it produced without Microtype -- than
did LuaTeX. Neither produced any significant overfull lines at the
right margin.

So, it seems as if Microtype behaves differently with XeTeX and LuaTeX
-- at least on my system.


Sure, microtype for xetex is not the same as microtype for luatex.

Herbert


--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users





--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: LuaTeX vs XeTeX

2021-12-17 Thread Herbert Voss via lyx-users

Am 16.12.21 um 22:12 schrieb Virgil Arrington via lyx-users:
Starting with the completely clean files, I added the Microtype 
package to both and compiled them. As with my first test, I got 
different results. XeTeX once again produced many more hyphenated 
lines -- essentially the same as it produced without Microtype -- than 
did LuaTeX. Neither produced any significant overfull lines at the 
right margin.


So, it seems as if Microtype behaves differently with XeTeX and LuaTeX 
-- at least on my system.




Sure, microtype for xetex is not the same as microtype for luatex.

Herbert


--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: LuaTeX vs XeTeX

2021-12-16 Thread Herbert Voss via lyx-users



Am 16.12.21 um 21:02 schrieb Virgil Arrington via lyx-users:


On 12/16/2021 9:31 AM, Herbert Voss via lyx-users wrote:


LuaTeX ,and XeTeX too, are more or less frozen code, just like TeX.
Only bugs will be fixed. There are no good reasons _not_ to use
LuaTeX instead
of pdfTeX:

I just performed an interesting experiment comparing the results from 
compiling the same source file with XeTeX, PDFLaTeX and LuaTeX. I was 
surprised by the results I got. In the past, I had found that, when I 
used XeTeX, I got more "overfull hboxes" with lines flowing past the 
right margin than I did with PDFLaTeX. I also would get *many* more 
hyphenated words with XeTeX than with PDFLaTeX. I assumed I would get 
similar results with LuaTeX, but I was pleasantly surprised.


For my experiment, took a 45 page paper I wrote for a former employer. 
For the PDFLaTeX compiled version, I used the mathpazo Palatino font 
that came with MikTeX and compiled it with PDFLaTeX. For the XeTeX and 
LuaTeX versions, I used Windows' Palatino Linotype font. All other 
settings were the same, including the use of the Microtype package in 
all versions.




Other font, new kernings, new hyphenations.
mathpazo (Type 1) and Palatino (TrueType) are not the same font!

In a single random paragraph, the resulting file compiled with XeTeX 
gave me eight hyphenated line endings. The same paragraph in the 
document compiled with LuaTeX gave me three hyphenated line endings, 
and the same paragraph in the document compiled with PDFLaTeX only 
gave me one hyphenated line ending.


XeTeX also gave me many overfull lines, in fact so many as to make the 
resulting document all but unusable. PDFLaTeX gave me a few, but I 
could work with them. I was surprised to see that LuaTeX appeared to 
give me the fewest overfull lines. I saw very few lines that extended 
beyond the right margin, and those I did happen to find extended such 
a small amount as to be all but unnoticeable.


I was very surprised by how different the results were when using 
XeTeX vs. LuaTeX. I had just assumed that the two engines would 
produce very similar results, but that was not the case at all. In 
fact, having seen LuaTeX's document, I can't imagine why anyone would 
choose XeTeX over LuaTeX. I was also surprised to see how well 
LuaTeX's results compared with PDFLaTeX's document. While LuaTex still 
gave me more hyphenated line endings, it gave me fewer noticeable 
overfull lines at the right margin.




Do _not_ load any font and choose an empty preanble,
 then Computer Modern is used for pdflatex and Latin Modern
for lualatex/xelatex. And then you will see _no_ difference in
the created pdf.


Herbert
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: LuaTeX vs XeTeX

2021-12-16 Thread Herbert Voss via lyx-users

Am 16.12.21 um 14:45 schrieb Pavel Sanda via lyx-users:

On Mon, Nov 08, 2021 at 09:49:29AM +0100, Herbert Voss wrote:

Am 08.11.21 um 09:46 schrieb Saša Janiška:

On Mon, 8 Nov 2021 08:58:37 +0100
Herbert Voss  wrote:



LuaHBTeX   (HB for HarfBuzz) is the default engine for lualatex


Thank you since I was not aware of it despite it is being installed on
my Debian machine.

Otherwise, I was aware of LuaTeX since I was considering to use ConTeXt
instead of LyX/LaTeX...

I wrote everything with lualatex and use xelatex in only rare cases
and never use pdf(la)tex

Could anyone of the better informed review https://wiki.lyx.org/LyX/LuaTeX ?
Some of the claims (like LuaTeX is still in beta status) are unlikely to be 
truth
and they can shape LyX users base in a wrong direction...


That is wrong: LuaTeX ,and XeTeX too, are more or less frozen code, just 
like TeX.
Only bugs will be fixed. There are no good reasons _not_ to use LuaTeX 
instead

of pdfTeX:

- no more fiddling around with the encoding, everything is UTF-8
- no more restrictions in using fonts, all current types are supported,
   like pfb, ttf, utf, ttc, ...
- easy integration of the script language Lua into a document

Herbert
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Bibliography not in ToC

2021-12-14 Thread Herbert Voss via lyx-users




Am 14.12.21 um 22:11 schrieb Rich Shepard via lyx-users:

On Tue, 14 Dec 2021, Herbert Voss via lyx-users wrote:


not in my doc



Regardless, in your version of the .lyx file cite-engine is biblatex 
while
in mine it's biblatex-natbib, but I changed the bibliography style 
from the

latter to the former and saved the change.

Do I need to reconfigure LyX to get the change to take effect?


Rich,

no, switching to biblatex (without natbib) and deleting the option
below was what I changed. Look into the status bar, what the biber runs
reports.

Herbert
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Bibliography not in ToC

2021-12-14 Thread Herbert Voss via lyx-users



Am 14.12.21 um 21:30 schrieb Rich Shepard via lyx-users:

On Tue, 14 Dec 2021, Herbert Voss via lyx-users wrote:

then the biber run is missing. Try the following: you have a citation 
(the

last one) which is not in the bib file. Delete it and run the document
again. Does the TOC-entry appears?



I'm not following. There are four citations in the text, each in its own
chapter, and four entries in mwe.bib. The last citation is Shepard2016 
and

that's in the .bib file.


Rich,

not in my doc





What is the control window

The control window is under the text area. You have to enable it
with the menu view->...


Is that what I've known as the status bar?


Ah yes, you are right.

Attached your working example.

HErbert<>
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Bibliography not in ToC

2021-12-14 Thread Herbert Voss via lyx-users



Am 14.12.21 um 21:17 schrieb Rich Shepard via lyx-users:

On Tue, 14 Dec 2021, Herbert Voss via lyx-users wrote:


You have a wrong option in the document->settings->bibliography:
Delete the mergedate=compact. However, using the natbib mode
is something from the last millenium ... you should simply use
the authoryear style of biblatex.



Thanks. I don't know where the mergedate=compact came from.
I changed the style from biblatex(natbib mode) to biblatex.

It still does not output the bibliography nor place that entry in the 
ToC.


Rich,

then the biber run is missing. Try the following: you have a citation
(the last one)  which is not in the bib file. Delete it and run the document
again. Does the TOC-entry appears?





If you open the controll window in LyX then you see the errors
of the biber run, too!


What is the control window?


The control window is under the text area. You have to enable it
with the menu view->...





Btw:
- your format was defined as pdf (pdftex), but it should be  pdf 
(luatex)


In Settings -> Formats I have the output format set to PDF (pdflatex). 
I've

no idea what luatex does)


- do not use the line
   \usepackage{luainputenc},  it is superflous


There is no such line in the preamble:



Ah, maybe that it  was the LyX internal preamble. I'll have look
at tomorrow.

Herbert


--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: I think we need a better name than "MWE"

2021-12-14 Thread Herbert Voss via lyx-users




Am 14.12.21 um 21:11 schrieb Scott Kostyshak via lyx-users:

On Tue, Dec 14, 2021 at 03:05:41PM -0500, Steve Litt via lyx-users wrote:

Hi all,

Here on the LyX list we use the word MWE to mean the simplest example
that still exhibits the symptom. But MWE stands for Minimum *Working*
Example, and by definition, the file that exhibits the symptom does not
"work". Also, I think I've seen MWE used on various LaTeX venues to
mean the smallest file that works, for a specific feature you want to
incorporate.

Can anyone think of a better name for the tiniest file that exhibits a
symptom?

Indeed it is confusing.

What are your thoughts on "minimal example" ?

Note that we have a Wiki page, although it doesn't address your question:



MWE does _not_ mean a working example in the sense of a correct output.
It means a minimal working one which shows the _problem_.


Herbert
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Bibliography not in ToC

2021-12-14 Thread Herbert Voss via lyx-users



Am 14.12.21 um 20:51 schrieb Herbert Voss via lyx-users:



Am 14.12.21 um 19:58 schrieb Rich Shepard via lyx-users:

Running LyX-2.3.6.1 on Slackware64-14.2.

The bibliography settings at the end of the paper indicate the 
bibliography
should be added to the end of the Table of Contents. It's not. Do I 
need to

explicitly add that command to the preamble?

I don't recall having this issue before and find no reference to it 
in my

saved threads of the mail list.

A MWE is attached: .lyx, .pdf, and .bib. I look forward to learning what
I've done incorrectly (or neglected to do at all.)


You have a wrong option in the document->settings->bibliography:



the image was missing ...



-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Bibliography not in ToC

2021-12-14 Thread Herbert Voss via lyx-users



Am 14.12.21 um 19:58 schrieb Rich Shepard via lyx-users:

Running LyX-2.3.6.1 on Slackware64-14.2.

The bibliography settings at the end of the paper indicate the 
bibliography
should be added to the end of the Table of Contents. It's not. Do I 
need to

explicitly add that command to the preamble?

I don't recall having this issue before and find no reference to it in my
saved threads of the mail list.

A MWE is attached: .lyx, .pdf, and .bib. I look forward to learning what
I've done incorrectly (or neglected to do at all.)


You have a wrong option in the document->settings->bibliography:





Delete the mergedate=compact. However, using the natbib mode
is something from the last millenium ... you should simply use
the authoryear style of biblatex.

If you open the controll window in LyX then you see the errors
of the biber run, too!

Btw:
- your format was defined as pdf (pdftex), but it should be  pdf (luatex)
- do not use the line
   \usepackage{luainputenc},  it is superflous
- do not use \usepackage[T1]{fontenc}, it is only for pdflatex and _not_ 
xelatex/lualatex



HErbert


--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: MWE showing one of my indexing problems

2021-12-10 Thread Herbert Voss via lyx-users



Am 10.12.21 um 20:06 schrieb Steve Litt via lyx-users:

Herbert Voss said on Fri, 10 Dec 2021 10:14:29 +0100


Steve Litt via lyx-users schrieb:

Attached please find mwe.lyx and mwe.pdf, which was created by
mwe.lyx. This document is standard book class, sized 6 inches high
by 4 inches wide to fit on reasonably sized mobile devices. The
symptom is that index item "Incremental/Differential Learning" spans
about 35 pages, but there's no index begin tag on the first of those
pages, or anywhere near it. You can read the rest of the symptom
description as chapter 1 of the actual document.

I could have refined it further, but after 3 days I'm so punch drunk
I was afraid I'd make the symptom vanish and have to start all over
again, so if some of you could take a look at it, I'd be very
grateful.

do not write an \index command into a sectioning command. Use it after
such a command. See image

Herbert

Confirmed! Thank you Herbert.

I moved the two index opening commands from the end of the sectioning
command to the start of the standard text that follows the sectioning
command, which eliminated the symptom.

My one remaining worry is that, with bad luck and just the wrong
vertical alignment, the section header might fall at the bottom of the
page *before* the page pointed to by the index entry. But so far, I
seem to be having the opposite problem (section header falling *after*
the page pointed to by the index entry, but only with my compile
script, not with eyeballs) so I have to do more research.



The "real" problem was your \nameref command more than 20
pages before.  It refers to the \chapter with the label _and_ the 
\index{...|(}

command. So you get the pagenumber of the \nameref as a start,
because executes the titel _with_ the \index command.

You can also use the optional argument for special chapter headings if
you have some \nameref pointing to it:

\chapter[For TOC and nameref]{For normal title and 
index\label{foo}\index{...|(}}


Then ech refence should point to the title and not the following text.


Herbert






Thanks for your help on this. It solved the worst of my two index
problems.

SteveT

Steve Litt
Spring 2021 featured book: Troubleshooting Techniques of the Successful
Technologist http://www.troubleshooters.com/techniques


--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: MWE showing one of my indexing problems

2021-12-10 Thread Herbert Voss via lyx-users

Steve Litt via lyx-users schrieb:
> Attached please find mwe.lyx and mwe.pdf, which was created by mwe.lyx.
> This document is standard book class, sized 6 inches high by 4 inches
> wide to fit on reasonably sized mobile devices. The symptom is that
> index item "Incremental/Differential Learning" spans about 35 pages,
> but there's no index begin tag on the first of those pages, or anywhere
> near it. You can read the rest of the symptom description as chapter 1
> of the actual document.
>
> I could have refined it further, but after 3 days I'm so punch drunk
> I was afraid I'd make the symptom vanish and have to start all over
> again, so if some of you could take a look at it, I'd be very grateful.

do not write an \index command into a sectioning command. Use it after
such a command. See image

Herbert




> Thanks,
>
> SteveT
>
> Steve Litt
> Spring 2021 featured book: Troubleshooting Techniques of the Successful
> Technologist
> http://www.troubleshooters.com/techniques
> --
> lyx-users mailing list
> lyx-users@lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-users
>


-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Glitch (bug?) in 2.3.6.1

2021-12-09 Thread Herbert Voss via lyx-users




Am 09.12.21 um 21:35 schrieb Paul A. Rubin via lyx-users:

On 12/9/21 3:27 PM, Rich Shepard via lyx-users wrote:

I've encountered unusual behavior when compiling the document using
pdflatex. When I've used an ERT within a float figure's caption lyx
highlights the string containing that ERT and pops up an error box which
tells me only that there's an error.

Closing that error box and repeating the command, ctrl-x/ctrl-h, 
presents

the message that the pdf files's been created in the status bar.

In one figure caption I had '\mu' in an ERT box, in the other caption 
it is

'\textdegree' in the box.

Since I don't subscribe to the dev's mail list I'm posting this here. It
might be a bug, or the error message box and highlighting might be 
only a

distracting glitch.

Rich
I can't reproduce this (with 2.3.6.1). Putting \textdegree in ERT in 
the float caption works fine. Putting \mu in ERT predictably does not, 
but putting it in a math environment works, as does putting $\mu$ in ERT.



\mu is onyl available in math: start inline mathmode and insert \mu
There is also a \textmu for text mode.

Herbert
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Wrapping a long URL when in a URL environment

2021-12-09 Thread Herbert Voss via lyx-users




Am 09.12.21 um 18:31 schrieb Rich Shepard via lyx-users:
In a URL environment the line extends past the right text area margin. 
Can I

use the regular ERT \- within the URL string to split it, or is there an
environment-specific way to so this?



\usepackage{xurl}


Herbert
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Graphic file formats

2021-12-09 Thread Herbert Voss via lyx-users



Am 08.12.21 um 18:09 schrieb Rich Shepard via lyx-users:

On Wed, 8 Dec 2021, Steve Litt wrote:


That's a lot of time. How many words is this book?



It's not the document's size, but the PDF image's size. I've attached 
a copy

of the 3.7M file so everyone can play with loading it in a document.


Here: https://hvoss.org/document2.pdf is a pdf with your image,
the first one as pdf the second one as png:

-rw-r--r--   1 voss  wheel   108688  9 Dez 14:49 all-discharge-plots-1.png
-rw-r--r--@  1 voss  wheel  3704503  9 Dez 14:45 all-discharge-plots.pdf

the ong has only 108kB and was converted with pdftocairo -png ...

Herbert
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Biblatex missing characters in Libertinus

2021-12-03 Thread Herbert Voss

Am 04.12.21 um 08:47 schrieb Wolfgang Engelmann:


Good news:
After commenting out

\usepackage[utf8]{inputenc}


That is the default since 2019 and not needed for lualatex/xelatex



%\usepackage[T1]{fontenc}
%\usepackage[english]{babel}
%\usepackage{biblatex}

in the preamble the Polyglossia errors were gone.
The references in the text are shown, the Bibliography is ok.

There are still errors concerning special characters such as:

Missing character: There is no œ (U+009C) in font 
[LibertinusSerif-Regular.otf]
Missing character: There is no 푆 (U+1D446) in font 
[STIXTwoText-Italic.otf]:mode=base;script=latn;language=dflt;!
Missing character: There is no 푊 (U+1D44A) in font 
[STIXTwoText-Italic.otf]:mode=base;script=latn;language=dflt;!
Missing character: There is no 푐 (U+1D450) in font 
[STIXTwoText-Italic.otf]:mode=base;script=latn;language=dflt;!
Missing character: There is no 푐 (U+1D450) in font 
[STIXTwoText-Italic.otf]:mode=base;script=latn;language=dflt;!
Missing character: There is no 푚 (U+1D45A) in font 
[STIXTwoText-Italic.otf]:mode=base;script=latn;language=dflt;!
Missing character: There is no ▴ (U+25B4) in font 
[STIXTwoText-Italic.otf]:mode=base;script=latn;language=dflt;!Missing 
character: There is no 푥 (U+1D465) in font 
[STIXTwoText-Italic.otf]:mode=base;script=latn;language=dflt;!





I uppose that you do not used the math mode for 푆  and the other ones



I guess  I have to load more of the Libertinus- and Stixt stuff.
I have at the moment:

\usepackage{libertinus}
\usepackage{libertinus-otf}


only one is enough; libertinus loads itself the otf variant


\setmonofont[Scale=MatchLowercase,FakeStretch=0.88,Ligatures=ResetAll]{AnonymousPro} 


\usepackage{libertinusSerif-Regular.otf}



that is wrong and should be deleted.


\setmathfont{STIX2Math.otf}
\setmathfont{STIXTwoMath-Regular.otf}
\setmathfont{STIXTwoText-Italic.otf}




only the second one makes sense, the other ones should be deleted.

\setmathfont{STIXTwoMath-Regular.otf}



which should probably be corrected


Herbert
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Biblatex missing characters in Libertinus

2021-12-03 Thread Herbert Voss

Am 03.12.21 um 08:53 schrieb Wolfgang Engelmann:



Thankful for any indication what I could try,



Run

luaotfload-tool --cache=purge --update -v

which should report _no_ problem. Is it true?



Herbert



Wolfgang


--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Biblatex missing characters in Libertinus

2021-12-02 Thread Herbert Voss
Wolfgang Engelmann schrieb:
> ok, Herbert, you are ahead of me and the https://www.lyx.org/
> since you are using lyx 2.4
> where did you get it?

Ah yes. I had the development version.
Now attached the version for 2.3.6 (original ubuntu)

Herbert

stix2.lyx
Description: application/lyx
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Biblatex missing characters in Libertinus

2021-12-02 Thread Herbert Voss
Wolfgang Engelmann schrieb:
>
>
>
>> \usepackage{libertinus}
>> \setmathfont{STIX2Math.otf}
>>
>> luaotfload | db : Reload initiated (formats: otf,ttf,ttc); reason: File
>> not foun
>> d: "STIX2Math.otf".
>> ! Package fontspec Error: The font "STIX2Math" cannot be found.
>>
>> I tried also /etc/environment.d
>> but I do not understand its functioning and stopped it

for font files in official directories you do not need
any path setting. Try the attaches minimal example. It works
under Ubuntu and TeXLive

Herbert

stix2.pdf
Description: Adobe PDF document


stix2.lyx
Description: application/lyx
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Biblatex missing characters in Libertinus

2021-12-01 Thread Herbert Voss



Am 01.12.21 um 18:36 schrieb Wolfgang Engelmann:




\usepackage{libertinus}
\setmathfont{STIX2Math.otf}



I inserted your
\usepackage{libertinus}
\setmathfont{STIX2Math.otf}

(I had before
\usepackage{libertinus-otf}
\setmonofont[Scale=MatchLowercase,FakeStretch=0.88,Ligatures=ResetAll]{AnonymousPro} 


>the second one in one line, i.e. [...]{AnonymousPro}


that is also ok, libertinus is a wrapper for libertinus-otf and 
libertinus-type1






which gives an error message
! Package fontspec Error: The font "STIX2Math" cannot be found.



it is  part of a full texlive installation.  You can try the file name:

\setmathfont{STIXTwoMath-Regular.otf}

it it doesn't help, then try to install STIXTwo:
https://ctan.org/tex-archive/fonts/stix2-otf?lang=de

Maybe that Ubuntu has an own package for that.

Herbert



What was wrong?
Do you need more of the log-file? >
 A font might not be found for many reasons.
 Check the spelling, where the font is installed etc. etc.

 When in doubt, ask someone for help!


luaotfload | aux : no font with id 0

Package fontspec Warning: Font "STIX2Math" does not contain requested 
Script

(fontspec)    "Math".

luaotfload | aux : no font with id 0
luaotfload | aux : no font with id 0

! Package fontspec Error: The font "STIX2Math" cannot be found.



--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Biblatex missing characters in Libertinus

2021-12-01 Thread Herbert Voss



Am 01.12.21 um 09:22 schrieb Wolfgang Engelmann:
Running a biblatex document for the pdf output I get errors for 
missing characters.

What is the best way to remove these errors?
Wolfgang


Missing character: There is no ▴ (U+25B4) in font 
[LibertinusMath-Regular.otf]
Missing character: There is no œ (U+009C) in font 
[LibertinusSerif-Regular.otf]


Missing character: There is no 휇 (U+1D707) in font 
[LibertinusSerif-Regular.o
Missing character: There is no 휑 (U+1D711) in font 
[LibertinusSerif-Regular.o


Wolfgang, three of the four characters are math symbols. You have
to load a proper math font. Write into the preamble:

\usepackage{libertinus}
\setmathfont{STIX2Math.otf}


then you can write:



There is a $▴$ (U+25B4) in font [STIX2Math.otf]

There is a œ  (U+009C) in font Libertinus Serif

There is a $휇$ (U+1D707) in font [STIX2Math.otf]

There is a $휑$  (U+1D711) in font [STIX2Math.otf]



Herbert


-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: aux file

2021-11-30 Thread Herbert Voss



Am 30.11.21 um 17:44 schrieb Wolfgang Engelmann:



Am 30.11.21 um 17:25 schrieb Herbert Voss:



Am 30.11.21 um 16:52 schrieb Wolfgang Engelmann:

What is the best way of getting the aux file

a) for a bibtex situation
b) for a biblatex/biber/luatex situation?

I have a large bib file, of which only few references are used


Why do you want to get the .aux-file? It is only needed, if you
have an error which you cannot solve and where a look into the
aux file maybe helpful.


I do have apparently errors. If I compile the lyx file, the pdf output 
shows those references as bold.


This has nothing to do with the aux-file, it is a problem with your
citations and the style file or missing keywords in the database.
Look into the log file of the bibtex/biber run.





By the way: biblatex creates it's own auxiliary files which are
read by biber (beside the aux file).


and how is this auxiliary file named?



always the main  docname with another extension.

Herbert
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: aux file

2021-11-30 Thread Herbert Voss




Am 30.11.21 um 16:52 schrieb Wolfgang Engelmann:

What is the best way of getting the aux file

a) for a bibtex situation
b) for a biblatex/biber/luatex situation?

I have a large bib file, of which only few references are used


Why do you want to get the .aux-file? It is only needed, if you
have an error which you cannot solve and where a look into the
aux file maybe helpful.

By the way: biblatex creates it's own auxiliary files which are
read by biber (beside the aux file).

Herbert
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: LuaTeX vs XeTeX

2021-11-08 Thread Herbert Voss



Am 08.11.21 um 09:46 schrieb Saša Janiška:

On Mon, 8 Nov 2021 08:58:37 +0100
Herbert Voss  wrote:



LuaHBTeX   (HB for HarfBuzz) is the default engine for lualatex


Thank you since I was not aware of it despite it is being installed on
my Debian machine.

Otherwise, I was aware of LuaTeX since I was considering to use ConTeXt
instead of LyX/LaTeX...


I wrote everything with lualatex and use xelatex in only rare cases
and never use pdf(la)tex

Herbert
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: LuaTeX vs XeTeX

2021-11-07 Thread Herbert Voss



Am 08.11.21 um 08:51 schrieb Saša Janiška:


just curious which engine do you recommend to be used with Lyx: LuaTeX
or XeTeX?


LuaHBTeX   (HB for HarfBuzz) is the default engine for lualatex

Herbert
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Weird compile result -- bug?

2021-10-15 Thread Herbert Voss



Am 15.10.21 um 18:40 schrieb Rich Shepard:

On Fri, 15 Oct 2021, Paul A. Rubin wrote:


So I went to the original document and, in the bibliography settings,
changed the processor option from default to bibtex8, and sure enough 
the

original compiled correctly.

I'm not sure if this is a bug or something the user is responsible for
knowing (it was news to me, but I never use biblatex). So I'm 
reporting it

here to let wiser minds decide.


Paul,

Thanks for digging further into the issue. I clarify a couple of points
because I think the problem is a bug, not a "feature." :-)

Biblatex replaced bibtxt a number of years ago, and the application which
works on biblatex-formatted bibliographic databases is Biber.

In my document the Settings -> Bibliography -> Bibliography Generator
Processer is set to biber.

 I'm not sure what bibtex8 does, but biblatex and biber are a mated pair.


bibtex8 is bibtex for 8bit, but also outdated!

Herbert
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: LaTeX warning explanation needed

2021-10-14 Thread Herbert Voss



Am 14.10.21 um 18:55 schrieb Rich Shepard:

On Thu, 14 Oct 2021, Axel Dessecker wrote:

I'm aware what a warning is. This one explicitly tells you what to 
do: you

have to "run Biber on the file biological-evaluation and rerun LaTeX
afterwards‟. Biber's messages tend to be very helpful in cases where you
don't get the bibliography you want.


Axel,

I exported to LaTeX (pdflatex) and ran pdflatex on the *.tex file. Didn't
know the file to feed to biber.

Now I do, and biber ran to completion without errors.

But after that I'm getting an error re-running pdflatex. It refers to a
runaway argument in a text paragraph. Since this happened on the 
second run
which has a bibliographic citation at the end the issue might be with 
that

entry in the database.

I'm looking at that entry after I understand 'runaway argument.'



\texttt{foo
here comes another text with paragraphs and so on


The argument of \texttt is a "runaway argunent" , the closing }
wasn't found.

Herbert
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: LaTeX warning explanation needed

2021-10-14 Thread Herbert Voss



Am 14.10.21 um 17:47 schrieb Rich Shepard:

On Thu, 14 Oct 2021, Axel Dessecker wrote:


LaTeX Warning: There were undefined references.
Package biblatex Warning: Please (re)run Biber on the file:
(biblatex)    biological-evaluation
(biblatex)    and rerun LaTeX afterwards.


In the PWD are these files:
$ ls
#biological-evaluation.lyx#  biological-evaluation.lyx 
biological-evaluation.tex.dep-pdf
biological-evaluation.aux    biological-evaluation.lyx.bbl 
biological-evaluation.tex.log
biological-evaluation.bcf    biological-evaluation.lyx.blg 
biological-evaluation.toc

biological-evaluation.lof    biological-evaluation.pdf
biological-evaluation.log    biological-evaluation.run.xml

I copied the LaTeX/pdflatex output in the /tmp/lyx_* directory.

Then I ran biber on the *.lyx file:
$ biber biological-evaluation.lyx INFO - This is Biber 2.14
INFO - Logfile is 'biological-evaluation.lyx.blg'
ERROR - Cannot find 'biological-evaluation.lyx.bcf'!
INFO - ERRORS: 1

but the file is present in the same directory. And it's 102032 bytes in
size.

Please suggest how I trace the error source.



You have to _export_ the LyX file tp (pdf) latex and then run
pdflatex  file.tex
biber file
pdflatex file

Herbert

--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Bibliography styles

2021-10-12 Thread Herbert Voss




Am 12.10.21 um 16:25 schrieb Rich Shepard:

On Tue, 12 Oct 2021, Herbert Voss wrote:

The problem is _before_ line 28116 and often in the entry before, 
where a

comma is missing at the end of a data entry.


Herbert,

Scrolling up from that entry for several prior ones all key/value 
pairs have

commas after each pair, except for the last one.


send me the bibliography by private mail ...

Herbert
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Bibliography styles

2021-10-12 Thread Herbert Voss




Am 12.10.21 um 16:17 schrieb Rich Shepard:

On Tue, 12 Oct 2021, Rich Shepard wrote:

More importantly, that article is not cited in the document; the only 
two

citations from JabRef refer to salmon migration.


And I forgot to mention that there's no Bibliography in the PDF.

Also, the changes I made to the bibliography settings took effect after I
closed LyX yesterday and opened it again this morning. The remaining 
issue

is why there's no Bibliography with the two (current) citations and why
biblatex complains about a JabRef entry not used in this document.


Biber reads the _complete_ bibliography and exports the list of
citied entries.

Herbert
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Bibliography styles

2021-10-12 Thread Herbert Voss



Am 12.10.21 um 15:47 schrieb Rich Shepard:

On Mon, 11 Oct 2021, Paul A. Rubin wrote:


I assume you are compiling the doc from LyX. The log will be in the temp
directory where LyX is doing the compiling, and you can view it from LyX
via Document > LaTeX Log.


Paul,

I've not paid attention to that menu item before today.

Now, the error displayed when I try to compile the file is: [3697]
Utils.pm:320> ERROR - BibTeX subsystem:
/tmp/biber_tmp_kxRQ/0_home_rshepard_documents_jabrefdb.bib_12116.utf8, 
line

28116, syntax error: found "onnor2019", expected ","


The problem is _before_ line 28116 and often in the entry before, where a
comma is missing at the end of a data entry.

Herbert



When I look at jabref.bib's line 28116 it's three below the start of the
entry:

@article{O'Connor2019,
abstract = {Mercury (Hg) is a potentially harmful trace element in 
the

  environment and one of the World Health Organization's
  foremost chemicals of concern. The threat posed by Hg

and the error refers to the first line, but I don't understand why. 
Should

the apostrophe be doubled?

More importantly, that article is not cited in the document; the only two
citations from JabRef refer to salmon migration.

Puzzled,

Rich



--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Preamble header issues

2021-10-10 Thread Herbert Voss




Am 10.10.21 um 17:43 schrieb Rich Shepard:

On Sun, 10 Oct 2021, Herbert Voss wrote:


do you have
\pagestyle{scrheadings}
in the documents preamble setting? If yes, then send again an example 
file


#
I do now. Still no page numbers.


Rich,

without an example file I need a crystal ball ...





Now I need to understand the relationship between the LyX Page Layout ->
Page Style selection and adding \pagestyle{} in the preamble. If the 
former

is set to 'plain' does the preamble define the page style?


The last definition wins. As far as I rember the "LyX" preamble
is set before the users preamble.


Herbert

--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Preamble header issues

2021-10-10 Thread Herbert Voss




Am 10.10.21 um 16:00 schrieb Rich Shepard:

On Sun, 10 Oct 2021, Herbert Voss wrote:


\cleardoublepddpage
it is \cleardoubleoddpage

However,

\usepackage{palatino}
\usepackage{mathpazo}


I've used palatino as the body text typeface since the late 1990s, and 
the

mathpazo for math inserts. I had no idea they conflicted.


mathpazo is for text _and_ math. palatino is an obsolet package.




attached your now working mwe.


I try to open it in lyx-2.3.6.1 here and an error message box pops up
telling me that it's a newer version of lyx and lyx2lyx can't convert 
it. I

don't find a newer version on the lyx web site's download -> source page.
What lyx version is it?


No idea, I simply installed it for Ubuntu. You can have a look into
the LyX file with a simple editor, then you'll see the preamble setting
and can import it into your example document.


Herbert
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Preamble header issues

2021-10-10 Thread Herbert Voss
Rich Shepard schrieb:
> On Sat, 9 Oct 2021, Dr Eberhard W Lisse wrote:
>
>> you need to figure out a way of updating KOMA Script to the latest
>> version
>> (the versions coming with the linux distributions are years behind).
>
> EL,
>
> Installed here are
> texlive-2020.200608-x86_64-2_SBo
> texlive-extra-2020.200608-x86_64-1_SBo
>
> These are only a year behind the current release.
>
>> And if that doesn't work you need to post a MWE here, and I mean MINIMAL
>> :-)-O
>
> See attached. What puzzles me is that pdflatex produces output but also
> shows errors. And there are no page numbers. Sigh.

You had some problems:

\cleardoublepddpage

it is \cleardoubleoddpage

In the documents preamble (Document->Setting->Preamble)
you also had the wrong

\pagestyle{default}


However,

\usepackage{palatino}

makes no sense, it is superseeded by the following

\usepackage{mathpazo}

attached your now working mwe.

Herbert




rich.lyx
Description: application/lyx
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Preamble header issues

2021-10-09 Thread Herbert Voss


> On Fri, 8 Oct 2021, Rich Shepard wrote:

>
>> Ah, they are difficult to distinguish with the light typeface stroke
>> on a white background.  It was the \usepackage{scrlayer-scrpage};
>> fixing that did not resolve the problem of pdflatex not finding that
>> .sty file.
>
> Now I'm back to these issues:
>
> Package scrlayer-scrpage Info: auto-selection of
> `pagestyleset=KOMA-Script'.
> ! Undefined control sequence.
>  \undefinedpagestyle
>
> l.24 \pagestyle{default}


the default pagestyle is plain, not default.





>
> 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.
>
> ! Undefined control sequence.  l.25 \headsepline =on


headsepline=on should appear as option and not command!

\documentclass[headsepline=on,...]{scrartcl}


Herbert






>
> This exsurpt starts on line 189 of the attached error file.
>
> Perhaps I misread the KOMA-Script manual, but it advises against using
> empty, plain, header, and fancy page styles so only default is left.
>
> And, \headsepline is supposed to work with scrlayer-scrpage.
>
> Rich
>
>
>



--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: How to access the Date Field from Koma Letter in the (LaTeX) preamble.

2021-09-25 Thread Herbert Voss



Am 24.09.21 um 07:58 schrieb Dr Eberhard Lisse:


here is the complete letter with the accompanying Koma Letter Class
Option file, which either needs to be in the same directory or in one
which texhash (which MUST be run after each change) can find.


Look into the document's preamble (at the end). The command
\myISOdate  should be set in your document as a date field and
not in the preamble. I never used scrlettr2 so I do not know how to
 define such a field in LyX. Then you can input a date different from 
\today


Herbert
%
% Load EITHER the DIN Letter from Koma Script or the US one by commenting
% out the other
% 
\LoadLetterOption{DIN}
%
%\LoadLetterOption{UScommercial9}
%
% Options
% 
\KOMAoptions{%
addrfield=true%print an address field?
,backaddress=true% print the back address?
,enlargefirstpage=true%
,foldmarks=true%   print foldmarks?
,footsepline=false%separate the footer with a line on page >1
,fromalign=center% alignment of the address
,fromemail=false%  print sender e-mail address
,fromfax=false%print sender fax number
,fromlogo=false%   print a logo (position depends on fromalign)
,fromphone=false%  print sender phone number
,fromrule=afteraddress%separate the address with a line?
,fromurl=false%print sender URL
,headsepline=false%separate the header with a line on page >1
,pagenumber=botright%  position of the page number (see docu)
,parskip=half% Use indent instead of skip
,refline=wide% layout of the refline
,paper=a4% pagesize
}

% 
% set some lengths for the letter
% 
\makeatletter
\@setplength{sigindent}{0mm}
\@setplength{specialmailindent}{0truecm}
\@setplength{specialmailrightindent}{\fill}
\@setplength{refvpos}{89mm}
\@setplength{refaftervskip}{10pt}
\@setplength{firstfootvpos}{7cm}
\@addtoplength{firstfootvpos}{\textheight}
%
% NEW
%
\@addtoplength{firstfootvpos}{\footskip}
\makeatother

%
% Load some packages
% 
% If I want to test the letter output
% 
\usepackage{lipsum}

%
% to get to the URLs with proper breaking, needs some work
% to survive turning this on in LyX
%
\usepackage{hyperref}
\hypersetup{%
   breaklinks=true,
   colorlinks=true,
   linkcolor=black,
   pdfborder={0 0 0},
   pdfborderstyle={},
   urlcolor=blue, 
}
\usepackage{xurl}

%
\KOMAoptions{DIV=13}
%
% I like the ISO Date
% 
\providecommand*{\LCORequirePackage}[2][]{%
  \if@atdocument
\scr@ifundefinedorrelax{ver@#2.sty}{%
  \GenericError{%
(nanicmict.lco)\@spaces\@spaces\@spaces\@spaces
  }{%
LCO-File nanicmict.lco Error: Package `#2' not loaded%
  }{%
See the documentation of nanicmict.lco for explanation.%
  }{%
This lco-file needs serveral packages. But packages can be loaded only
before\MessageBreak
\string\begin{document}. You've used the lco-file after
\string\begin{document} so it cannot\MessageBreak
load the needed packages.\MessageBreak
You should either add \string\LoadLetterOption{nanic} before
\string\begin{document}\MessageBreak
or load package `#2' using \string\usepackage[#1]{#2}
before\MessageBreak
\string\begin{document}.
  }%
}{}%
  \else
\RequirePackage[#1]{#2}%
  \fi
}
\LCORequirePackage{scrdate}

%
% page # of ## pages
% 
\usepackage{lastpage}
%
% for the fancy header and footer formatting
% 
\usepackage[automark]{scrlayer-scrpage}

\pagestyle{scrheadings}

\firstfoot{%
   \centering{%
  \hrulefill\newline
  \footnotesize{%
 \textsf{%
Practice Nr: 016-000-141135\\
SWAMed Building 2$^{nd}$ Floor $\cdot$ John Meinert
Street $\cdot$ Windhoek $\cdot$ Namibia\\
Telephone: +264 61 236403 $\cdot$ Cell: +264 81 124
6733 $\cdot$ Fax: +264 88 624273 $\cdot$
Email: \href{mailto:d...@lisse.na}{d...@lisse.na}\\
GPG Fingerprint: 7399 BE0B AEFB 4AE5 EDB9 4A54 9705 1DA3 7945 3FAB
 }
  }
   }
}



\clearscrheadfoot
\lohead[\usekomavar{fromname}]{\usekomavar{fromname}}
\rohead[\usekomavar{subject}]{\usekomavar{subject}}
%\ofoot[Page \pagemark\ of \pageref{LastPage}]
%  {Page \pagemark\ of \pageref{LastPage}}
\ofoot{Page \pagemark\ of \pageref{LastPage}}




%
% Sender's Name, in LARGE font, then practice details, since the 
% address goes into the footer
% 
\setkomavar{fromname}{\textsc{Dr Eberhard W Lisse}}
\setkomafont{fromname}{\LARGE}
\setkomavar{fromaddress}{Obstetrician \& Gynaecologist}
\setkomafont{fromaddress}{\large}

%
% default signature, left justified
%
\setkomavar{signature}{Dr Eberhard W Lisse}
\renewcommand*{\raggedsignature}{\raggedright}

%
% This goes in the Window of the envelope with a 

Re: Don't understand how to set height in resizebox

2021-09-09 Thread Herbert Voss




Am 09.09.21 um 16:22 schrieb Neal Becker:

I was happy to find the GraphicBoxes modules includes resizebox.  I wanted to do
\resizebox{!}{\textheight}{xxx}
To rescale the height.  But I don't see how to do that with the lyx
gui.  Inserting resizebox gives the option "width".  Right click on
width and I can choose instead height.  Choosing height forces width
to 1cm.  I don't see how to set width to {!} and height to my
selection.
lyx 2.3.6.1


Choose only width _or_ height and let the other one empty, then it is by 
default "!"


Herbert
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: acknowledgement in LyX

2021-09-09 Thread Herbert Voss



Am 08.09.21 um 16:12 schrieb Wolfgang Engelmann:
is there a special way of inserting an acknowledgement in LyX and, if 
not, what is the best way of choosing the level (section?) and 
placement (at the end before the bibliography?) in an article (Koma 
script)?




Use a default unnumbered section which is for KomaScript an "addsec"  if 
it should

be in the table of contents, too.

Herbert
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Format Page number references

2021-08-28 Thread Herbert Voss




Am 27.08.21 um 16:03 schrieb Andreas Plihal:
I filled the preamble exactly as you recommended - so I didn't have to 
change anything.
But I removed the commands \ index and added "|myA" etc. to the three 
LYX boxes.
The result is unchanged in that I still only get the three keywords 
with the three letters a, b and f in the subject index, but without 
the page number.

Enclosed the LYX and PDF files of a small example.


I was talking about a _short_ example file! Your complete tikz stuff in 
the preamble has

_nothing_ to do with the index problem ...

You are using texindy for the index. My solution works with makeindex.

Herbert


--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Installed module not found; page style not accepted

2021-08-26 Thread Herbert Voss


Rich Shepard schrieb:
> On Thu, 26 Aug 2021, Herbert Voss wrote:
>
>> Why do you have for lwarp /texmf-dist and for scrpage2 not?
>
> Herbert,
>
> A) Probably because that's where texlive-2020.200608-x86_64-2_SBo or
> texlive-extra-2020.200608-x86_64-1_SBo put it, and B) I've no idea what
> lwarp is.
>
>> However, try
>> \usepackage{scrlayer-scrpage}
>> instead of
>> \usepackage{scrpage2}
>
> How do I do this within LyX and not just LaTeX in emacs?

Write it into document->setting->preamble

Herbert


>
> Regards,
>
> Rich
> --
> lyx-users mailing list
> lyx-users@lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-users
>




-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Format Page number references

2021-08-26 Thread Herbert Voss

Am 26.08.21 um 17:58 schrieb Andreas Plihal:

First the good news: now no more errors are reported!
But: in the register, the specially defined keywords are now only 
displayed with the respective letters, without the page number as a 
prefix.



my crystal ball says that you have

\newcommand\myA[1]{a}

but not

\newcommand\myA[1]{#1a}

And you do not need the \index command here. YOu can simply add the |myA 
in the

LyX index box.


More help only if you provide a smal LyX example file!

Herbert
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Installed module not found; page style not accepted

2021-08-26 Thread Herbert Voss




Am 26.08.21 um 17:32 schrieb Rich Shepard:

This is a new one for me and I'd like suggestions on how to fix it.

Running lyx-2.3.6.1-x86_64-1_SBo on Slackwere-14.2/x86_64. Document 
class is

KOMA-Script Letter (Version 2). Page style is default.

When I try to compile the letter using pdflatex a message box pops up
telling me that LyX cannot find scrpage2.sty (which is found in both
/usr/share/texmf-dist/tex/latex/lwarp/lwarp-scrpage2.sty and
/usr/share/texmf/tex/latex/koma-script/scrpage2.sty) and "\pagestyle



Why do you have  for lwarp /texmf-dist and for scrpage2 not?

However, try

\usepackage{scrlayer-scrpage}

instead of

\usepackage{scrpage2}


Herbert
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Format Page number references

2021-08-25 Thread Herbert Voss



Am 25.08.21 um 21:18 schrieb Andreas Plihal:


thx a lot!
I got this error though:
! Illegal parameter number in definition of \myA.

   1
l.232 \newcommand\myA{#1a}



You didn't read my second mail ...

> Write into the documents preamble

>
> \newcommand\myA{#1a}
> \newcommand\myB{#1b}
> \newcommand\myF{#1f}

should be
\newcommand\myA[1]{#1a}
\newcommand\myB[1]{#1b}
\newcommand\myF[1]{#1f}





Herbert
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Format Page number references

2021-08-24 Thread Herbert Voss



Am 24.08.21 um 14:47 schrieb Herbert Voss:



Am 22.08.21 um 09:37 schrieb Andreas Plihal:

Hi!
Maybe I formulated my problem too vaguely, so I'll try again, but 
this time in more detail:
I have already established an extensive subject index in my KOMA 
book. In order to enforce the DUDEN order in it, I was advised to use 
the index processor texindy. I use that and it works well.
There are numerous examples, exercises, and footnotes in my book that 
contain a number of key words. If the keyword "resonance frequency" 
is mentioned in a task, it has been shown in the subject index as 
follows:

example
Resonance frequency, 87
Now an index creator has advised me to add only one letter to the 
page number in the subject index instead of the keywords "example", 
"exercise"or "footnote" in such (numerous!) Cases. In relation to my 
above example, the entry in the subject register should look like this:

Resonance frequency, 87b
If the same keyword were mentioned in a footnote, the entry would read:
Resonance frequency, 87f



Write into the documents preamble

\newcommand\myA{#1a}
\newcommand\myB{#1b}
\newcommand\myF{#1f}


should be
\newcommand\myA[1]{#1a}
\newcommand\myB[1]{#1b}
\newcommand\myF[1]{#1f}



Herbert




And in the text insert the special entries with the | operator: 
\index{frequency|myF}
Then it will get the f in the index as suffix. Or 
\index{frequency|myB} for 1b




Herbert




That would be much more elegant and I could save space in my already 
extensive subject index.
The question now arises as to how I can achieve this in my LYX 
register. (I have already read the instructions for the text 
processor Makeindex to get an idea of ​​how I could implement this 
change in my subject index. Unfortunately, the instructions are a bit 
too cryptic for me, because it is not clear what tags and what 
variables are. Apart from that, I also use the texindy processor ... )

Please for your help!
Greetings Andreas





--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Format Page number references

2021-08-24 Thread Herbert Voss



Am 22.08.21 um 09:37 schrieb Andreas Plihal:

Hi!
Maybe I formulated my problem too vaguely, so I'll try again, but this 
time in more detail:
I have already established an extensive subject index in my KOMA book. 
In order to enforce the DUDEN order in it, I was advised to use the 
index processor texindy. I use that and it works well.
There are numerous examples, exercises, and footnotes in my book that 
contain a number of key words. If the keyword "resonance frequency" is 
mentioned in a task, it has been shown in the subject index as follows:

example
Resonance frequency, 87
Now an index creator has advised me to add only one letter to the page 
number in the subject index instead of the keywords "example", 
"exercise"or "footnote" in such (numerous!) Cases. In relation to my 
above example, the entry in the subject register should look like this:

Resonance frequency, 87b
If the same keyword were mentioned in a footnote, the entry would read:
Resonance frequency, 87f



Write into the documents preamble

\newcommand\myA{#1a}
\newcommand\myB{#1b}
\newcommand\myF{#1f}


And in the text insert the special entries with the | operator: 
\index{frequency|myF}
Then it will get the f in the index as suffix. Or \index{frequency|myB} 
for 1b




Herbert




That would be much more elegant and I could save space in my already 
extensive subject index.
The question now arises as to how I can achieve this in my LYX 
register. (I have already read the instructions for the text processor 
Makeindex to get an idea of ​​how I could implement this change in my 
subject index. Unfortunately, the instructions are a bit too cryptic 
for me, because it is not clear what tags and what variables are. 
Apart from that, I also use the texindy processor ... )

Please for your help!
Greetings Andreas



--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: bibliography style

2021-08-24 Thread Herbert Voss
Sophie Julie Scheller schrieb:
> So can you tell me what to do? Where can I save my literature, which
> style do I use to match my institute, where do I get this style? Im
> really lost


Attached is an example file, created with latest LyX version.

Herbert


>
> Sophie
>
> Am 24.08.2021 um 12:45 schrieb Herbert Voss:
>>
>>
>> Am 24.08.21 um 12:28 schrieb Sophie Julie Scheller:
>>>
>>>
>>> so there is no solution for the bibtex format? I would like to keep
>>> that
>>> one..
>>
>> sure, package natbib. But it is simple to move from bibtex to biblatex!
>>
>> Herbert
>>
>>>
>>>
>>> Am 24.08.2021 um 11:59 schrieb Herbert Voss:
>>>>
>>>>
>>>> Am 24.08.21 um 11:45 schrieb Sophie Julie Scheller:
>>>>>
>>>>> Hello everyone,
>>>>>
>>>>> very basic question. I`m looking fpr bibliography style in German,
>>>>> that looks like the Citavi-Basic style added below. I alreadyy tried
>>>>> Din 1505 but it didnt fit. Is there an overview over the avaliable
>>>>> styles so I can look for the right one? Or do you know which one I
>>>>> should use for my thesis?
>>>>>
>>>>> And another question: I can change the style in the settings at the
>>>>> beginning and I can change the style when adding the bibliography.
>>>>> But I didn´t get the difference. Can you explain that?
>>>>>
>>>>>
>>>> That looks like a simple authoryear style for biblatex.
>>>>
>>>> You shouldn't use the old \bibliography format with bibtex. Use
>>>> biblatex
>>>> with biber instead. Then it is much more easier to handle author names
>>>> mit special characters, e.g. Aksın, with a dotless i
>>>>
>>>> Herbert
>>>
>>> --
>>> Diese E-Mail wurde von AVG auf Viren geprüft.
>>> http://www.avg.com
>>
>




Neues_Dokument2.lyx
Description: application/lyx
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: bibliography style

2021-08-24 Thread Herbert Voss



Am 24.08.21 um 11:45 schrieb Sophie Julie Scheller:


Hello everyone,

very basic question. I`m looking fpr bibliography style in German, 
that looks like the Citavi-Basic style added below. I alreadyy tried 
Din 1505 but it didnt fit. Is there an overview over the avaliable 
styles so I can look for the right one? Or do you know which one I 
should use for my thesis?


And another question: I can change the style in the settings at the 
beginning and I can change the style when adding the bibliography. But 
I didn´t get the difference. Can you explain that?




That looks like a simple authoryear style for biblatex.

You shouldn't use the old \bibliography format with bibtex. Use biblatex
with biber instead. Then it is much more easier to handle author names
mit special characters, e.g. Aksın, with a dotless i

Herbert
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Placing bibliography on last page without page break / koma-script

2021-08-20 Thread Herbert Voss



Am 20.08.21 um 11:49 schrieb jezZiFeR:
Am 19. Aug. 2021, 11:26 +0200 schrieb Herbert Voss 
:




Am 19.08.21 um 11:22 schrieb jezZiFeR:


I also added

\defbibheading{mybib}{%
   \let\cleardoublepage\relax
…

in the preamble and the parameter
heading=mybib
in the bibliography’s menu.

Again I get a bunch of errors, added in the protocol here.

Sorry, I do not get it, could you still help?


Create an _example_ document and send the lyx _and also_ the exported
latex file.



here I send an example document with bib-file. I am not able to export 
a latex-file (SigSev-error…), maybe I do something wrong, I am not sure.


it is a one sided document, so we need clearpage instead of cleardoublepage.
Attached your working example.

Herbert
#LyX 2.3 created this file. For more info see http://www.lyx.org/
\lyxformat 544
\begin_document
\begin_header
\save_transient_properties true
\origin unavailable
\textclass scrreprt
\begin_preamble
%\begin{%}

\AtBeginDocument{%
\defbibheading{mybib}{%
   \let\cleardoublepage\relax
   \let\clearpage\relax
   \chapter*{#1}%
   \markboth{#1}{#1}}}

%\setdefaultlanguage{german}
%\usepackage[style=footnote-dw,urldate=long,abbreviate=true,pageref=true,idemtracker=false,backend=biber]{biblatex}
 %Waßenhoven-Stil


%\DeclareFieldFormat{title}{\mkbibemph{#1}} 
%kursiver Schriftschnitt für Titel


\renewcommand{\headrulewidth}{0.1 pt}


%Titel TOC

%\renewcommand\contentsname{MaM}
%
% alternativ besser
%


%\AtBeginDocument{
%  \addto\captionsgerman{
%\renewcommand{\contentsname}{Inhalt}
 % }
%}
%
%alternativ mittel
%
%\usepackage[german]{babel}
%\addto\captionsgerman{
%\renewcommand{\contentsname}{El nuevo título}
%}



%Farbige Header
\usepackage{xcolor}
\addtokomafont{disposition}{\color{NavyBlue}}



% für biblatex
%\addbibresource{/Users/E/Dropbox/MaM/2018_MaM/Diss4.bib}

% \usepackage{url}
%\urlstyle{same}

%\usepackage[ngerman]{babel} 
%csquotes package provides support for "context-sensitive" quotation marks
\usepackage[babel,german=quotes]{csquotes} 

%Randnotizen
\let\oldmarginpar\marginpar
\renewcommand\marginpar[2][]{%
\oldmarginpar[#1]{\footnotesize\raggedright\sffamily #2}}

\newcommand*{\OriginalQuote}{}
\let\OriginalQuote\quote
\renewcommand*{\quote}{\OriginalQuote\small}

% Hurenkinder vermeiden
%\widowpenalty=1 und \clubpenalty=1
%%%\brokenpenalty=1

%Schusterjunge | Hurenkind
%%%\widowpenalty=1
%%%\clubpenalty=1

%ePub
%\usepackage{pxfonts}

%Zitate, kurz
%\newcommand*{\OriginalQuote}{}
%\let\OriginalQuote\quote
%\renewcommand*{\quote}{\OriginalQuote\tiny\}

%Zitate, lang
%\let\oldquotation\quotation
%\renewcommand*\quotation[2][]{%
%\oldquotation\footnotesize}


Footnotes

% insert additional vertical space of 1.5 mm between footnotes,
\let\myFoot\footnote
\renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}

%italics in den fußnoten / citations in footnote-dw style with biblatex-dw
%\DeclareFieldFormat{chapter}{\mkbibemph{\bibstring{chapter}~#1}}
%\DeclareFieldFormat[incollection]{title}{\mkbibemph{#1}}
%\DeclareFieldFormat[incollection]{booktitle}{\mkbibemph{#1}}
%\DeclareFieldFormat[inbook]{title}{\mkbibemph{#1}}
%\DeclareFieldFormat{citetitle}{\mkbibemph{#1}} 

%Italics in Titeln
%DeclareFieldFormat{title}{\mkbibemph{#1}}


\usepackage[multiple,hang,flushmargin]{footmisc}
\end_preamble
\options dvipsnames
\use_default_options true
\begin_modules
theorems-ams
enumitem
customHeadersFooters
\end_modules
\maintain_unincluded_children false
\language ngerman
\language_package default
\inputencoding utf8-plain
\fontencoding global
\font_roman "Myriad Pro" "default"
\font_sans "Myriad Pro" "default"
\font_typewriter "Myriad Pro" "default"
\font_math "auto" "auto"
\font_default_family default
\use_non_tex_fonts false
\font_sc false
\font_osf false
\font_sf_scale 100 100
\font_tt_scale 100 100
\use_microtype true
\use_dash_ligatures false
\graphics default
\default_output_format pdf4
\output_sync 1
\bibtex_command biber
\index_command default
\paperfontsize 10
\spacing other 1.3
\use_hyperref true
\pdf_title "Test"
\pdf_bookmarks true
\pdf_bookmarksnumbered true
\pdf_bookmarksopen false
\pdf_bookmarksopenlevel 1
\pdf_breaklinks true
\pdf_pdfborder true
\pdf_colorlinks false
\pdf_backref false
\pdf_pdfusetitle true
\papersize a4paper
\use_geometry true
\use_package amsmath 1
\use_package amssymb 1
\use_package cancel 1
\use_package esint 1
\use_package mathdots 1
\use_package mathtools 1
\use_package mhchem 1
\use_package stackrel 1
\use_package stmaryrd 1
\use_package undertilde 1
\cite_engine biblatex
\cite_engine_type authoryear
\biblio_options urldate=long,abbreviate=true,idemtracker=false,backend=biber, 
natbib=true, style=footnote-dw
\biblatex_bibstyle authoryear
\biblatex_citestyle authoryear
\use_bibtopic false
\use_indices false
\paperor

Re: Format page number references

2021-08-19 Thread Herbert Voss



Am 19.08.21 um 09:43 schrieb Andreas Plihal:
How can I format some page references a little differently in the 
index of a KOMA book?
For example, in my book I have exercises, examples and of course 
footnotes. Depending on where a keyword appears, I would like to add 
the letter "a", "b" or "f" after the page number. How can I achieve 
this in LYX?


With ctrl-E  write, for example:

\renewcommand\thepage{\arabic{page}a}

Herbert

--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Placing bibliography on last page without page break / koma-script

2021-08-19 Thread Herbert Voss



Am 19.08.21 um 11:22 schrieb jezZiFeR:


I also added

\defbibheading{mybib}{%
   \let\cleardoublepage\relax
…

in the preamble and the parameter
heading=mybib
in the bibliography’s menu.

Again I get a bunch of errors, added in the protocol here.

Sorry, I do not get it, could you still help?


Create an _example_ document and send the lyx _and also_ the exported
latex file.

Herbert
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Placing bibliography on last page without page break / koma-script

2021-08-19 Thread Herbert Voss



Am 19.08.21 um 10:20 schrieb jezZiFeR:
Am 18. Aug. 2021, 19:28 +0200 schrieb Herbert Voss 
:


Am 18.08.21 um 18:03 schrieb jezZiFeR:

thanks for the screenshots!
I have entered the lines you mentioned in the preamble.
Nonetheless
the menu looks different here, I add two screenshots also.
Could you
still help?


try to put it into "Optionen": heading=mybib

I have no idea what version you are using.

Herbert


Thanks again! I use LyX 2.3.6.2 and TeXLive 2021. When I enter the 
line into »Optionen« I get a large amount of errors, which you could 
find in the protocol (also XeTeX-version etc.) Maybe I should update 
something?


---
! Undefined control sequence.
l.161 \defbibheading
    {mybib}{%
The control sequence at the end of
---



It is a problem with LyX. It should load biblatex _before_ the user part of
the preamble, but it did it afterwards. This is the reason why 
\defbibheading

is unknown. As I already wrote, use

\AtBeginDocument{%
  \defbibheading{mybib}{%
.
 }}


in your documents preamble, then it is defined after loading biblatex

Herbert
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Placing bibliography on last page without page break / koma-script

2021-08-18 Thread Herbert Voss

Am 18.08.21 um 18:03 schrieb jezZiFeR:

thanks for the screenshots!
I have entered the lines you mentioned in the preamble. Nonetheless 
the menu looks different here, I add two screenshots also. Could you 
still help?


try to put it into "Optionen": heading=mybib

I have no idea what version you are using.

Herbert
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Placing bibliography on last page without page break / koma-script

2021-08-18 Thread Herbert Voss




Am 18.08.21 um 09:54 schrieb jezZiFeR:


is there any possibility in koma-script-report to have the 
bibliography (bib latex, biber) on the same page es the last 
paragraph? I want to have a very short bibilography one the last page 
and not to have a break and having those lines on a separate one.


Write into the documents preamble:

\defbibheading{mybib}{%
  \let\cleardoublepage\relax
  \chapter*{#1}%
  \markboth{#1}{#1}}


and then  use the parameter heading=mybib for the command \printbibliography
Can be set in the menu of bibliography

Herbert
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: biblatex > two bibliographies

2021-08-03 Thread Herbert Voss



Am 03.08.21 um 18:12 schrieb Wolfgang Engelmann:

Thanks, Daniel and Herbert for the proposals.
Daniels method works alright, except that it produces Š=Š= at the begin.
I don't know how to get rid of them.

Further Readings
Š=Š=
Bünning, E. (1983). The physiological clock. 2nd ed. Vol. 1. 
Heidelberg Science Library. Springer New York.
Forger, D. B. (2017). Biological clocks, rhythms, and oscillations - 
The theory of biological timekeeping. MIT Press.


I might need to use the way Herbert recommended:
define keys in the bib-data file to get different bibliographies, e.g. 
for one entry data:

@{book,
  keywords = {second},
  author =
}
Can this be done in the options box of the Biblatex Generated 
Bibliography in LyX? I must play with it (with [xxx]??). It is not 
well described in the LyX help file.


The keywords must be part of the bibliography data file. Look into the 
source

of biblatex-examples.bib, it is part of your local TeX distribution.
Attached is a LyX file wihich uses the already defined keyword "primary"

Herbert




I also tried to use two Biblatex Generated Bibliography behind each 
other. The first one contains the bibliography of all the references 
(AUX2.bib). The second one contains only the recommended literature, 
which are in another bib file (AUX3.bib). The pdf output does not show 
any references.


Would be nice to have an example file in LyX which explains -shows the 
way of getting two biblatex Bibiographies.


Wolfgang


#LyX 2.3 created this file. For more info see http://www.lyx.org/
\lyxformat 544
\begin_document
\begin_header
\save_transient_properties true
\origin unavailable
\textclass scrbook
\begin_preamble

\usepackage{libertinus-otf}
\setmonofont[Scale=MatchLowercase,FakeStretch=0.88,Ligatures=ResetAll]{AnonymousPro}
 
\end_preamble
\use_default_options false
\begin_modules
logicalmkup
\end_modules
\maintain_unincluded_children false
\begin_local_layout
PackageOptions nomencl intoc
\end_local_layout
\language british
\language_package babel
\inputencoding utf8
\fontencoding global
\font_roman "default" "libertine"
\font_sans "default" "helvet"
\font_typewriter "default" "cmtt"
\font_math "auto" "auto"
\font_default_family default
\use_non_tex_fonts false
\font_sc false
\font_osf false
\font_sf_scale 100 100
\font_tt_scale 100 100
\use_microtype true
\use_dash_ligatures false
\graphics default
\default_output_format pdf5
\output_sync 1
\bibtex_command biber
\index_command default
\float_placement tbph
\paperfontsize default
\spacing single
\use_hyperref false
\pdf_title "Modelle für biologische Rhythmen"
\pdf_author "Karl-Heinz Witte, Wolfgang Engelmann und Anders Johnsson"
\pdf_subject "Chronobiologie"
\pdf_keywords "Beispiele Rhythmen Modelle Simulationen Bedeutung"
\pdf_bookmarks true
\pdf_bookmarksnumbered false
\pdf_bookmarksopen false
\pdf_bookmarksopenlevel 1
\pdf_breaklinks true
\pdf_pdfborder true
\pdf_colorlinks true
\pdf_backref page
\pdf_pdfusetitle true
\pdf_quoted_options "linkcolor=red, citecolor=blue, urlcolor=green, 
filecolor=blue"
\papersize a5paper
\use_geometry false
\use_package amsmath 1
\use_package amssymb 1
\use_package cancel 1
\use_package esint 0
\use_package mathdots 1
\use_package mathtools 1
\use_package mhchem 0
\use_package stackrel 1
\use_package stmaryrd 1
\use_package undertilde 1
\cite_engine biblatex
\cite_engine_type authoryear
\biblio_style plainnat
\biblio_options minnames=1,maxnames=3
\biblatex_bibstyle authoryear
\biblatex_citestyle authoryear
\use_bibtopic false
\use_indices true
\paperorientation portrait
\suppress_date false
\justification true
\use_refstyle 0
\use_minted 0
\index Subject index
\shortcut idx
\color #008000
\end_index
\index Name index
\shortcut nam
\color #00
\end_index
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\paragraph_indentation default
\is_math_indent 0
\math_numbering_side default
\quotes_style british
\dynamic_quotes 0
\papercolumns 1
\papersides 2
\paperpagestyle default
\tracking_changes false
\output_changes false
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
\end_header

\begin_body

\begin_layout Chapter
Sources
\end_layout

\begin_layout Standard
The bibliography source is the existing file 
\family typewriter
biblatex-examples.bib.
\end_layout

\begin_layout Standard
\begin_inset CommandInset bibtex
LatexCommand bibtex
btprint "btPrintAll"
bibfiles "biblatex-examples"
biblatexopts "keyword=primary,title=Primary Literature,heading=subbibliography"

\end_inset


\end_layout

\begin_layout Standard
\begin_inset CommandInset bibtex
LatexCommand bibtex
btprint "btPrintAll"
bibfiles "biblatex-examples"
biblatexopts "notkeyword=primary, title=Secondary Literatur, 
heading=subbibliography"

\end_inset


\end_layout

\end_body
\end_document


TwoBib.pdf
Description: Adobe PDF document
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: biblatex > two bibliographies

2021-07-31 Thread Herbert Voss



Am 31.07.21 um 14:53 schrieb Wolfgang Engelmann:
I haven't found a reasonable info to set up two (or more) 
bibliographies under biblatex.
I would like to divide the bibliography in one part for normal 
reference stuff, and one part for a few references which are 
recommended for further readings.

The lyx menu for multiple bibliographies allows it
per partition, chapter, section, subsection, and child document,
but I would like to have it in the one bibliography with different 
headings (colour?) or in two bibliographies following each other 
directly and corresponding heading(s).

Could somebody tell me where to find infos for it?


For example:

\printbibliography[type=book,title=Books]
\printbibliography[nottype=book,title=Other references]

for two different libraries. It is alo possible to define keys in the
bib-data file to get diffent bibliographies, e.g. for one entry data:

@{book,
  keywords = {second},
  author =
}

\printbibliography[nottype=second,title=Books]
\printbibliography[type=second,title=Other references]


Herbert
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: long algorithm

2021-07-28 Thread Herbert Voss




Am 28.07.21 um 16:47 schrieb Wolfgang Engelmann:

Back to the long algorithm:

but being a float it cannot have a pagebreak

Listings as an alternative?

a listing can be a float, too
but again: being a float it cannot have a pagebreak


sure, but a listing can have a caption with a number _without_
beeing a float.


it is broken, if too long, same as a too long algorithm


I sent you an example by private mail

Herbert
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: ! LaTeX Error: Command \footref already defined

2021-07-27 Thread Herbert Voss



Am 27.07.21 um 11:19 schrieb Wolfgang Engelmann:

Has somebody bumped into this error:

! LaTeX Error: Command \footref already defined.,
   Or name \end... illegal, see p.192 of the manual.

It has probably to do with the preamble in my lyx document (Koma 
script book), but I can't find the culprit


The logfile should list the last loaded package.



It occurs still in a document which I have stripped to one single 
reference and the BibLaTeX generated Bibliography, nothing else


Show the log file

Herbert
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: long algorithm

2021-07-27 Thread Herbert Voss




Am 27.07.21 um 08:49 schrieb Wolfgang Engelmann:



Am 24.07.21 um 20:37 schrieb Herbert Voss:



Am 24.07.21 um 14:57 schrieb Wolfgang Engelmann:
How could one handle a long algorithm in a float which is too long 
for a page?

Listings would be a bad alternative.



A float cannot have a pagebreak. Use a non floating environment.
Why is litings a "bad" alternative?Herbert

it is not freely shiftable as compared to the algorithm float


a listing can be a float, too.

Herbert
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: How to superscript within a date environment

2021-07-25 Thread Herbert Voss




Am 25.07.21 um 07:22 schrieb Daniel:

On 2021-07-25 07:09, Steve Litt wrote:

Hi all,

On my book, I used the date environment to write "A
Troubleshooters.Com(R) book, except I used \textregistered. I wanted
the (R) superscripted, and couldn't find ways that didn't involve math.
So I finally put the following in ERT (TeX)

$^{\footnotesize\textregistered}$


This gave me a "Missing glyphs!" error.


foo\textsuperscript\textregistered

Herbert



Without using math, couldn't you insert a superscript (Insert > 
Formatting > Superscript) and then \textregistered in ERT (Insert > 
TeX Code)?


Daniel



--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: long algorithm

2021-07-24 Thread Herbert Voss




Am 24.07.21 um 14:57 schrieb Wolfgang Engelmann:
How could one handle a long algorithm in a float which is too long for 
a page?

Listings would be a bad alternative.



A float cannot have a pagebreak. Use a non floating environment.
Why is litings a "bad" alternative?


Herbert
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Jabref 5.3.1

2021-07-23 Thread Herbert Voss



Am 23.07.21 um 17:34 schrieb Wolfgang Engelmann:



Am 22.07.21 um 20:44 schrieb Herbert Voss:


First I deleted the old JabRef. Then I downloaded the new deb file
and with doubleclick on that file it will be installed by the install 
manager.

After that I can use jabref as usual.

Herbert


 I did also delete the old JabRef.
I downloaded for Ubuntu/Debian Jabref_5.3-1_amd64.deb (155MB)
 via download.fosshub.com
opened with GDebi-Paket-Installationprogramm (Standard)
and clicked Paket installieren

I tried
jabref
./jabref



After a successful instalation it should be available by the menu. With 
an input

of "jab" the icon of jabref should be on the screen.

Herbert




tried again after 7 minutes (don't know how long the installation 
takes, there is no info on it)


to no avail

Herbert, did you use another source for the Debian package?

Wolfgang


--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Jabref 5.3.1

2021-07-22 Thread Herbert Voss



Am 22.07.21 um 20:25 schrieb Wolfgang Engelmann:



Am 22.07.21 um 20:12 schrieb Wolfgang Engelmann:



Am 22.07.21 um 17:32 schrieb Paul A. Rubin:

On 7/22/21 9:31 AM, Wolfgang Engelmann wrote:

There is a new Jabref (5.3.1) available under
https://www.fosshub.com/JabRef.html
There is a download for Ubuntu+Debian
and a Linux portable.
I wanted to try the latter, but don't know how to run it.
Could somebody advice me?
Wolfgang
Download the archive file and extract it, which will create a folder 
named JabRef which in turn contains bin and lib folders. Put that 
folder wherever you want it. (Since this is the portable version, I 
suspect you might want it on a thumb drive.)


First I deleted the old JabRef. Then I downloaded the new deb file
and with doubleclick on that file it will be installed by the install 
manager.

After that I can use jabref as usual.

Herbert








Strange:
~/Downloads/JabRef/bin$ ./JabRef
Error opening "/home/wolfgang/Downloads/JabRef/lib/app/JabRef.cfg" 
file: No such file or directory

??
I am on Debian 11
Could the existing older JabRef be the cause?
Wolfgang

The JabRef contains two folders,
bin
and lib

in bin is JabRef
in lib is a folder runtime
  which contains lib, conf, bin, legal as folders

where is JabRef.cfg ? >
find -iname 'JabRef.cfg'
./lib/app/JabRef.cfg

why is it not found?

Wolfgang





--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: decreasing depth of document structure

2021-07-21 Thread Herbert Voss




Am 21.07.21 um 08:48 schrieb Wolfgang Engelmann:
I use a Koma report style and would like to decrease the depth of its 
structure. It contains ONLY subsubsections

e.g 0.0.0.1 Vorwort
which I would like to appear as
1 Vorwort

the figures appear as 0.1 etc
which should appear as 1

How can I decrease the depth to achieve it?


write into the document's preamble:

\setcounter{secnumdepth}{\subsubsectiontocdepth}
\renewcommand\thesubsubsection{\arabic{subsubsection}}
\renewcommand\thefigure{\arabic{figure}}


Herbert
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Sort order in the index

2021-07-19 Thread Herbert Voss

Am 19.07.21 um 12:25 schrieb Andreas Plihal:
The way the result looks now, it's just _almost _good. I want the 
register to treat umlauts like normal vowels and not replace Ä with AE 
etc.

fangfor example:

  * ...
  * analytisch
  * Änderung
  * Anfang
  * ...

In the literature this is referred to as the so-called Duden order. 
(DIN 5007, section 2).


And this is the _default_ for xindex ...

Herbert

--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: luaHBTeX und \aa

2021-07-19 Thread Herbert Voss



Am 19.07.21 um 08:52 schrieb Wolfgang Engelmann:



Am 19.07.21 um 08:03 schrieb Herbert Voss:



Am 19.07.21 um 07:51 schrieb Wolfgang Engelmann:



and how do I initiate \aa (e.g. in Amal (a swedish town)


Where is the problem?   Åmål  simply via the keyboard. For macOS hit the
keys: alt-a or alt-shift-a and for Linux it is Shift-AltGr-ü a
or Shift-AltGr-ü A

Herbert


Thanks Herbert for your fast answer. I have still not managed to get 
it to work. See attached lyx file.

Perhaps something wrong in the preamble?


You are loading Libertinus twice. At the end of the preamble I see:

\usepackage[serif]{libertinus}
...

This works only for pdflatex and not lualatex. Delete this line and the 
following ones.


And the \aa must be typeset with a preceeding Ctrl-L for TeXcode

Herbert
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: luaHBTeX und \aa

2021-07-19 Thread Herbert Voss



Am 19.07.21 um 07:51 schrieb Wolfgang Engelmann:

How do I initiate luaHBTeX in Lyx?


That is with this year the _default engine_ for LuaLaTeX. You have nothing
to do. Only an explizit call to _luatex_ will use the engine _without_: 
HarfBuzz




and how do I initiate \aa (e.g. in Amal (a swedish town)


Where is the problem?   Åmål  simply via the keyboard. For macOS hit the
keys: alt-a or alt-shift-a and for Linux it is Shift-AltGr-ü a
or Shift-AltGr-ü A

Herbert
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


  1   2   3   4   5   6   7   8   9   10   >