Re: polyglossia loaded after biblatex

2021-12-07 Thread Wolfgang Engelmann



Am 08.12.21 um 08:25 schrieb Jürgen Spitzmüller:

Am Mittwoch, dem 08.12.2021 um 07:47 +0100 schrieb Wolfgang Engelmann:

Hi,
i get an error
! Package biblatex Error: 'polyglossia' loaded after biblatex.

However, in the tex file it comes BEFORE the biblatex

\usepackage{color}
\definecolor{fg}{rgb}{0.00,0.00,0.00}
\definecolor{bg}{rgb}{0.980392,0.941176,0.901961}
\pagecolor{bg}
\usepackage{polyglossia}
\setdefaultlanguage[variant=british]{english}
\usepackage[style=biblatex-spbasic]{biblatex}
\def\lyxlock{}

I am not sure were in the LyX file polyglossia is set;
should be another name.

I use Komascript book style, Debian, Lyx 2.4.0 dev

Question: Were in the lyx file can I correct the error?


Do you load biblatex, or polyglossia, manually in the preamble? LyX
should load the two packages in the correct order.

Jürgen



My preamble:

\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
%%\setmainlanguage{english}
%\usepackage{biblatex}
%biblatex-spbasic Herbert Voss
\usepackage{xurl}
\usepackage[style=biblatex-spbasic]{biblatex}
\usepackage{libertinus-otf}}
 more without relevance to the question

 Do you need also the selected stuff in the DOCUMENTS?

This might be relevant?
from
https://wiki.lyx.org/BibTeX/Biblatex).#toc8
Using Biblatex with polyglossia (XeTeX or LuaTeX with non-TeX fonts)

If you use the polyglossia language package, you will need to manually 
load the polyglossia package and set the default language manually in 
the preamble just before the \usepackage of biblatex, as follows:

\usepackage{polyglossia}
\setdefaultlanguage{english}
Substitute english with the main language of your document.

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


Re: polyglossia loaded after biblatex

2021-12-07 Thread Jürgen Spitzmüller
Am Mittwoch, dem 08.12.2021 um 07:47 +0100 schrieb Wolfgang Engelmann:
> Hi,
> i get an error
> ! Package biblatex Error: 'polyglossia' loaded after biblatex.
> 
> However, in the tex file it comes BEFORE the biblatex
> 
> \usepackage{color}
> \definecolor{fg}{rgb}{0.00,0.00,0.00}
> \definecolor{bg}{rgb}{0.980392,0.941176,0.901961}
> \pagecolor{bg}
> \usepackage{polyglossia}
> \setdefaultlanguage[variant=british]{english}
> \usepackage[style=biblatex-spbasic]{biblatex}
> \def\lyxlock{}
> 
> I am not sure were in the LyX file polyglossia is set;
> should be another name.
> 
> I use Komascript book style, Debian, Lyx 2.4.0 dev
> 
> Question: Were in the lyx file can I correct the error?

Do you load biblatex, or polyglossia, manually in the preamble? LyX
should load the two packages in the correct order.

Jürgen

> 
> Wolfgang



signature.asc
Description: This is a digitally signed message part
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Graphic file formats

2021-12-07 Thread Steve Litt
Murat Yildizoglu said on Wed, 8 Dec 2021 08:49:14 +0700

>Dear Rich,
>If the plot has many points, the PDF may not be the best choice. I
>have even seen cases where the printer cannot process the page with
>such a plot   I generally choose to export such graphics as a bitmap
>(PNG) with a high definition for ensuring a sufficient quality for
>inclusion in the final pdf document or to be sent to the editor. --

I'm not sure what "inclusion in the final PDF means, but if it means
inclusion in the PDF representing the whole book, my understanding is
that he must make that .png exactly the right dimensions, because being
a bitmap, most scaling produces distortions.

My understanding is that in LuaTeX, in PDF mode, can *natively* handle
.png, so no conversion by LyX will be necessary. If this is true, and
if the .png is created with the exactly right dimensions to fit the
book page, then this would indeed be a possibility.

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


polyglossia loaded after biblatex

2021-12-07 Thread Wolfgang Engelmann

Hi,
i get an error
! Package biblatex Error: 'polyglossia' loaded after biblatex.

However, in the tex file it comes BEFORE the biblatex

\usepackage{color}
\definecolor{fg}{rgb}{0.00,0.00,0.00}
\definecolor{bg}{rgb}{0.980392,0.941176,0.901961}
\pagecolor{bg}
\usepackage{polyglossia}
\setdefaultlanguage[variant=british]{english}
\usepackage[style=biblatex-spbasic]{biblatex}
\def\lyxlock{}

I am not sure were in the LyX file polyglossia is set;
should be another name.

I use Komascript book style, Debian, Lyx 2.4.0 dev

Question: Were in the lyx file can I correct the error?

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


Re: Graphic file formats

2021-12-07 Thread Murat Yildizoglu
Dear Rich,
If the plot has many points, the PDF may not be the best choice. I have even 
seen cases where the printer cannot process the page with such a plot   I 
generally choose to export such graphics as a bitmap (PNG) with a high 
definition for ensuring a sufficient quality for inclusion in the final pdf 
document or to be sent to the editor. 
--

Prof. Murat Yildizoglu
Advisor to the Minister of Education, Youth and Sports of Cambodia
Expertise France


On leave from:
UNIVERSITE DE BORDEAUX
GREThA (UMR CNRS 5113)

web: www.yildizoglu.fr

> Le 8 déc. 2021 à 07:05, Rich Shepard  a écrit :
> 
> On Tue, 7 Dec 2021, Steve Litt wrote:
> 
>> As far as my diagrams created in Inkscape, I put them in the images folder
>> as .svg, and tell LyX to compile each to PDF. PDF completely saves the
>> vector information, so that you can resize without significant jaggies.
> 
> Steve,
> 
> I don't use Inkscape. My images are created by R and GRASS.
> 
> Thanks,
> 
> 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


How to find LyX' compile strategy?

2021-12-07 Thread Steve Litt
Hi all,

Please listen to my exact question, and then I'll elaborate. My exact
question is the following sentence...

How do I find out the exact commands LyX runs when I click the eyeballs
or press Ctrl+r?

As you read the rest of this email, please keep in mind this is an
almost 30K word book with proprietary information, so making an MWE
that I could give to others would take a huge, time consuming effort,
replacing things with Ipsum Lorum, etc.

Now for the symptom: When I compile my book with a shellscript, some of
the index entries point to a page one or two pages off. When I click
the eyeballs, all the index entries are accurate. So I have the root
cause trapped between one working and one non-working system, which
*should* enable me to quickly narrow it down. But I don't know what the
LyX Ctrl+r does, and I would need to know that to achieve this trap.

The following is my shellscript:

==
#!/bin/sh

namee="lawnmower"

zap_files(){
   dot="."
   for f in aux idx ilg ind log out pdf tex toc; do
  fname=$namee$dot$f
  rm $fname && echo "Deleted $fname."
   done
}

while /bin/true; do
  cd /d/at/books/mm_create
  zap_files
  /bin/texhash
  /usr/local/share/lyx/configure.py
  lyx --export luatex $namee.lyx
  lualatex  $namee.tex
  makeindex $namee.idx
  #texindy $namee.idx
  lualatex $namee.tex
  mupdf $namee.pdf &  #no box
  echo -n "Press Enter to do it again: "
  read junk
done
==

Changing the reader doesn't change the symptom. Any reader triggered by
the eyeballs has correct indexing. Any reader triggered by the
shellscript has some erroneous index page numbers. Switching between
makeindex and texindy doesn't affect the symptom. For readability
reasons, I am absolutely committed to TeX Gyra Schola, unless somebody
can show me how to use Century Schoolbook, which I haven't been able to
do in 8 years. I have not been able to compile books with TeX Gyra
Schola with anything but LuaTeX/LuaLaTeX for the same 8 years.

If somebody can tell me how to deduce what LyX does when I press the
Ctrl+r key combo, that will put me well on the way to solving this
problem.

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: Graphic file formats

2021-12-07 Thread Steve Litt
Rich Shepard said on Tue, 7 Dec 2021 16:05:09 -0800 (PST)

>On Tue, 7 Dec 2021, Steve Litt wrote:
>
>> As far as my diagrams created in Inkscape, I put them in the images
>> folder as .svg, and tell LyX to compile each to PDF. PDF completely
>> saves the vector information, so that you can resize without
>> significant jaggies.  
>
>Steve,
>
>I don't use Inkscape. My images are created by R and GRASS.

Same difference, as long as they're in SVG format. If they're not, what
format are they in?

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: Graphic file formats

2021-12-07 Thread Rich Shepard

On Tue, 7 Dec 2021, Steve Litt wrote:


As far as my diagrams created in Inkscape, I put them in the images folder
as .svg, and tell LyX to compile each to PDF. PDF completely saves the
vector information, so that you can resize without significant jaggies.


Steve,

I don't use Inkscape. My images are created by R and GRASS.

Thanks,

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


Re: Graphic file formatsx

2021-12-07 Thread Steve Litt
Rich Shepard said on Tue, 7 Dec 2021 09:33:56 -0800 (PST)

>Most of the graphics I import into a LyX document are PDFs. When the
>data sets are large they load slowly.
>
>When I create a figure float I see that it's converted to a preferred
>format.
>
>Would these figures load more quickly if they were pre-converted? What
>is the preferred format?

As far as my diagrams created in Inkscape, I put them in the images
folder as .svg, and tell LyX to compile each to PDF. PDF completely
saves the vector information, so that you can resize without
significant jaggies.

Obviously, if the .svg is huge, the PDF will be huge, and conversion
will take a long time. As far as I know, LyX only performs the
conversion when:

1) There's no PDF, or

2) The .svg is newer than the current PDF.

So if I were in your position, I'd set LyX to SVG=>PDF, and let LyX do
its job.

Now if by "load slowly" you mean five minutes or more, there's an
alternative. You can set up a shellscript to use Inkscape or something
else to convert SVG=>PDF, and then use software to shrink the PDF. Web
search "how to shrink PDFs in Linux" for the various alternatives. The
last step for the shellscript is to place the newly converted and
processed PDF in the images directory. To do this, of course, you need
to set your LyX document to load the PDF, not the SVG.

The benefit of the shellscript is you can continue to work while the
software converts and shrinks your image.

HTH,

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: Graphic file formatsx

2021-12-07 Thread Rich Shepard

On Tue, 7 Dec 2021, Ricardo Berlasso wrote:


https://tex.stackexchange.com/questions/1072/which-graphics-formats-can-be-included-in-documents-processed-by-latex-or-pdflat


I infer from this page that a graphic built from a large data set will take
a longer time to load, and if it's vector graphics (which all statistical
plots are) then PDF is the proper format even though LyX says it's
translating the figure to some other format.

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


Re: Graphic file formatsx

2021-12-07 Thread Rich Shepard

On Tue, 7 Dec 2021, Ricardo Berlasso wrote:


Slowly when editing the document or when compiling it? When you insert a
graphic, in the LaTeX options tab it's possible to uncheck the "show in
LyX" option, this will make everything faster (I think)


Ricardo,

When loadin in the compiled PDF.


That depends on the engine you're using: pdflatex, xelatex, lualatex, etc.
See for example here
https://tex.stackexchange.com/questions/1072/which-graphics-formats-can-be-included-in-documents-processed-by-latex-or-pdflat


pdflatex

Thanks,

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


Re: Graphic file formatsx

2021-12-07 Thread Ricardo Berlasso
El mar, 7 dic 2021 a las 18:34, Rich Shepard ()
escribió:

> Most of the graphics I import into a LyX document are PDFs. When the data
> sets are large they load slowly.
>

Slowly when editing the document or when compiling it? When you insert a
graphic, in the LaTeX options tab it's possible to uncheck the "show in
LyX" option, this will make everything faster (I think)


> When I create a figure float I see that it's converted to a preferred
> format.
>
> Would these figures load more quickly if they were pre-converted? What is
> the preferred format?
>

That depends on the engine you're using: pdflatex, xelatex, lualatex, etc.
See for example here

https://tex.stackexchange.com/questions/1072/which-graphics-formats-can-be-included-in-documents-processed-by-latex-or-pdflat

Regards,
Ricardo



>
> TIA,
>
> 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


Graphic file formatsx

2021-12-07 Thread Rich Shepard

Most of the graphics I import into a LyX document are PDFs. When the data
sets are large they load slowly.

When I create a figure float I see that it's converted to a preferred
format.

Would these figures load more quickly if they were pre-converted? What is
the preferred format?

TIA,

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