Re: How to (correctly) insert large and slanted text

2022-01-16 Thread Paul A. Rubin via lyx-users

On 1/16/22 4:27 PM, tush via lyx-users wrote:

That is certainly an advance. Thanks a lot!
The output I get is

\textsl{\Large{}Here is some text in large size and slanted style.}


Any possibility to make it

{\textsl{\large Here is some text in large size and slanted style.}}


?


PLEASE bottom post in the future.

The difference between \large with a lower case "L" and \Large with a 
capital "L" comes down to whether you choose "Large" (the former) or 
"Larger" (the latter) in the font dialog.


As far as how the braces are placed, I don't think there is any way to 
change that other than ERT.


Paul

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


Re: How to (correctly) insert large and slanted text

2022-01-16 Thread Paul A. Rubin via lyx-users

On 1/16/22 4:02 PM, tush via lyx-users wrote:
Sure, I will take notice of the thread organization. I am new to 
mailing lists.


Yes, the "unwanted formatting" refer to {\large\par}.

Here is a (really) MWE.
On 1/16/22 3:46 PM, tush via lyx-users wrote:
>/The shape works the way I want, but the sizing rather gives the />/unwanted formatting. />//>/‐‐‐ Original Message ‐‐‐ />/On Sunday, January 16th, 2022 at 10:43 PM, protonmail.com <http://lists.lyx.org/mailman/listinfo/lyx-users>> />/wrote: />>/Could you tell me how to apply the style so that the code is the way />>/I want it to be? />>//>>/I selected the whole line, maybe lyx sees it as a paragraph. />>//>>//>>/‐‐‐ Original Message ‐‐‐ />>/On Sunday, January 16th, 2022 at 10:38 PM, Paul A. Rubin via />>/lyx-users <http://lists.lyx.org/mailman/listinfo/lyx-users>> wrote: />>>/On 1/16/22 3:05 PM, tush via lyx-users wrote: />>>>/I want to insert the following styled text to my document: />>>>//>>>>/{\large{\textsl{Some text goes here}} />>>>//>>>>//>>>>/This is what a a LaTeX user would have inserted into his .tex file. />>>>//>>>>/If I select my text in LyX and right click it and choose Text Style />>>>/-> Customized... />>>>//>>>>/I can apply the aforementioned features, i.e. slanted shape and />>>>/large size, but the command LyX inserts is not the one above, but />>>>/rather />>>>//>>>>/\textsl{\large{}Some text goes here}{\large\par} />>>>//>>>>//>>>>/Is it possible to achieve what I first wrote, rather than inserting />>>>/ERT commands? />>>>//>>>/That last {\large\par} may have something to do with how you />>>/selected the text before applying the style change. In a test />>>/document, I did not encounter that. Comparing your ERT version with />>>/the customized style version, I can confirm the difference in the />>>/LaTeX commands but see no difference in the output. Is there a />>>/reason why you are unhappy with what LyX enters? />>>//>>>/Paul />>>//>>//>//>//First, please bottom post.


Second, does the "unwanted formatting" refer to {\large\par}? If so, we
would need a minimal example. It would need to be a self-contained
document (your previous MWE had include commands for child documents not
attached to the message), preferably with as little customization as
possible. Every package you add, font or language change you make, etc.
makes it a bit less likely that someone on the list has all the packages
necessary to compile your MWE.

If by "unwanted formatting" you mean that you really want the LaTeX
commands entered in the order you used in your ERT, I doubt that is
possible without resorting to ERT.

Paul



As I suspected, the issue is that the text you are formatting occurs at 
the very end of a paragraph. The following is a bit "hacky" but solves 
the problem. First, add a space after the end of the text. Then select 
the text (excluding that extra space) and make the style change. The 
trailing space on the first line is harmless, but feel free to delete it 
if you wish.


Paul

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


Re: How to (correctly) insert large and slanted text

2022-01-16 Thread Paul A. Rubin via lyx-users

On 1/16/22 3:46 PM, tush via lyx-users wrote:
The shape works the way I want, but the sizing rather gives the 
unwanted formatting.


‐‐‐ Original Message ‐‐‐
On Sunday, January 16th, 2022 at 10:43 PM,  
wrote:
Could you tell me how to apply the style so that the code is the way 
I want it to be?


I selected the whole line, maybe lyx sees it as a paragraph.


‐‐‐ Original Message ‐‐‐
On Sunday, January 16th, 2022 at 10:38 PM, Paul A. Rubin via 
lyx-users  wrote:

On 1/16/22 3:05 PM, tush via lyx-users wrote:

I want to insert the following styled text to my document:

{\large{\textsl{Some text goes here}}


This is what a a LaTeX user would have inserted into his .tex file.

If I select my text in LyX and right click it and choose Text Style 
-> Customized...


I can apply the aforementioned features, i.e. slanted shape and 
large size, but the command LyX inserts is not the one above, but 
rather


\textsl{\large{}Some text goes here}{\large\par}


Is it possible to achieve what I first wrote, rather than inserting 
ERT commands?


That last {\large\par} may have something to do with how you 
selected the text before applying the style change. In a test 
document, I did not encounter that. Comparing your ERT version with 
the customized style version, I can confirm the difference in the 
LaTeX commands but see no difference in the output. Is there a 
reason why you are unhappy with what LyX enters?


Paul







First, please bottom post.

Second, does the "unwanted formatting" refer to {\large\par}? If so, we 
would need a minimal example. It would need to be a self-contained 
document (your previous MWE had include commands for child documents not 
attached to the message), preferably with as little customization as 
possible. Every package you add, font or language change you make, etc. 
makes it a bit less likely that someone on the list has all the packages 
necessary to compile your MWE.


If by "unwanted formatting" you mean that you really want the LaTeX 
commands entered in the order you used in your ERT, I doubt that is 
possible without resorting to ERT.


Paul

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


Re: How to (correctly) insert large and slanted text

2022-01-16 Thread Paul A. Rubin via lyx-users

On 1/16/22 3:05 PM, tush via lyx-users wrote:

I want to insert the following styled text to my document:

{\large{\textsl{Some text goes here}}


This is what a a LaTeX user would have inserted into his .tex file.

If I select my text in LyX and right click it and choose Text Style -> 
Customized...


I can apply the aforementioned features, i.e. slanted shape and large 
size, but the command LyX inserts is not the one above, but rather


\textsl{\large{}Some text goes here}{\large\par}


Is it possible to achieve what I first wrote, rather than inserting 
ERT commands?


That last {\large\par} may have something to do with how you selected 
the text before applying the style change. In a test document, I did not 
encounter that. Comparing your ERT version with the customized style 
version, I can confirm the difference in the LaTeX commands but see no 
difference in the output. Is there a reason why you are unhappy with 
what LyX enters?


Paul

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


Re: Program Listings

2022-01-13 Thread Paul A. Rubin via lyx-users

On 1/12/22 7:22 AM, Joseph Hesse via lyx-users wrote:
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?


Thank you,
Joe Hesse

Your method of inserting the code is correct. To address your specific 
concerns:


 * putting the caption on the bottom requires the key/value pair
   "caption/pos/=b";
 * the label is not supposed to appear anywhere; it is used for
   cross-referencing the code elsewhere in the document;
 * the key/value pair to use the typewriter font family and color the
   code olive ("green" would be too hard to read, I think) would be
   "basicstyle={\color{olive}\ttfamily}".

You may need to load the xcolor package (or some alternative) explicitly 
in the preamble, if your LyX document does not already use colors elsewhere.


HTH,

Paul

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


Re: Nested decription lists

2022-01-08 Thread Paul A. Rubin via lyx-users

On 1/7/22 9:59 PM, Anthony Macks wrote:

On 1/7/22 6:53 PM, Anthony Macks wrote:



On Sat, 8 Jan 2022 at 10:25, Paul A. Rubin via lyx-users 
mailto:lyx-users@lists.lyx.org>> wrote:


On 1/7/22 5:09 PM, Anthony Macks via lyx-users wrote:

Dear LyX users,

I am nesting description lists and want to justify the text
within the nested list.

I have attached my MWE, output and a copy of what I want the
output to look like.

I am using the module "Customisable Lists (enumitem)." with the
article class. When I right click on the description label, an
options box is produced. However, the options to go in the box
(I get the options from the enumitem package) are not producing
the desired effect.

Warm Regards,
Anthony


The attached solution is horribly hack-ish, but I think does what
you want. You need to use the "style=multiline" option and juggle
the left margin settings a bit. Also, LaTeX wants to align the
indented description term with the start of the definition of an
unindented term, so I had to put some custom line spacing in to
drag the indented items back to where you want them. There's
probably a more elegant solution to be found somewhere.

Paul



Thanks Paul.

Ideally, it would be nice if the labelwidth could be determined based 
upon the width of the longest label. But my skills are not yet up to 
that.


I have a solution below that is workable.

However, I have done a little more exploring with the description 
options (right-clicking or Alt A 1). Not all of them seem to work as 
they should. In particular, the options which require a \command 
don't seem to work. Am I missing something?


Anthony
Can you post an MWE of a command that you don't think is working as 
expected?


Paul

Hi Paul,

I have attached an MWE and its output.
I think that I do not have a full grasp of the options and their 
correct use.
To use a \command inside description, do I need to use it only in 
\setlist in my Preamble.


Anthony

This may have been answered elsewhere in the thread, but just to be 
safe, I'm attaching a tweaked copy of your MWE that I think does what 
you want. The key is that the command \normalfont has to be flagged as 
LaTeX code (aka ERT). Otherwise LyX translates "\" to "\textbackslash". 
To get the modified version, I just selected the \normalfont command and 
hit ctrl+L.


Paul



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


Re: Nested decription lists

2022-01-07 Thread Paul A. Rubin via lyx-users

On 1/7/22 6:53 PM, Anthony Macks wrote:



On Sat, 8 Jan 2022 at 10:25, Paul A. Rubin via lyx-users 
mailto:lyx-users@lists.lyx.org>> wrote:


On 1/7/22 5:09 PM, Anthony Macks via lyx-users wrote:

Dear LyX users,

I am nesting description lists and want to justify the text
within the nested list.

I have attached my MWE, output and a copy of what I want the
output to look like.

I am using the module "Customisable Lists (enumitem)." with the
article class. When I right click on the description label, an
options box is produced. However, the options to go in the box (I
get the options from the enumitem package) are not producing the
desired effect.

Warm Regards,
Anthony


The attached solution is horribly hack-ish, but I think does what
you want. You need to use the "style=multiline" option and juggle
the left margin settings a bit. Also, LaTeX wants to align the
indented description term with the start of the definition of an
unindented term, so I had to put some custom line spacing in to
drag the indented items back to where you want them. There's
probably a more elegant solution to be found somewhere.

Paul



Thanks Paul.

Ideally, it would be nice if the labelwidth could be determined based 
upon the width of the longest label. But my skills are not yet up to that.


I have a solution below that is workable.

However, I have done a little more exploring with the description 
options (right-clicking or Alt A 1). Not all of them seem to work as 
they should. In particular, the options which require a \command don't 
seem to work. Am I missing something?


Anthony
Can you post an MWE of a command that you don't think is working as 
expected?


Paul

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


Re: Nested decription lists

2022-01-07 Thread Paul A. Rubin via lyx-users

On 1/7/22 5:09 PM, Anthony Macks via lyx-users wrote:

Dear LyX users,

I am nesting description lists and want to justify the text within the 
nested list.


I have attached my MWE, output and a copy of what I want the output to 
look like.


I am using the module "Customisable Lists (enumitem)." with the 
article class. When I right click on the description label, an options 
box is produced. However, the options to go in the box (I get the 
options from the enumitem package) are not producing the desired effect.


Warm Regards,
Anthony

The attached solution is horribly hack-ish, but I think does what you 
want. You need to use the "style=multiline" option and juggle the left 
margin settings a bit. Also, LaTeX wants to align the indented 
description term with the start of the definition of an unindented term, 
so I had to put some custom line spacing in to drag the indented items 
back to where you want them. There's probably a more elegant solution to 
be found somewhere.


Paul



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


Re: lyx_tmpdirs in /tmp

2022-01-06 Thread Paul A. Rubin via lyx-users

On 1/6/22 12:31 PM, José Abílio Matos via lyx-users wrote:


On Thursday, 6 January 2022 14.28.53 WET Wolfgang Engelmann via 
lyx-users wrote:


> This is what I get after

> mount | grep tmp:

>

> udev on /dev type devtmpfs

> (rw,nosuid,relatime,size=1909652k,nr_inodes=477413,mode=755)

> tmpfs on /run type tmpfs

> (rw,nosuid,nodev,noexec,relatime,size=386516k,mode=755)

> tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)

> tmpfs on /run/lock type tmpfs 
(rw,nosuid,nodev,noexec,relatime,size=5120k)


> tmpfs on /run/user/1000 type tmpfs

> 
(rw,nosuid,nodev,relatime,size=386512k,nr_inodes=96628,mode=700,uid=1000,gid


> =1000)

>

> where does one see the erasing period/time?

>

> Wolfgang


The issue here is that /tmp does not seem to be managed by tmpfs. :-(


FWIW my full output is similar to yours:


devtmpfs on /dev type devtmpfs 
(rw,nosuid,seclabel,size=16104168k,nr_inodes=4026042,mode=755,inode64)


tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,seclabel,inode64)

tmpfs on /run type tmpfs 
(rw,nosuid,nodev,seclabel,size=6452820k,nr_inodes=819200,mode=755,inode64)


tmpfs on /tmp type tmpfs 
(rw,nosuid,nodev,seclabel,size=16132044k,nr_inodes=409600,inode64)


tmpfs on /run/user/1000 type tmpfs 
(rw,nosuid,nodev,relatime,seclabel,size=3226408k,nr_inodes=806602,mode=700,uid=1000,gid=1000,inode64)



--

José Abílio


This may be a distribution thing. My output from "mount | grep tmp" on 
Mint is similar to Wolfgang's and in particular does not mention /tmp. 
That said, I do get automatic cleaning of /tmp. For recent versions of 
Ubuntu (and hence Mint), and apparently for Red Hat Enterprise and maybe 
some other distros, cleaning /tmp is a service handled by systemd. Based 
on stuff I found on the web, I ran


cat /usr/lib/systemd/system/systemd-tmpfiles-clean.timer

on my system and got the following:

[Unit]
Description=Daily Cleanup of Temporary Directories
Documentation=man:tmpfiles.d(5) man:systemd-tmpfiles(8)

[Timer]
OnBootSec=15min
OnUnitActiveSec=1d

Running "man systemd-tmpfiles" produces a fairly comprehensive (meaning 
lengthy) explanation.


Paul

-- 
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 Paul A. Rubin via lyx-users

On 1/5/22 1:08 PM, Wolfgang Engelmann via lyx-users wrote:



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 use Lyx Version 2.4.0dev (not released yet)
Built from git commit hash 53ed3dc0
Qt Version (run-time): 5.15.2 on platform xcb
Qt Version (compile-time): 5.15.2
Python detected: python3 -tt

Wolfgang
Once you have closed LyX, there should be no problem with deleting 
those directories. LyX will create new ones the next time you open 
it. Depending on your operating system, they are probably also 
removed automatically at certain intervals. On Ubuntu and Linux 
Mint, I believe the default behavior is to clear out /tmp on 
shutdown or once per day if the system is left running for an 
extended time.


Paul


Thanks, Paul, for these infos.
Wolfgang


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.

Wolfgang
Did you close LyX before removing the folder? I just ran a test on my 
system (Linux Mint, LyX 2.3.6.1). I edited and viewed a document, then 
exited LyX. Before LyX shut down, it deleted the temporary directory and 
all contents. When I opened LyX again, it created a new temporary 
directory as expected.


Paul

--
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 Paul A. Rubin via lyx-users

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 use Lyx Version 2.4.0dev (not released yet)
Built from git commit hash 53ed3dc0
Qt Version (run-time): 5.15.2 on platform xcb
Qt Version (compile-time): 5.15.2
Python detected: python3 -tt

Wolfgang
Once you have closed LyX, there should be no problem with deleting those 
directories. LyX will create new ones the next time you open it. 
Depending on your operating system, they are probably also removed 
automatically at certain intervals. On Ubuntu and Linux Mint, I believe 
the default behavior is to clear out /tmp on shutdown or once per day if 
the system is left running for an extended time.


Paul

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


Re: Slow LyX File - DVI-to-PDF Converter - Clip to Coordinates

2021-12-23 Thread Paul A. Rubin via lyx-users

On 12/23/21 5:48 AM, Baris Erkus via lyx-users wrote:
I am experiencing a slowdown on a LyX document. I am suspecting that 
this is related to the "Clip to Coordinates" in the Graphics option, 
which calls the DVI-to-PDF Converter (in Windows) at the backstage 
constantly.


When "Clip to Coordinates" option of any figure is selected, LyX 
constantly executing DVI-to-PDF Converter using command-line window 
even if you are not working on that specific figure (ie writing 
regular text at somewhere else), and even if that specific figure is 
not on the screen.


Furthermore, I realized that even if I uncheck the "Clip to 
Coordinates" option and click the "Apply" and "Close", the LaTeX code 
preview at the includegraphics command still shows the viewport 
option, but without the ",clip". So, normally, it should completely 
remove the viewport option and get the values from the file, am I 
right? Since the viewport options stays, LyX is calling the DVI-to-PDF 
converter, which again causes slowdown. Unchecking the option and then 
pressing the "Get from file" solves the problem tough. This is very 
un-intuitional. I feel like something fishy is going on here.


I have attached a MWE. My OS is Windows 10, MikTeX is the latest 
version and LyX is 2.3.6.1. Could somebody check this with other OS or 
other versions. Any feedback would be appreciated.




No slowdown here (Linux Mint, LyX 2.3.6.1, Qt 5.12.8.

Paul

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


Re: User list server settings

2021-12-16 Thread Paul A. Rubin via lyx-users

On 12/16/21 12:00 PM, Jean-Marc Lasgouttes via lyx-users wrote:

Le 16/12/2021 à 05:13, Paul A. Rubin via lyx-users a écrit :

Hi all,

Did a gremlin mess with server settings for this list? For the last 
few days, every message I've gotten has had  "mailing list" 
(lyx-users@lists.lyx.org) in both From and To fields, which means my 
mail client no longer shows who the sender was. (The sender's name 
and address are in the "Reply to" field.) In contrast, the developer 
list continues to behave itself, with the sender's name in the From 
field and "LyX Developers" in the To field.


I am not sure if I would qualify this as a gremlin, but one of the 
people from OSUOSL.org (which gracefully hosts these lists and our 
server) did tweak this mailing list.


Why did such a thing happen?

Well, every time our friend Valdemaras (aka sov...@yahoo.com) posted a 
message on the list, I got a bounce from every subscriber to this list 
who use a yahoo-based ISP (that's 40 people who did not get the 
message). This with an error message about spam and DMARC that I am 
not sure to understand. As I do not understand why Valdemaras is our 
only user who freaks out yahoo.


So we can try to tweak again and better the list, but no promises. And 
if there is a specialist of mailman reading this, hints will be welcome.


JMarc
Thanks JMarc. That sheds some light. It is quite curious that the change 
affects different recipients in different ways, even when we use the 
same mail client (though perhaps not with the same email provider).


In any case, while I would prefer to have the proper sender display 
back, if that can't be done I can accept the "new normal" as the price 
of avoiding your being spammed. :-)


Paul


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


Re: User list server settings

2021-12-16 Thread Paul A. Rubin via lyx-users

On 12/16/21 8:17 AM, Daniel via lyx-users wrote:

On 16/12/2021 05:13, Paul A. Rubin via lyx-users wrote:

Hi all,

Did a gremlin mess with server settings for this list? For the last 
few days, every message I've gotten has had  "mailing list" 
(lyx-users@lists.lyx.org) in both From and To fields, which means my 
mail client no longer shows who the sender was. (The sender's name 
and address are in the "Reply to" field.) In contrast, the developer 
list continues to behave itself, with the sender's name in the From 
field and "LyX Developers" in the To field.


It's not a big deal, but as one of the older members of the list I 
feel I should point out that we elderly types do confuse easily.


Paul



I see a similar problem. But my client (Thunderbird) gives the name 
with a "via lyx-users". So, I can see who send the email but in an 
annoying way. lyx-devel seems to be unaffected.


Daniel

That's curious. I too use Thunderbird (78.14.0) but I just see "mailing 
lyx" in the "From" column.


Paul

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


Re: User list server settings

2021-12-16 Thread Paul A. Rubin via lyx-users

On 12/15/21 11:13 PM, Paul A. Rubin wrote:

Hi all,

Did a gremlin mess with server settings for this list? For the last 
few days, every message I've gotten has had  "mailing list" 
(lyx-users@lists.lyx.org) in both From and To fields, which means my 
mail client no longer shows who the sender was. (The sender's name and 
address are in the "Reply to" field.) In contrast, the developer list 
continues to behave itself, with the sender's name in the From field 
and "LyX Developers" in the To field.


It's not a big deal, but as one of the older members of the list I 
feel I should point out that we elderly types do confuse easily.


Paul

Oops, there's a typo there. What I see in the "From" field is "mailing 
lyx", not "mailing list".


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


User list server settings

2021-12-15 Thread Paul A. Rubin via lyx-users

Hi all,

Did a gremlin mess with server settings for this list? For the last few 
days, every message I've gotten has had  "mailing list" 
(lyx-users@lists.lyx.org) in both From and To fields, which means my 
mail client no longer shows who the sender was. (The sender's name and 
address are in the "Reply to" field.) In contrast, the developer list 
continues to behave itself, with the sender's name in the From field and 
"LyX Developers" in the To field.


It's not a big deal, but as one of the older members of the list I feel 
I should point out that we elderly types do confuse easily.


Paul

--
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 (fwd)

2021-12-09 Thread Paul A. Rubin via lyx-users

On 12/9/21 4:36 PM, Rich Shepard via lyx-users wrote:

Not sent to list by mistake.

-- Forwarded message --
Date: Thu, 9 Dec 2021 13:21:31 -0800 (PST)
From: Rich Shepard 
To: parubi...@gmail.com
Subject: Re: Glitch (bug?) in 2.3.6.1

On Thu, 9 Dec 2021, Paul A. Rubin via lyx-users wrote:


So methinks an MWE is needed.


Paul, et al.:

See attached. It produces the error message box here.

Rich

"For want of a nail the shoe was lost. ..." Here, substitute space for 
nail. You need to put a space between the ERT and the letter C. The 
error message is because LaTeX thinks you are invoking the nonexistent 
command \textdegreeC.


Paul

-- 
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 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.


So methinks an MWE is needed.

Paul

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


Re: aux file

2021-11-30 Thread Paul A. Rubin

On 11/30/21 11:37 AM, Wolfgang Engelmann wrote:



Am 30.11.21 um 17:11 schrieb Paul A. Rubin:

On 11/30/21 10:52 AM, Wolfgang Engelmann wrote:

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

Wolfgang
When you compile the document in LyX, the .aux file will be written 
in the temporary directory. On a Linux system, this will typically be 
/tmp/lyx_tmpdir./lyx_tmpbuf0 (if this is the first open 
document in LyX; if not, change 0 to 1, 2 or whatever). While the 
document remains open in LyX, you can use your system's file browser 
to find and copy it.


Paul


Thanks, Paul, for your quick answer.
I am using Debian, but can't find /tmp in my home.

It is not in your home, it's directly under the system root (parallel to 
/usr, /opt etc.). I use Mint, which is a derivative of Ubuntu, but I'm 
pretty sure Ubuntu and Debian have the same basic directory structure. 
If for some reason that is not where the LyX temp directory lives, you 
can always check Tools > Preferences... > Paths > Temporary directory: 
to find out where the LyX temporary files are hiding.


Paul

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


Re: aux file

2021-11-30 Thread Paul A. Rubin

On 11/30/21 10:52 AM, Wolfgang Engelmann wrote:

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

Wolfgang
When you compile the document in LyX, the .aux file will be written in 
the temporary directory. On a Linux system, this will typically be 
/tmp/lyx_tmpdir./lyx_tmpbuf0 (if this is the first open 
document in LyX; if not, change 0 to 1, 2 or whatever). While the 
document remains open in LyX, you can use your system's file browser to 
find and copy it.


Paul

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


Re: Page numbers not showing in place

2021-11-30 Thread Paul A. Rubin

On 11/30/21 4:51 AM, Daniel wrote:

On 30/11/2021 08:08, Melvin Bolton wrote:

Hello Paul

Thank you for your response. I've cut the Lyx document down to the 
few first pages, and am also attaching the pdf output from it. You 
will see one entry in the preamble that reverses the odd/even pages. 
Without this, the right side (recto) pages show the left page 
margins, but the numbering problem remains, with or without that 
entry in the preamble.


Melvin

On 30/11/2021 10:44, Paul A. Rubin wrote:

On 11/29/21 7:00 PM, Melvin Bolton wrote:
I have in the past completed a lengthy book, using Lyx,  without 
needing to trouble anybody for help, but I'm now baffled by what 
should be a simple, basic task and I have no idea what to try next.


My problem is that the pagestyle settings that should place page 
numbers in the footer, are showing them in the output only on the 
first page of each chapter, which the User Guide says is treated by 
Lyx as a special environment.
I began with KOMA-Script ( scrbook) with pagestyle set to 'plain' 
as I'd done previously. This places page numbers in the outer end 
of the footer as I prefer them. When I found them only appearing on 
the first page of each chapter I searched online and tried pasting 
a few commands in the preamble but nothing helped and mostly I got 
compilation errors. I've cleared the preamble.


I tried Lyx Standard Class (Book) with pagestyle set to 'plain', 
which centred the page numbers as it should, but still only on 
first pages of chapters. Neither was there any improvement after I 
tried pagestyle set to 'fancy' and tried to customize that. It's as 
though chapter footers are not accessible, except for first page.


In my document, immediately before the first chapter, I have the 
following ERT:  \mainmatter\pagestyle{plain} \setcounter{page}{1}


The frontmatter is fine because I have don't want page numbers 
there and have pagestyle set to 'empty.' That, at least, has 
worked; there were Roman numerals there to begin with.
Finally, I did a reinstallation of Lyx (ver. 2.3.6.1) in case of 
corruption, (apparently not) and I'm now out of ideas.


I shall be truly grateful for any help, but I will need precise 
instruction if I am to paste commands correctly into the preamble. 
I really am an old novice.


Thank you


Hi Melvin,

Try removing the centering from the ERT with

\mainmatter\pagestyle{plain} \setcounter{page}{1}

That seems to mess things up, probably because pagestyle is then in an 
environment?!? (Also, I think you can skip \setcounter{page}{1} 
because \mainmatter should take care of that and you can switch back 
to the KOMA-script book class.)


Best,
Daniel


Confirmed. Good catch!

Paul

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


Re: Page numbers not showing in place

2021-11-29 Thread Paul A. Rubin

On 11/29/21 7:00 PM, Melvin Bolton wrote:
I have in the past completed a lengthy book, using Lyx,  without 
needing to trouble anybody for help,  but I'm now baffled by what 
should be a simple, basic task and I have no idea what to try next.


My problem is that the pagestyle settings that should place page 
numbers in the footer, are showing them in the output only on the 
first page of each chapter, which the User Guide says is treated by 
Lyx as a special environment.
I began with KOMA-Script ( scrbook) with pagestyle set to 'plain' as 
I'd done previously. This places page numbers in the outer end of the 
footer as I prefer them. When I found them only appearing on the first 
page of each chapter I searched online and tried pasting a few 
commands in the preamble but nothing helped and mostly I got 
compilation errors. I've cleared the preamble.


I tried Lyx Standard Class (Book) with pagestyle set to 'plain', which 
centred the page numbers as it should, but still only on first pages 
of chapters. Neither was there any improvement after I tried pagestyle 
set to 'fancy' and tried to customize that. It's as though chapter 
footers are not accessible, except for first page.


In my document, immediately before the first chapter, I have the 
following ERT:  \mainmatter\pagestyle{plain} \setcounter{page}{1}


The frontmatter is fine because I have don't want page numbers there 
and have pagestyle set to 'empty.' That, at least, has worked; there 
were Roman numerals there to begin with.
Finally, I did a reinstallation of Lyx (ver. 2.3.6.1) in case of 
corruption, (apparently not) and I'm now out of ideas.


I shall be truly grateful for any help, but I will need precise 
instruction if I am to paste commands correctly into the preamble. I 
really am an old novice.


Thank you

Melvin

I think we will need a minimal example (MWE) of this to diagnose. The 
LyX file should be self-contained if possible, so you try cutting out 
illustrations and other external matter. If the contents is not for our 
eyes, feel free to substitute "blah blah blah" or whatever, so long as 
when you compile the MWE the page numbers remain buggered.


Paul

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


Re: Ctrl+R and the little eyeballs icon can only display in qpdfview

2021-11-28 Thread Paul A. Rubin

On 11/27/21 8:53 PM, Steve Litt wrote:

Paul A. Rubin said on Sat, 27 Nov 2021 17:57:57 -0500


On 11/27/21 4:44 PM, Steve Litt wrote:

Armed with the knowledge that reconfigure.py writes to
lyxrc.defaults, and the fact that I could find no other way to
change the PDF viewer, I edited reconfigure.py, changing the order
of the viewers in the array argument to subroutine CheckViewer(),
*only* for a filetype of PDF. Sure enough it worked, giving me the
first viewer, in the array, that was on my path.
  

Was that viewer mupdf? Since the config script looks for mupdf and
apparently wasn't finding it (?), I'm wondering if the problem isn't
something to do with your command path.

Here's the thing. LyX exhibited this symptom for *every* previewer
except for qpdfview. When I temporarily uninstalled qpdfview so it
couldn't be found, it used a second viewer, and no attempt to use
any third viewer would displace the second viewer. LyX was obviously
going down a list and using the first viewer, on that list, that it
found. I found just such a list in reconfigure.py, reordered the list,
and changed it to use mupdf, and it used mupdf.

So until somebody can show me a way to select a viewer to assign to the
eyeballs, my conclusion is the only way to set the eyeballs viewer is
to go into reconfigure.py and rearrange the viewer array argument of
CheckViewer() in cases where the filetype is PDF.

SteveT

Steve Litt
Spring 2021 featured book: Troubleshooting Techniques of the Successful
Technologist http://www.troubleshooters.com/techniques
Very odd. The config script should check for all the viewers in the 
list, and all the ones it finds should appear in the select box for the 
corresponding file type. That works on my system (Linux Mint); I get 
three viewers sandwiched between None and Custom.


Might be worth filing a bug report.

Paul

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


Re: Ctrl+R and the little eyeballs icon can only display in qpdfview

2021-11-27 Thread Paul A. Rubin

On 11/27/21 4:44 PM, Steve Litt wrote:


Armed with the knowledge that reconfigure.py writes to lyxrc.defaults,
and the fact that I could find no other way to change the PDF viewer, I
edited reconfigure.py, changing the order of the viewers in the array
argument to subroutine CheckViewer(), *only* for a filetype of PDF.
Sure enough it worked, giving me the first viewer, in the array, that
was on my path.

Was that viewer mupdf? Since the config script looks for mupdf and 
apparently wasn't finding it (?), I'm wondering if the problem isn't 
something to do with your command path.


Paul

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


Re: Ctrl+R and the little eyeballs icon can only display in qpdfview

2021-11-26 Thread Paul A. Rubin

On 11/26/21 3:40 AM, Steve Litt wrote:

Paul A. Rubin said on Thu, 25 Nov 2021 23:11:34 -0500


On 11/25/21 8:49 PM, Steve Litt wrote:

Hi all,

No matter what I've tried, Ctrl+R and the little eyeballs icon
displays the PDF version of the document only in qpdfview. I changed
tools=>preferences=>output=>general=>PDF Command to
mupdf "$$o#src:$$f:$$n:0"
and yet still, the eyeballs and Ctrl+R display in qpdfview.

Why this matters is, alone in all my PDF viewers, qpdfview displays
links with annoying boxes around them, even though I did:

\usepackage{hyperref }%  Colored, clickable URLs
\hypersetup{
hidelinks = true,
colorlinks   = true, %Colours links instead of ugly boxes
urlcolor = linkcolor, %Colour for external hyperlinks
linkcolor= linkcolor, %Colour of internal links
citecolor   = green %Colour of citations
}

So, how does one set the viewer when presses Ctrl+R or clicks the
eyeballs?

Thanks,

SteveT

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

Try Tools > Preferences... > File Handling > File Format, select in
the "Format:" box the way you compile to PDF (so "PDF (pdflatex)" for
me, since I'm old fashioned), then select your preferred PDF viewer in
the "Viewer:" menu and click OK. If your preferred viewer is not
there, select "Custom" and put the command to run the viewer in the
box alongside the menu.

Thanks Paul,

Tools=>Preferences=>File Handling=>File Formats=>Viewer: is a list box
that gives me only two choices: None and Custom. It was on None, so I
switched to Custom and put mupdf, and left and restarted LyX. No
change, still rendered in qpdfview. So I went into
~/.lyx/lyxrc.defaults and added
\viewer_alternatives pdf  "mupdf"
for pdf thru pdf8. But when I exited and restarted LyX, the Viewer
dropdown still only offered Custom and None.

So as a Hail Mary, after adding all the mupdf lines, I performed a
Tools=>Reconfigure, and it replaced all my mupdf with qpdfview. :/-)

At this point it was 3:30AM and I decided to save it for another day.

Thanks,

SteveT

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

Steve,

Well, the failure of the Hail Mary was at least consistent. When you 
reconfigure, the defaults file gets overwritten.


If you run "which mupdf" in a terminal, does the system show the correct 
path? If not, maybe LyX is sensing that it can't find mupdf (because it 
needs a full path) and thus omits it. Otherwise, I don't see why the 
manual edit of the defaults file wouldn't work.


I just looked at the configure.py script, and 'mupdf' is on the list of 
PDF viewers it looks for. So I suggest you look at the configure.log 
file in ~/.lyx. I ran "grep -i mupdf configure.log" on mine and got


INFO: +checking for "mupdf"...  no

(which is correct for my system). If yours says no, then the config 
script is no able to find mupdf.


Paul

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


Re: Ctrl+R and the little eyeballs icon can only display in qpdfview

2021-11-25 Thread Paul A. Rubin

On 11/25/21 8:49 PM, Steve Litt wrote:

Hi all,

No matter what I've tried, Ctrl+R and the little eyeballs icon displays
the PDF version of the document only in qpdfview. I changed
tools=>preferences=>output=>general=>PDF Command to
mupdf "$$o#src:$$f:$$n:0"
and yet still, the eyeballs and Ctrl+R display in qpdfview.

Why this matters is, alone in all my PDF viewers, qpdfview displays
links with annoying boxes around them, even though I did:

\usepackage{hyperref }%  Colored, clickable URLs
\hypersetup{
   hidelinks = true,
   colorlinks   = true, %Colours links instead of ugly boxes
   urlcolor = linkcolor, %Colour for external hyperlinks
   linkcolor= linkcolor, %Colour of internal links
   citecolor   = green %Colour of citations
}

So, how does one set the viewer when presses Ctrl+R or clicks the
eyeballs?

Thanks,

SteveT

Steve Litt
Spring 2021 featured book: Troubleshooting Techniques of the Successful
Technologist http://www.troubleshooters.com/techniques
Try Tools > Preferences... > File Handling > File Format, select in the 
"Format:" box the way you compile to PDF (so "PDF (pdflatex)" for me, 
since I'm old fashioned), then select your preferred PDF viewer in the 
"Viewer:" menu and click OK. If your preferred viewer is not there, 
select "Custom" and put the command to run the viewer in the box 
alongside the menu.


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


Re: How to use the environment defined by \lstnewenvironment in LyX

2021-11-24 Thread Paul A. Rubin

On 11/24/21 2:00 AM, Guofeng Zhang wrote:

Hi,

I have created the new listing environment and use it in LyX by Tex 
Code well.Is there any way that I could configure LyX (for example,  
LyX's Programming Listings) to use this listing environment?


Searched by google, but no way to go , so I tried to create a LyX 
inset to use it. So another question: can I define an inset that 
always has full line width in the editor?


Thanks for your help!

Guofeng

I'm not sure this will help, but I have a couple of LyX modules in 
GitHub repositories that might give you some ideas.


The simpler module is "pseudolst" (https://github.com/prubin73/pseudolst 
). It adds some pseudocode 
capabilities by tweaking the standard LyX "listing" environment, 
effectively adding a new language for listings.


The more complex module is "pseudocode" 
(https://github.com/prubin73/algpseudocode 
), which adds support for the 
algpseudocode style in the algorithmx LaTeX package. It provides new LyX 
paragraph styles for a gaggle of pseudocode commands. It could be that 
mimicking something like this but with one new style would be all you 
would need.


Both come with a LyX file containing instructions and demo code. To view 
the LyX files properly, you would need to install the required LaTeX 
package (listings.sty for the first, algorithmx for the second) if you 
don't already have it, install the module in your local modules 
directory, then reconfigure LyX. Before doing that, though, you might 
want to download the compiled versions of the documents (PDF files, one 
in each repo) and see if they resonate with you.


Paul

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


Re: Fwd: Why do two graphics next to each other in a float have a large gap between them? WAS: Re: why is the tar.gz file extremely large?

2021-11-16 Thread Paul A. Rubin

On 11/16/21 10:39 AM, Wolfgang Engelmann wrote:



Am 16.11.21 um 16:34 schrieb Jean-Marc Lasgouttes:

Le 16/11/2021 à 16:25, Wolfgang Engelmann a écrit :
But the pdf file shows still the figure with a large gap between the 
graphics, although I did not insert a horizontal space between them.

So I change the topic to
Why do two graphics next to each other in a float have a large gap 
between them?


Hi Wolfgang,

We would need to see the file (or another example if it is private) 
to answer this.


JMarc


Here it is.
Wolfgang

The coordinates specified for the two images appear to be wrong. Try the 
following. Click on each image, go to the "Coordinates and Clipping" 
tab, and click the "Get from File" button. See if the images are side by 
side when you recompile.


Paul

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


Re: adding a class to LyX from a "latex skeleton"

2021-11-03 Thread Paul A. Rubin

On 11/3/21 1:31 PM, David Pesetsky wrote:
I would like to be able to create a LyX document using one of the 
“latex-skeletons” at https://langsci-press.org/templatesAndTools 
 (specifically, at the 
moment, the “Latex-skeleton for monographs”)  — but can’t seem to find 
a how-to for adding, say, a Langsci Press book class to LyX, or 
anything else useful.


If there are relevant instructions somewhere, can you point me to 
them, or otherwise help?  I’m using LyX 2.3 on a Mac — thanks!


-David


--
David Pesetsky[pese...@mit.edu ]
Department of Linguistics and Philosophy
32-D862 Massachusetts Institute of Technology
77 Massachusetts Avenue
Cambridge, MA 02139 USA
(617) 253-0957 office           (617) 253-5017 fax
http://web.mit.edu/linguistics/www/pesetsky.home.html 




As a starting point, I would urge you to read section 5 of the 
customization manual (Help > Customization). You'll need to create a 
layout file for the new class (in this case, "langscibook.cls"). The 
recommended approach is usually to find a LaTeX class similar to the new 
one for which LyX has a layout file, then use that file as a guide when 
creating your own layout file. I'm inclined to describe the process as 
"not for the faint of heart", but it is doable (and has been done in the 
past).


Paul

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


Re: Need Help Reducing Horizontal Distance/Spacing between Author & Year in citations

2021-10-21 Thread Paul A. Rubin

On 10/21/21 5:39 PM, Hisham Yacob wrote:


Hi all,

I don’t know why I didn’t think to include the lyx file in the email 
(since my original post was on the LyX subreddit, which was why I used 
pictures instead). Anyway, attached is an example lyx file.


Thanks you.

Regards,

Hisham

*From: *Paul A. Rubin <mailto:parubi...@gmail.com>
*Sent: *Thursday, 21 October 2021 5:07 pm
*To: *lyx-users@lists.lyx.org <mailto:lyx-users@lists.lyx.org>
*Subject: *Re: Need Help Reducing Horizontal Distance/Spacing between 
Author & Year in citations


On 10/21/21 4:29 PM, Hisham Yacob wrote:

Hi everyone,

How do I go about compressing the horizontal spacing (highlighted
in yellow, in case it's unclear what I'm trying to ask here)
between author and year, both in individual references and grouped
references like in the third line.

The spacing between Adam and (2020) seems like there's double
spacing, instead of a single space. Also, when referencing
multiple papers, I want the comma to hug the name. i.e. I want it
to be:

NAME, YEAR instead of

NAME , YEAR which is what it's doing right now.

I tried tweaking the preamble and options but I can't seem to get
it to work. I'm using Style format "Natbib(BibTeX)", variant
"Author-year" and Biblio style "plainnat"

I hope I’ve been sufficient clear with my question.

Thanks!

Regards,

Hisham



Can you post a minimal example (LyX file plus .bib file if you are 
using an external bibliographic database)? That would help us suss out 
what is going on.


Paul


Is the attached file what you want? I just removed the space from the 
label field of each bibliography entry (but left it in the key field).


Paul



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


Re: Need Help Reducing Horizontal Distance/Spacing between Author & Year in citations

2021-10-21 Thread Paul A. Rubin

On 10/21/21 4:29 PM, Hisham Yacob wrote:


Hi everyone,

How do I go about compressing the horizontal spacing (highlighted in 
yellow, in case it's unclear what I'm trying to ask here) between 
author and year, both in individual references and grouped references 
like in the third line.


The spacing between Adam and (2020) seems like there's double spacing, 
instead of a single space. Also, when referencing multiple papers, I 
want the comma to hug the name. i.e. I want it to be:


NAME, YEAR instead of

NAME , YEAR which is what it's doing right now.

I tried tweaking the preamble and options but I can't seem to get it 
to work. I'm using Style format "Natbib(BibTeX)", variant 
"Author-year" and Biblio style "plainnat"


I hope I’ve been sufficient clear with my question.

Thanks!

Regards,

Hisham


Can you post a minimal example (LyX file plus .bib file if you are using 
an external bibliographic database)? That would help us suss out what is 
going on.


Paul

-- 
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 Paul A. Rubin

On 10/14/21 4:21 PM, Rich Shepard wrote:

On Thu, 14 Oct 2021, Rich Shepard wrote:


I'll scroll through it, too.


Latest latex.log:
Package biblatex Info: Trying to load language 'english'...
Package biblatex Info: ... file 'english.lbx' found.
(/usr/share/texmf-dist/tex/latex/biblatex/lbx/english.lbx
File: english.lbx 2019/12/01 v3.14 biblatex localization (PK/MW)
)
Package biblatex Info: Input encoding 'utf8' detected.
Package biblatex Info: Automatic encoding selection.
(biblatex) Assuming data encoding 'utf8'.
\openout3 = `biological-evaluation.bcf'.

But,
Package biblatex Info: Trying to load bibliographic data...
Package biblatex Info: ... file 'biological-evaluation.bbl' not found.
No file biological-evaluation.bbl.

The MWE latex.log:
Package biblatex Info: Trying to load biblatex default data model...
Package biblatex Info: ... file 'blx-dm.def' found.
(/usr/share/texmf-dist/tex/latex/biblatex/blx-dm.def
File: blx-dm.def 2019/12/01 v3.14 biblatex localization (PK/MW)
)
Package biblatex Info: Trying to load biblatex style data model...
Package biblatex Info: ... file 'authoryear.dbx' not found.
Package biblatex Info: Trying to load biblatex custom data model...
Package biblatex Info: ... file 'biblatex-dm.cfg' not found.

Other than the page style in the MWE, what else might account for the
differences?

Rich

Just to be clear, is the attached log from the same MWE that we have 
(just references, nothing else) and does the MWE (with input encoding 
set to UTF-8) compile for you? The log seems to indicate that it does.


-- 
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 Paul A. Rubin

On 10/14/21 2:27 PM, Rich Shepard wrote:

On Thu, 14 Oct 2021, Paul A. Rubin wrote:


Assuming your .bib file does not contain state secrets, how about the
following? Create a new LyX doc (MWE) in which you just cite everything
that gets cited in the actual document. We don't need headings, images,
text etc., just the citations. Try compiling that. Assuming the same
problems occur, post the LyX MWE and the .bib file and let our resident
biblatex experts (of whom I am decidedly not one) try for themselves.


Paul,

Good idea, I might have thought of this instead of chasing my tail in
circles. See both mwe.lyx and mwe.pdf attached.

Looks like the issue is with Keefer, et al. 2008.

I'll look at that while folks examine the .lyx file.

Thanks,

Rich

OK, after fixing the paragraph setting for the Van Doornik reference, I 
got the MWE to compile by doing the following: in Document > Settings... 
> Language > Encoding, I switched from Language default to "Other" and 
selected "Unicode (utf8)". I suspect there are some characters in the 
.bib file that are UTF-8 (which is my default locale setting) but not 
"latin9". So the log file contained some nonspecific bitching and 
moaning about latin9, which led me to discover that the default encoding 
(at least on my system) was latin9, and that wasn't cutting it.


Paul

-- 
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 Paul A. Rubin

On 10/14/21 2:27 PM, Rich Shepard wrote:

On Thu, 14 Oct 2021, Paul A. Rubin wrote:


Assuming your .bib file does not contain state secrets, how about the
following? Create a new LyX doc (MWE) in which you just cite everything
that gets cited in the actual document. We don't need headings, images,
text etc., just the citations. Try compiling that. Assuming the same
problems occur, post the LyX MWE and the .bib file and let our resident
biblatex experts (of whom I am decidedly not one) try for themselves.


Paul,

Good idea, I might have thought of this instead of chasing my tail in
circles. See both mwe.lyx and mwe.pdf attached.

Looks like the issue is with Keefer, et al. 2008.

I'll look at that while folks examine the .lyx file.

Thanks,

Rich

Fair warning to others: There's a bug in the MWE that is probably 
separate from what is actually ailing Rich's document. In the MWE, the 
Van Doornik reference is in a "Titlehead" environment (the others are 
"Standard"), and that causes it's own set of problems.


Paul

-- 
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 Paul A. Rubin

On 10/14/21 2:27 PM, Rich Shepard wrote:

On Thu, 14 Oct 2021, Paul A. Rubin wrote:


Assuming your .bib file does not contain state secrets, how about the
following? Create a new LyX doc (MWE) in which you just cite everything
that gets cited in the actual document. We don't need headings, images,
text etc., just the citations. Try compiling that. Assuming the same
problems occur, post the LyX MWE and the .bib file and let our resident
biblatex experts (of whom I am decidedly not one) try for themselves.


Paul,

Good idea, I might have thought of this instead of chasing my tail in
circles. See both mwe.lyx and mwe.pdf attached.

Looks like the issue is with Keefer, et al. 2008.

I'll look at that while folks examine the .lyx file.

Thanks,

Rich

I created a .bib file with just your Keefer entry (from your next 
message in the thread), stripped all cites other than Keefer out of you 
LyX file, and it compiled OK.


To diagnose this, we need your "jabrefdb" file.

Paul

-- 
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 Paul A. Rubin

On 10/14/21 1:28 PM, Rich Shepard wrote:

On Thu, 14 Oct 2021, Rich Shepard wrote:


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.


Fixed the bibliography database entry ... I think.

I need to confirm what I'm doing; there's an issue with the bibliography
insert at the end of the document.

1. pdflatex file.tex
2. biber file.bcf
3. pdflatex file.tex

Output:
! Package inputenc Error: Keyboard character used is undefined
(inputenc)    in inputencoding `latin9'.

See the inputenc package documentation for explanation.
Type  H   for immediate help.
 ...

l.602 \printbibliography[heading=bibintoc]

?

Why is inputencoding `latin9' when local is en_US.UTF-8?

Where do I find the inputenc package docs?

Exporting the .lyx file to pdflatex produces the same message about 
running

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

Exporting to latex (pdflatex) and building from that provides more 
explicit

error information so I need to learn how to fix it.

Should I provide all Settings -> Bibliography key:value pairs?

Rich
Assuming your .bib file does not contain state secrets, how about the 
following? Create a new LyX doc (MWE) in which you just cite everything 
that gets cited in the actual document. We don't need headings, images, 
text etc., just the citations. Try compiling that. Assuming the same 
problems occur, post the LyX MWE and the .bib file and let our resident 
biblatex experts (of whom I am decidedly not one) try for themselves.


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


Re: LaTeX warning explanation needed

2021-10-13 Thread Paul A. Rubin

On 10/13/21 6:47 PM, Rich Shepard wrote:

The document now compiles without error using TeXLive2021 (and the 2020
version of texlive-extra), but the bibliography still does not print 
in the

PDF.

The latex.log has these warnings:
LaTeX Warning: Citation 'Groot1991' on page 4 undefined on input line 
151.
LaTeX Warning: Citation 'Marcoe2018' on page 4 undefined on input line 
167.


Lines 149-151 in the .lyx file are:
\begin_layout Standard
\begin_inset ERT
status open

and lines 163-167 are:
\begin_inset CommandInset toc
LatexCommand tableofcontents

\end_inset

There are other warnings at the top of the (attached) latex.log file 
and I

need help understanding what the warnings mean.

TIA,

Rich


Rich,

The line numbers refer to lines in the .tex file being compiled, not 
lines in the .lyx file. The .tex file will be hiding in the temp 
directory LyX is using.


Paul

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


Re: Compile error

2021-10-12 Thread Paul A. Rubin

On 10/12/21 3:01 PM, Rich Shepard wrote:

On Tue, 12 Oct 2021, Rich Shepard wrote:

The current one is shown in the attached .png. There was no 'complete 
log'

produced when I clicked that button.


Darn! It's on this one.

Rich


Rich,

I would use a command line tool to scan the document source file (.lyx) 
for a non-ASCII or non-UTF8 character. If that turned up nothing, I 
would scan the .bib file (if any) and any included text files.


As I recall, you're on Linux. You might try

grep -axv '.*' 

first. It should find lines that are not in whatever encoding your 
system uses by default (UTF-8 in my case). It can also be done using 
'iconv'. I've had to jump through similar hoops in the past.


Paul



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


Re: Compile error

2021-10-12 Thread Paul A. Rubin

On 10/12/21 2:44 PM, Rich Shepard wrote:
Time for a new thread since bibliography styles are no longer an 
issue. No
bibliography in the compiled doc is, but lyx keeps throwing new 
compile-time

errors at me.

The current one is shown in the attached .png. There was no 'complete 
log'

produced when I clicked that button.

The default text encoding on all my hosts is utf8.

There are no close angle brackets '>' in the document (ctrl-s could 
not find

any) so I've no idea where this error originates.

In the .lyx file fontencoding is 'global' which I assume is the 
default on

all my lyx docs. Should that be changed to utf8?

Rich


Rich,

Make some coffee (regular) and take it intravenously /*immediately*/! 
There is no PNG attached, but rather a LaTeX log (the one you say 
doesn't exist?) which seems to show successful compilation other than 
some missing references.


Paul

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


Re: JabRef entry warning

2021-10-12 Thread Paul A. Rubin

On 10/12/21 2:31 PM, Rich Shepard wrote:

On Tue, 12 Oct 2021, Paul A. Rubin wrote:


You have commas at the end of several fields (inside the closing curly
brace), including institution, which I think is triggering the error
message.


Paul,

All key:value pairs end with commas except for the last one.

You also have a few places with a funky dash separating a pair of 
numbers,
rather than a double dash ('--'). That might be the result of copying 
from

a PDF and pasting. I don't know if that will also cause any indigestion.


Yes, that's not uncommon. I try to catch and repair them when I enter the
document in JabRef, but aren't always successful. Now corrected.

The error specified the document name, not any key:value pair between the
opening and closing braces:
WARN - Name in key 'Paul2012' is empty (probably consecutive 'and'):
skipping entry 'Paul2012'

The name key has no 'and' in it.

While this is a warning, not an error, I'd still like to have biber 
accept

it as correct.

Still puzzled,

Rich

I turned your entry into a .bib file, cited it in a dummy document, and 
compiled with biblatex. It specifically flagged the first entry that 
ended with a comma. I think the "name" in the error message is because 
it thinks that, after that last comma, there will be another name = 
value pair in the field that it never finds (due to the closing brace). 
Not the ideal error message in my opinion, but deleting the surplus 
comma did fix it.


I spotted the "and and" Maria flagged, but in my test that did not cause 
an error message, it just mucked up the printed citation.


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


Re: JabRef entry warning

2021-10-12 Thread Paul A. Rubin

On 10/12/21 1:21 PM, Rich Shepard wrote:

On Tue, 12 Oct 2021, Paul A. Rubin wrote:

You mention 'Paul2012' in the warning but show the entry with key 
'Paul2017'. Is one of those a typo, or did you show us the wrong entry?


Paul2021,

:-)

Probably need to re-caffinate. Corrected entry just posted.

Thanks,

Rich

Rich,

You have commas at the end of several fields (inside the closing curly 
brace), including institution, which I think is triggering the error 
message.


You also have a few places with a funky dash separating a pair of 
numbers, rather than a double dash ('--'). That might be the result of 
copying from a PDF and pasting. I don't know if that will also cause any 
indigestion.


Paul

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


Re: JabRef entry warning

2021-10-12 Thread Paul A. Rubin

On 10/12/21 1:00 PM, Rich Shepard wrote:
Biber tells me "WARN - Name in key 'Paul2012' is empty (probably 
consecutive

'and'): skipping entry 'Paul2012'" and the entry in the jabrefdb.bib is:
@techreport{Paul2017,
abstract = {This paper summarizes the application of algae as 
indicators of nutrient

pollution in water quality management. It describes the use of algal
indicators to develop water quality diagnostics for nutrient 
pollution

in the United States (U.S.) and then reviews scientific developments
in the use and application of algal indicators across the world.
The paper is intended as a technical resource for the water quality
manager/practitioner seeking to utilize algae to detect the presence
of nutrient pollution and to estimate the risks of nutrient pollution
in adversely affecting the condition of stream ecosystems.},
author = {Paul, M.J.},
institution = {Tetra Tech, Inc./ Center for Ecological Sciences},
keywords = {streams, rivers, lakes, ponds, algae, pollution, water 
quality, indicators},

pagetotal = {44},
title = {{Algal Indicators in Streams: A Review of Their 
Application in Water Quality Management of Nutrient Pollution}},

type = {techreport},
year = {2017}
}

I'm not seeing the empty error in the name. Why does biber find it empty?

Rich


Rich,

You mention 'Paul2012' in the warning but show the entry with key 
'Paul2017'. Is one of those a typo, or did you show us the wrong entry?


Paul2021

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


Re: Bibliography styles

2021-10-11 Thread Paul A. Rubin

On 10/11/21 6:09 PM, Rich Shepard wrote:

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


Any error messages related to the bibliography in the LaTeX log?


Paul,

The only latex.log on this host is usr/share/texmf-var/web2c/latex.log 
from
March 24, 2015. And there's a /usr/share/texmf-var/web2c/pdflatex.log 
from

Feb 17, 2021.

Nothing from today.

Rich

Rich,

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

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


Re: Bibliography styles

2021-10-11 Thread Paul A. Rubin

On 10/11/21 5:32 PM, Rich Shepard wrote:

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


I'm not sure there has been any replacement. I've used "apalike" in the
past, but I think the package that is specifically designed to match APA
requirements is "apacite". I've got both of them in 2.6.3.1.


Paul,

Could be. Actually, I don't know why that document showed APA as the
bibliography file style since I've been using authordate4 for years.

Regardless, now I've hit a bibliography glitch that's new for me. I use
JabRef for my scientific publications database and it's set to use 
BibLaTeX.


In Settings -> Bibliography the style format is Biblatex (natbib mode),
variant authoryear; biblatex citation style is authoryear; biblatex
bibliography style is authoryear.

Using Insert -> List/ToC -> Bib(la)tex bibliography I put the 
bibliography

toward the end of the document (ahead of the Appendix). The bibliography
shows up in the Navigate menu, but not in the complied PDF.

Always, before the current document, when I selected that database in the
grey bibliography link and set the style as authoryear4 the citations
transferred from JabRef to LyX were of the form, AuthorYEAR, and 
clicking on
that grey box allowed me to select whether it was surrounded by 
parentheses,
had a comma separating author and year, and other styles. Now I get 
choices

of only #ID or Key.

I assume that I'm missing something or have made an incorrect choice
somewhere and I'd appreciate someone passing me a cluestick so I can fix
this issue.

Regards,

Rich


Rich,

Any error messages related to the bibliography in the LaTeX log?

Paul

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


Re: END-OF-FRAME, once again..

2021-10-11 Thread Paul A. Rubin

On 10/11/21 4:19 PM, UD K wrote:



On 10/11/21 9:58 PM, Paul A. Rubin wrote:

On 10/11/21 3:50 PM, UD K wrote:
I remember the Insert > Separated Frame Below, which has now 
vanished, at least from my 2.3.2 version.  This is punishment for 
using something called MX Linux, which has only that antiquated 
version, without this needed feature.  I also looked for a command 
buffer but it, too, is hidden.     The war was lost for the loss of 
a nail, and my lecture will die for the lack of Insert > Separated 
Frame Below  ;-(

EK

On 10/11/21 8:53 PM, Paul A. Rubin wrote:

Insert > Separated Frame Below



The command buffer should be accessible from View > Toolbars > 
Command Buffer (unless it lived in a different place back in 2.3.2), 
or alternatively using the shortcut Alt + x (unless that gets mapped 
to something else, but it's been Alt + x on my system as far back as 
I can recall).


Thanks-- I am getting a great tour of some useful features of Lyx that 
I never explored.  With Paul's help, I found the command buffer, and 
typed /Insert > Separated Frame Below/, but it did nothing.  I must be 
very motivated, since I did the unthinkable, and (re)read the 
Lyx/Beamer manual (V. 2.3).  It makes repeated infuriating references 
to the missing Insert Frame Separator, etc.   It also mentioned some 
keyboard shortcuts that do not work, as tips for an easier way of 
accomplishing this (apparently heroic) task of inserting an end-of-frame.

   Square One is my home now...
EK







Ehud,

Insert > ... is a menu selection, not something to type in the command 
buffer.


With the cursor at the end of the content of a frame, type 'call 
newframe' (without the quotes) in the buffer and hit enter.


Paul

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


Re: END-OF-FRAME, once again..

2021-10-11 Thread Paul A. Rubin

On 10/11/21 3:50 PM, UD K wrote:
I remember the Insert > Separated Frame Below, which has now vanished, 
at least from my 2.3.2 version.  This is punishment for using 
something called MX Linux, which has only that antiquated version, 
without this needed feature.  I also looked for a command buffer but 
it, too, is hidden.       The war was lost for the loss of a nail, 
and my lecture will die for the lack of Insert > Separated Frame 
Below  ;-(

EK

On 10/11/21 8:53 PM, Paul A. Rubin wrote:

Insert > Separated Frame Below



The command buffer should be accessible from View > Toolbars > Command 
Buffer (unless it lived in a different place back in 2.3.2), or 
alternatively using the shortcut Alt + x (unless that gets mapped to 
something else, but it's been Alt + x on my system as far back as I can 
recall).


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


Re: Bibliography styles

2021-10-11 Thread Paul A. Rubin

On 10/11/21 1:23 PM, Rich Shepard wrote:
The last document with a bibliography used the APA style. I don't see 
that

in the list of styles in 2.6.3.1. With what style has it been replaced?

TIA,

Rich
I'm not sure there has been any replacement. I've used "apalike" in the 
past, but I think the package that is specifically designed to match APA 
requirements is "apacite". I've got both of them in 2.6.3.1.


Paul

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


Re: END-OF-FRAME, once again..

2021-10-11 Thread Paul A. Rubin

On 10/11/21 1:19 PM, UD K wrote:
Thanks for the speedy response, but, alas, neither approach solved my 
problem. Paul's suggestion ignored the fact that (at least on MY lyx, 
v. 2.3.2) there is no Insert > Frame separator Below (as I lamented in 
my OP).  I vaguely remember seeing, and even using, that magical 
Separator, but it has now vanished. Rich's approach merged the moved 
frame with the one near its new home, but-- since there is no obvious 
(or known to me) way to insert a separator, their union is NOT what I 
was looking for.  I am (almost) back to the infamous Square One.

  Ehud Kaplan

On 10/11/21 6:14 PM, Paul A. Rubin wrote:

On 10/11/21 12:03 PM, Rich Shepard wrote:

On Mon, 11 Oct 2021, UD K wrote:

  So, finally, here is my question: /How do I move a frame from one 
part
of the presentation to another/, and, while you are educating me-- 
how do

I insert an end-of-frame where I need one?  I could not find "new
environment", and plain layout didn't do it.  I know this is about as
basic a thing as could be, and Lyx/beamer should not have hidden it as
well as they did, but that's what we have.


Ehud,

A second approach:

1. Open outline window to left of beamer class window if not already 
open.

2. Place cursor on the frame you want to move.
3. Use the up- and down-arrows at the bottom right of the window to 
move the

fram to where you want it.

HTH,

Rich
Forgot about that (since I never use the outline window). Unless the 
slide is moving a zillion spots, that's certainly easier.


Paul



--
Ehud Kaplan, Ph.D.
  Visiting Professor
  Dept. of Philosophy & History of Science
  Charles University, Prague
  &
  the National Institute of Mental Health,
  Topolová 748, Klecany
  Czechia

You are looking for Insert > Separated Frame Below. Inserting a 
separator is a different command. If you really do not have that command 
(I forget what version first got it), try binding a key combo to the 
LFUN 'call newframe' (or just type it in the command buffer), which 
should work to insert a frame (and worked for me in a number of earlier 
versions).


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


Re: END-OF-FRAME, once again..

2021-10-11 Thread Paul A. Rubin

On 10/11/21 12:03 PM, Rich Shepard wrote:

On Mon, 11 Oct 2021, UD K wrote:


  So, finally, here is my question: /How do I move a frame from one part
of the presentation to another/, and, while you are educating me-- 
how do

I insert an end-of-frame where I need one?  I could not find "new
environment", and plain layout didn't do it.  I know this is about as
basic a thing as could be, and Lyx/beamer should not have hidden it as
well as they did, but that's what we have.


Ehud,

A second approach:

1. Open outline window to left of beamer class window if not already 
open.

2. Place cursor on the frame you want to move.
3. Use the up- and down-arrows at the bottom right of the window to 
move the

fram to where you want it.

HTH,

Rich
Forgot about that (since I never use the outline window). Unless the 
slide is moving a zillion spots, that's certainly easier.


Paul

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


Re: END-OF-FRAME, once again..

2021-10-11 Thread Paul A. Rubin

On 10/11/21 11:47 AM, UD K wrote:
I SHOULD know this, because it came up in the (distant) past, but 
either I forgot, or Lyx has changed-- probably a little of both.
   I wanted to cut a frame from a lyx/beamer presentation and put it 
in another place in the presentation. Control-X, and Control-V failed. 
So I tried to insert a new frame, but that came without an 
end-of-frame, so things did not look right.  I was looking for things 
that have worked in the past-- separator, insert-frame etc.-- but 
those are gone.
  So, finally, here is my question: /How  do I move a frame from one 
part of the presentation to another/, and, while you are educating 
me-- how do I insert an end-of-frame where I need one?  I could not 
find "new environment", and plain layout didn't do it.  I know this is 
about as basic a thing as could be, and Lyx/beamer should not have 
hidden it as well as they did, but that's what we have.

   Thanks, and hold your irate fire.
Ehud Kaplan
--


One approach:

1. Put the cursor at the end of the frame preceding where you want to
   move the target frame and click Insert > Separated Frame Below. This
   will create a properly separated empty frame.
2. Cut the content of the target frame and paste it into the new location.
3. Do the same for the frame title.
4. Eliminate the now empty frame at the target's original location
   using backspace.

Paul

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


Re: Preamble header issues

2021-10-08 Thread Paul A. Rubin

On 10/8/21 3:33 PM, Rich Shepard wrote:

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

Your last \usepackage has an opening parenthesis that should be an 
opening

brace.


Paul,

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.

Thanks,

Rich

Maybe you don't have it? (Try 'kpsewhich scrlayer-scrpage.sty' in a 
terminal to find out.) If you're a TexLive user, it's part of the 
texlive-latex-recommended package.


Paul

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


Re: Short titles

2021-10-08 Thread Paul A. Rubin

On 10/8/21 3:30 PM, Rich Shepard wrote:

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


Rich: What class are you using?


Paul,

KOMA-Script Report

Rich

Rich,

I don't think the KOMA-Script Report class directly supports a short 
title for the title. In LyX, the short title entry on the Insert menu is 
there when you are in a chapter or section heading but not when you are 
in the document title. I searched the KOMA-Script manual for "short 
title", and the only hits were for captions or something called a "half 
title", which isn't what you want.


Have you been able to insert short titles in KS Report titles in the past?

Paul

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


Re: Short titles

2021-10-08 Thread Paul A. Rubin

On 10/8/21 3:02 PM, Ricardo Berlasso wrote:


El vie, 8 oct 2021 a las 19:35, Rich Shepard 
(mailto:rshep...@appl-ecosys.com>>) escribió:


I used to find an entry in the Insert menu for short titles. It's
not there
in version 2.6.3.1.

Looking in the Users Guide I see that it should be there.

Has anyone a thought why it's not being presented?


It's still there, but only when the cursor is on a heading 
environment. Put your cursor on the same paragraph of a title and 
you'll see the entry under the Insert menu (the shortcut is Alt-A, 
then 1).


Regards,
Ricardo




TIA,

Rich
-- 
lyx-users mailing list

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



Sorry, my bad. It's present in the title field with the AMS article 
class (which is where I usually employ it), but not with the generic 
article class (where it is unsupported?).


Rich: What class are you using?

Paul

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


Re: Short titles

2021-10-08 Thread Paul A. Rubin

On 10/8/21 3:02 PM, Ricardo Berlasso wrote:


El vie, 8 oct 2021 a las 19:35, Rich Shepard 
(mailto:rshep...@appl-ecosys.com>>) escribió:


I used to find an entry in the Insert menu for short titles. It's
not there
in version 2.6.3.1.

Looking in the Users Guide I see that it should be there.

Has anyone a thought why it's not being presented?


It's still there, but only when the cursor is on a heading 
environment. Put your cursor on the same paragraph of a title and 
you'll see the entry under the Insert menu (the shortcut is Alt-A, 
then 1).


Regards,
Ricardo




TIA,

Rich
-- 
lyx-users mailing list

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




Ricardo,

Actually, yes and no. I just tried a small test document (article 
class). In a section heading, the insert menu has the item. In the 
article title, though, it does not (but formerly did). This is on 
2.3.6.1. I suspect this is a bug.


Paul

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


Re: Preamble header issues

2021-10-08 Thread Paul A. Rubin

On 10/8/21 1:46 PM, Rich Shepard wrote:

Running lyx-3.6.2.1 on Slackware-14.2/x86_64.

The document is KOMA-Scipt Report; page layout style is 'default'.

I want to define custom headings for all reports and I'm reading the
KOMA-Secipt doc.

My current preamble is:
\date{}
\usepackage{palatino}
\usepackage{mathpazo}
\usepackage{graphicx,relsize}
\usepackage(scrlayer-scrpage}
\pagestyle{scrheadings}

When I try to compile it with pdflatex it fails to find the 
scrlayer-scrpage

package (found here:
/usr/share/texmf-dist/tex/latex/koma-script/scrlayer-scrpage.sty
The full error file is attached.

Page 81 of the English manual tells us, "The scrlayer-scrpage package 
(see

chapter 5) offers further possibilities for adjusting lines headers and
footers." This requires me to learn why that package is not recognized 
when

I try to compile the document.

I need advice from those more expert than I.

Rich


Rich,

Your last \usepackage has an opening parenthesis that should be an 
opening brace.


Paul

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


Re: Permanence of strange .tex file

2021-08-27 Thread Paul A. Rubin

On 8/27/21 4:51 PM, Rich Shepard wrote:

On Fri, 27 Aug 2021, Paul A. Rubin wrote:

Do you by any chance have instant preview turned on in Tools > 
Preferences > Look & Feel > Display.


Paul,

Huh! It was turned on, but I've no recollection of ever doing this. 
And, as

I wrote, it's never before been an issue. So I turned it off.


The presence of "preview" in the file name suggests to me that LyX might
have been compiling something for instant preview.


Could be. I opened LyX, looked in preferences (but not Display), exited,
then found Display and turned off instant preview. There were to *.tex 
files

using the CPUs after I exited the second time. Killed both processes.

As far as the undead process, if LyX spawns a latex / pdflatex / 
whatever
process to compile something and then you kill LyX, the child process 
does
not get killed automatically (at least in my experience). You have to 
nuke
it manually. I would expect the lyxpreviewN17596.tex file to be 
stashed in

the LyX temporary directory for the parent document.


If yesterday's files were in /tmp find should have found them. It didn't.

Anyway, however the instant preview became active it's now off. Must be
pandemic related, eh? :-)

Stay well,

Rich

Rich,

The seldom benevolent digital deities have been on a bit of a rampage 
lately, based on personal experience. I don't know if it's caused by the 
pandemic, global warming, a surfeit of politicians (note that I'm 
listing disasters in ascending order of severity) or just random timing.


Anyway, hopefully the issue is fixed. The (presumed) fact that instant 
preview produced LaTeX processes that spun their digital wheels 
indefinitely might, however, indicate that you have something (math 
inset? other sort of inset?) that is indigestible to LaTeX, in which 
case the same problem may arise if and when you actually do compile the 
parent document.


Or maybe not. I've given up predicting the outcome of anything digital.

Paul

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


Re: Permanence of strange .tex file

2021-08-27 Thread Paul A. Rubin

On 8/26/21 3:27 PM, Rich Shepard wrote:

Here's another new experience for me. When I kill the lyx process there
remains a file, for example lyxpreviewN17596.tex, which shows up in the
process list as 'latex lyxpreviewN17596.tex' and consumes 100% of the 
CPUs

most of the time.

Root cannot find this file anywhere, and it persists after I close 
lyx, even

when I did not open the compiled PDF or look at a preview within lyx.

I kill the process but haven't seen this before and would like to 
understand

what might be behind this behavior.

Regards,

Rich
Do you by any chance have instant preview turned on in Tools > 
Preferences > Look & Feel > Display. The presence of "preview" in the 
file name suggests to me that LyX might have been compiling something 
for instant preview. As far as the undead process, if LyX spawns a latex 
/ pdflatex / whatever process to compile something and then you kill 
LyX, the child process does not get killed automatically (at least in my 
experience). You have to nuke it manually. I would expect the 
lyxpreviewN17596.tex file to be stashed in the LyX temporary directory 
for the parent document.


Paul

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


Re: shortcut for going to edge of ERT frame?

2021-08-08 Thread Paul A. Rubin

On 8/8/21 2:01 PM, David Pesetsky wrote:

Is there any way to program a key so that if you are typing within an ERT 
frame, it takes the cursor to the last (or first) character in that frame?

Also useful would be a way to exit the frame — landing at at the first non-ERT 
character to the left or right of the frame.

-David
   
You can bind keys to the functions "inset-begin" (positions the cursor 
before the first character in the inset) and "inset-end" (positions the 
cursor after the last character in the inset). In both cases, the cursor 
remains within the inset.


To exit the inset, you can use "command-sequence inset-end; char-forward;".

Paul

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


Re: How to make LyX math macros available across documents?

2021-08-06 Thread Paul A. Rubin

On 8/6/21 5:52 AM, Tobias Hilbricht wrote:

Dear readers of this list,

in my worksheets in chemistry I have to write chemical formulas and
physical quantities very often. But while that is very easy to do in
LyX out of the box with chemical formulas due to the integration of
mhchem and its macro \ce, I am still trying to achieve something
similar for physical quantities with siunitx and its macro \qty.

What I have so far is a working LyX math macro (in LyX Ctrl+M on
\newcommand{\mqty}[2]{\qty{#1}{#1}}) which I can invoke with a keyboard
shortcut (Alt+Q for "command-sequence math-insert \mqty; char-left;
char-left").

But I have to copy this custom LyX macro from document to document
(siunitx loaded, of course). By contrast, I can invoke the macro \ce in
math mode with a keyboard shortcut without further ado in every
document and enjoy the immediate preview and avoid ERT.

How is it possible to have custom macros available across documents in
the same way?

Thanks for helpful hints in advance!

Yours
Tobias

 


I can think of at least three possibilities.

 * If you will use the custom code routinely, create a document
   containing it and make that document your new default document
   (Document > Settings ... > Save as Document Defaults.
 * Create a document template that contains the custom code in its
   preamble. You just create an otherwise empty document with your
   preferred default settings and the custom code and save it in your
   local templates document. When you want to use the custom code,
   start your new document with File > New from Template ... and select
   the correct template.
 * Create a module (Customization manual, section 5.2.1) containing the
   custom code, store it in your local layouts folder, and then
   reconfigure LyX so that LyX can find it. Thereafter, you can add it
   to any document using Document > Settings ... > Modules.

Paul


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


Re: Problems related to custom AMS theorem module

2021-07-23 Thread Paul A. Rubin

On 7/23/21 4:14 PM, Rudi Gaelzer wrote:


Is there a way to instruct Lyx to write certain auxiliary files into 
the local directory, instead of in /tmp/lyx_tmpdirxxx?



Is it LyX or LaTeX (pdflatex?) that writes the auxiliary files? I 
suspect the latter, in which case I'm pretty sure the answer to your 
question is no. You could create a custom export format and tell LyX to 
invoke a shell script (written by you) that would run whatever LaTeX 
commands were needed and then copy the selected files to the local 
directory (which I believe you can convince LyX to pass as an argument 
to the script). That's complicated enough that you might be better off 
just writing a script that copies the target files to the local 
directory and run it manually after compiling documents.
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Problems related to custom AMS theorem module

2021-07-23 Thread Paul A. Rubin

On 7/23/21 12:14 PM, Rudi Gaelzer wrote:


This question is still related to the recent thread:

https://www.mail-archive.com/lyx-users@lists.lyx.org/msg112228.html 




I thought I got it right, but several unexpected problems came up and 
I'd like to have your opinion.



What I want to do is the following: I'm preparing a series of lectures 
that will employ theorem-like environments.


Several lectures are related to the same subject and so I want the 
enumeration of numbered things (equations, figures, theorems, 
examples, definitions, etc) in subsequent lectures to continue from 
the previous ones.



In order to guarantee the correct sequence, I'm loading in the 
preamble the totcount package.  For each counter employed in a given 
lecture, the totcount package  creates a new counter (equation@totc, 
figure@totc, etc), which contains the last value of the counter.


The values of these counters are then written in a specific file (call 
it previous.tc), which can be read in the subsequent lecture.  
Finally, by using


\setcounter{}{}

I can guarantee the desired continuation of the enumeration of things.


For the native LaTeX counters (equation, figure, etc), I've been 
including all the necessary commands in an ERT with the layout InPreamble.


For the native counters, this works all right because the counters are 
defined with the class and class packages, which are read before 
user-specific definitions incuded with the InPreamble layout.



However, for the theorem-like environments, the implementation is more 
involved.  The problems that are coming up are:



1. Say a given environment like theorem is only introduced from the 
second lecture.  In this case, the file previous.tc will not contain 
the last value of the counter thm@totc, because there was no theorem 
in the first lecture.  Hence, I cannot issue a \setcounter{thm}{value>} because in this case the number of the first theorem gets 
increased for each LyX/LaTeX compilation.


This complicates the implementation of the custom theorem-bytpe module 
I've been tinkering with in my previous thread.  Somehow I need to 
introduce instructions to read the previous.tc file and find out if 
the counter thm was previously employed.  Only if there is a last 
value of thm@totc that I can \setvalue the counter.


I'm not sure what will be the best way to implement this.  Several 
posts I've been browsing through suggest the use of TeX natives like 
\newread, \openin \read, etc, and then use some package (like xstring) 
that identifies specific strings in each line read.  Seems too much 
trouble for me.



2. Then I decided to dumb down my approach.  I will only use \setvalue 
for those counters that I know are employed in the previous lecture, 
as I was doing so far with the native LaTeX counters.


The problem now is that with the layout InPreamble, those instructions 
will be written before the ams-theorem module defines the thm 
counters.  That is going to give errors.


It seems that as of now there is no way to choose the ordering of the 
instructions contained in the layout InPreamble inside the document's 
preamble.  This is discussed in this thread:


https://www.mail-archive.com/lyx-users@lists.lyx.org/msg100172.html 




Therefore, the only solution that I can imagine is to write the 
necessary instructions in the user-defined preamble accessible in


Document Settings -> LaTeX Preamble

This way, I guarantee the correct ordering of the instructions.


Anyway, I just wanted to vent out my frustration that I was not smart 
enough to somehow automatize this process.  This is an admittedly very 
specific problem, and I don't know if you think this can be of 
interest to the larger community.



--

Rudi Gaelzer

Institute of Physics

Federal University of Rio Grande do Sul

BRAZIL

Registered linux user # 153741


I've never used the totcount package, so this may be a bit naive. For 
the first issue, can you set the relevant counters (equation@totc) etc. 
to zero with a \setcounter command in the preamble of the first document 
and, if so, will that zero value get written to the file if no 
environments of the type counted appear in the document? That would 
(hopefully) give you a starting value for the next document.


For the second issue, can you wrap your preamble code in 
AtBeginDocument{} and, if so, does that allow ams-theorem to load first 
and your code to execute correctly?


Paul

-- 
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 Paul A. Rubin

On 7/22/21 2:25 PM, Wolfgang Engelmann wrote:



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.)




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



Strange indeed. I do not encounter that error on my system (Linux Mint, 
which is Ubuntu-based and pretty compatible with Debian), with the 
extracted program in exactly the same folder (~/Downloads). I have 
JabRef 3.8.2 installed, and it does not interfere with launching the 
portable version.


You might try shifting the terminal to the ~/Downloads/JabRef folder and 
running "bin/JabRef", but I suspect the same error will occur.


A nonprinting control character embedded in the path might cause the 
file not found error, but it is very hard to see how one might get into 
the path.


You could also try copying the JabRef folder to /tmp and repeat the 
experiment there. If running ./JabRef in /tmp/JabRef/bin works, a stray 
character in the path becomes more plausible.


--
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 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.)


To run it, open a terminal and run the command "/bin/JabRef" 
(where  is the path to the extracted JabRef folder), or just open 
the terminal in the bin folder and run "./JabRef". I got a lot of error 
messages in the terminal when I tried it (Linux Mint), but it opened and 
appeared to work okay.


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


Re: Customizing counters of theorem environments.

2021-07-21 Thread Paul A. Rubin
(Accidentally replied directly rather than to the list. Better late than 
never?)


I can see no reason to mess with the layout translations file. If your 
LyX user interface uses a language other than English, just give your 
custom theorem environment a layout name in that language. If your new 
environment makes its way into the LyX distribution some day, then it 
will need translations into all supported languages.


As far as implementing a custom theorem-like environment, you need to 
(a) figure out the LaTeX code to implement it and then (b) create a 
module file (or use your hacked ...-bytype.module file) containing a LyX 
layout for it (which will include the LaTeX code to be inserted into the 
preamble). Mimicking what's already in the bytype module file (or, more 
precisely, in one of the .inc files it uses) should get you there pretty 
easily.


Paul

On 7/21/21 11:46 AM, Rudi Gaelzer wrote:


I would like to run by you my solution and ask another question.


I copied the files theorems-ams-bytype.module and 
theorems-ams-bytype.inc into my local layouts directory (with new 
names), then edited them accordingly.  For instance, in the .inc file, 
for the Lemma style, inside the Preamble EndPreamble field I included 
the line


  \renewcommand{\thelem}{\thearea-\arabic{lem}}

\thearea being the prefix to the lemma counter.


Did similar things for the other styles, then reconfigured LyX and 
voila! My customized module is accessible (and works as intended).


I just don't know if this solution is sanctioned by you LyX developers...


Now the question I want to ask.

I want to create a new theorem-like environment.  Reading through the 
Customization.lyx manual, I understand that the different translations 
for the names of the environs reside in the layouttranslations file.  
Looking into it, it says that



# This file has been automatically generated by po/lyx_pot.py.

# PLEASE MODIFY ONLY THE LAGUAGES HAVING NO .po FILE! If you want to 
regenerate


# this file from the translations, run `make 
../lib/layouttranslations' in po.


# Python polib library is needed for building the output file.


I confess I did not quite grasp the process. Do I have to create a 
local layouttranslations file containing the translations for the new 
environment name?  Is there a more detailed guide for this procedure?



On terça-feira, 20 de julho de 2021 20:20:41 -03 Rudi Gaelzer wrote:

> Well, it seems that the solution is indeed via \renewtheorem. However, I

> had to dig deep into the installation of AMS theorem to find the proper

> names of the counters. So far, I've found \thethm, \thelem, 
\thedefn, etc.


> I did not find a full list of counters, so if someone could point me out

> where I can find such a list, I'd be grateful.

>


--

Rudi Gaelzer

Institute of Physics

Federal University of Rio Grande do Sul

BRAZIL

Registered linux user # 153741




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


Re: ERT expression for dimensions of boxes, images etc.

2021-07-04 Thread Paul A. Rubin

On 7/4/21 9:33 AM, Tobias Hilbricht wrote:

Am Sonntag, den 27.06.2021, 11:58 -0400 schrieb Paul A. Rubin:

On 6/27/21 7:36 AM, Tobias Hilbricht wrote:

Dear readers of this list,

is it possible in LyX to enter dimensions in terms of ERT
expressions
such as \linewidth+\marginparsep+\marginparwidth into the dialogs
for
boxes, images (Insert -> Box, Insert -> Image) ?

If I have defined a length in Document -> Settings -> LaTeX-
preamble,
what is the LyX way of sizing boxes and images with that length?

Thanks for helpful hints in advance,
yours sincerly
Tobias Hilbricht


With Insert > Graphics, you can click on the "LaTeX and LyX options"
tab
and insert ERT in the "LaTeX options:" box. For instance, I entered
"width=\linewidth+\marginparsep+\marginparwidth" for an image and
the
test document compiled with what I think was the intended graphic
size.

Unfortunately, I don't see any way to insert ERT in the standard box
creation dialog.

Paul


Paul,

thank you for your help, this works indeed for images very well. A
similar possibility to enter LaTeX-length expressions for boxes would
be a nice enhancement.

Yours
Tobias


Tobias,

Gern geschehen. Regarding a similar dialog for boxes, you might want to 
enter a feature request ticket in the bug tracker 
(https://www.lyx.org/trac/wiki/BugTrackerHome 
<https://www.lyx.org/trac/wiki/BugTrackerHome>) or else send an email to 
the developer list (lyx-de...@lists.lyx.org).


Paul


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


Re: ERT expression for dimensions of boxes, images etc.

2021-06-27 Thread Paul A. Rubin

On 6/27/21 7:36 AM, Tobias Hilbricht wrote:

Dear readers of this list,

is it possible in LyX to enter dimensions in terms of ERT expressions
such as \linewidth+\marginparsep+\marginparwidth into the dialogs for
boxes, images (Insert -> Box, Insert -> Image) ?

If I have defined a length in Document -> Settings -> LaTeX-preamble,
what is the LyX way of sizing boxes and images with that length?

Thanks for helpful hints in advance,
yours sincerly
Tobias Hilbricht

With Insert > Graphics, you can click on the "LaTeX and LyX options" tab 
and insert ERT in the "LaTeX options:" box. For instance, I entered 
"width=\linewidth+\marginparsep+\marginparwidth" for an image and the 
test document compiled with what I think was the intended graphic size.


Unfortunately, I don't see any way to insert ERT in the standard box 
creation dialog.


Paul

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


Re: Empty backup directory

2021-06-26 Thread Paul A. Rubin

On 6/26/21 3:29 AM, Daniel wrote:

Hi,

After installing LyX, the backup directory is empty (Preferences > 
Paths). Does that mean that no backups are created by default or that 
the backups are created even though "Backup documents, every ... 
minutes" is checked (Preferences > Look & Feel > Document Handling) 
(btw. Look & Feel seems a misnomer for backup settings). Or is a 
backup created in the directory of the lyx file (the title bar shows a 
directory even for new not yet saved files, so I suppose these files 
are backup there as well)?


Daniel

My backup directory path is empty and LyX automatically creates backups 
in the document's directory. The backups have the extension .lyx~, so 
they are considered "hidden files" by Mint, Ubuntu and I suspect other 
Linux distros.


Paul

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


Re: Command to put string in both the LyX authoring environment and the finished PDF?

2021-06-20 Thread Paul A. Rubin

On 6/20/21 5:39 PM, Steve Litt wrote:

Hi all,

I have a local layout, based on Book-extsizes, for my new book. I have
no idea what the book's title will be yet, and I sure nuff don't want
to have to search all instances of that title and replace them every
time I get a better idea for the title.

S, what I want to do is put something in my local layout to
articulate the title, both in the LyX authoring environment and in the
compiled PDF, showing the title in a specific appearance. I tried to do
it as a character style, as follows:


\definecolor{titlebodytextcolor}{HTML}{cc}

% ### Character style for book title within body text
\newcommand{\chartitlebodytextL}[0]{{\color{titlebodytextcolor}My
Current Title As Of Today}}%

CharStyle CharTitleInBody
Font
Series  Bold
Color   Red
EndFont
LabelFont
Series  Bold
SizeLarger
Color   Red
EndLabelFont
LatexName   chartitlebodytextL
LatexType   Command
LabelString "My Current Title As Of Today"
End


If I apply the character style CharTitleInBody to an empty string in
LyX, the exact right thing happens in the PDF, but in the LyX
authoring environment the title appears under the character style inset
and also under the following text, which is very disturbing if you're
trying to copy-edit your book in the LyX environment.

Does anybody know what I can do to make the text appear inline, instead
of underneath, within the LyX authoring environment?

Thanks,

SteveT

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

Steve,

This is not an answer to your question, but possibly something simpler. 
If you load the 'titling' package in the document preamble, you can put 
anything you want in the document's title environment and then just use 
\thetitle (or maybe \thetitle{}) in ERT any place you want to repeat the 
title. If you get the hots for a new title later, you just have to 
change it in the title environment. This doesn't deal directly with the 
funky formatting of the title, but it does eliminate the 
search-and-replace aspect.


Paul

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


Re: Converting markdown to PDF

2021-06-16 Thread Paul A. Rubin

On 6/16/21 4:12 PM, Dr Eberhard Lisse wrote:


Using R is a little overkill in my view, but if it works it works :-)-O
It's a bit indirect, but for users of the RStudio IDE, you just open 
RStudio, open the .md file and click the "Knit to PDF" toolbar button 
and you're done (unless you don't like the way the PDF turned out). In 
my case, it would save having to look up the command syntax.


Paul


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


Re: I need an environment similar to, but not identical to LyX-Code

2021-06-10 Thread Paul A. Rubin

On 6/10/21 7:54 PM, Steve Litt wrote:

I need an environment similar to, but not identical to the LyX-Code
environment. Specifically, I need the page margins to be the same as
regular text, and I'd also like a smaller font.

So I figured I'd find the LaTeX definition of LyX-Code and work from
there, possibly using CopyStyle. But I've searched for 1/2 hour and
cannot find the TeX definition of the latexname part of LyX-Code, nor
can I find the LyX user interface part of LyX-Code.

So where can I find the definition of LyX-Code?

SteveT

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

Steve,

Create a file with one line of whatever in a LyX-Code environment. Turn 
on View > Code Preview Pane, and in the preview pane use an appropriate 
format (such as pdflatex) and set the drop down for what to show to 
Preamble Only. You'll find the \newenvironment{lyxcode}{...} stuff in 
the preview pane (after a little scrolling).


Paul

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


Re: SSL certificate error

2021-06-07 Thread Paul A. Rubin

On 6/7/21 4:53 PM, Ricardo Berlasso wrote:

Hi, people,

Today, trying to enter https://www.lyx.org/  I 
get a SSL certificate error:


SEC_ERROR_EXPIRED_CERTIFICATE

Is it a known problem?

Regards,
Ricardo

I can confirm this. Apparently it expired today (June 7) at 17:26:04 
GMT. I'm cc-ing this to the dev list.


Paul

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


Re: Set optional tabular argument

2021-05-16 Thread Paul A. Rubin

On 5/16/21 8:00 AM, Daniel wrote:

Hi,

The tabular environment comes with an optional argument for 
positioning relative to it's surrounding text (t = top, b = bottom). 
Can this argument be set in LyX? (I really mean tabular not table float.)


Best,
Daniel

Right-click anywhere in the table, click Settings..., and under 
Table-wide settings use the Vertical alignment drop-down to make your 
choice.


Paul

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


Re: Pasting latex in a lyx file

2021-04-07 Thread Paul A. Rubin

On 4/7/21 6:44 PM, Andrew Parsloe wrote:



On 8/04/2021 3:14 am, Paul A. Rubin wrote:

On 4/7/21 10:14 AM, Mario D wrote:

Hi all,

sometime I need to paste some latex code inside a lyx file.
When I do this, I lose all the formatting and, in particular,  I 
lose all new lines: this means that what I end up with in my red box 
in lyx is a complete mess which requires a lot of editing.


This is quite annoying: am I missing something which results in this 
behaviour?


Thank you

Have you tried Edit > Paste Special > Paste from LaTeX? Note that 
this is used to paste directly into the LyX document, /not/ into an 
ERT box (ctrl+L).


Paul


I usually just use Ctrl+Shift+V to paste text (including lines of 
LaTeX) that preserves new lines. It works in an ERT box. (I wasn't 
aware of the Paste from LateX option.  In fact, there's quite a bit 
here that has changed since I last carefully looked at what was 
offered by the different menus.)


Andrew


Actually, I usually do the same thing (because I forget about the paste 
LaTeX option). Sometimes, though, what plops into the ERT box is a mess 
of the sort Mario described, and I end up inserting newlines to make it 
readable. I'm not sure if the paste special approach avoids that -- I 
don't have an example handy at the moment -- but one can hope.


Paul

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


Re: Pasting latex in a lyx file

2021-04-07 Thread Paul A. Rubin

On 4/7/21 10:14 AM, Mario D wrote:

Hi all,

sometime I need to paste some latex code inside a lyx file.
When I do this, I lose all the formatting and, in particular,  I lose 
all new lines: this means that what I end up with in my red box in lyx 
is a complete mess which requires a lot of editing.


This is quite annoying: am I missing something which results in this 
behaviour?


Thank you

Have you tried Edit > Paste Special > Paste from LaTeX? Note that this 
is used to paste directly into the LyX document, /not/ into an ERT box 
(ctrl+L).


Paul

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


Re: You use bookmarks in LyX. Tell me about it

2021-04-06 Thread Paul A. Rubin

On 4/6/21 12:43 PM, Scott Kostyshak wrote:

On Mon, Apr 05, 2021 at 02:17:02PM -0400, Paul A. Rubin wrote:


I rarely use bookmarks, and when I do...

This opening phrase made me think you might be "The Most Interesting LyXer in the 
World" (https://www.youtube.com/watch?v=nYR3TPKKzdE).

Scott
They based that character on me (well, a more youthful me, not to 
mention taller, more athletic and better looking). And now, thinking of 
how much I've aged, you've got me craving a beer. :-)



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


Re: You use bookmarks in LyX. Tell me about it

2021-04-05 Thread Paul A. Rubin

On 4/5/21 4:03 PM, Jean-Marc Lasgouttes wrote:

Le 05/04/2021 à 20:17, Paul A. Rubin a écrit :

On 4/5/21 11:54 AM, Jean-Marc Lasgouttes wrote:
On a side note, I find it slightly disconcerting that clicking 
"Navigate Back" in a document with no bookmarks and no recent edits 
opens the last edited document and jumps to the last edit point. 
Jumping to the last edit point in the current document, whenever that 
was made, would be fine, but jumping to a different document is a tad 
disconcerting.


Good point. Can you open a ticket for that? I am not sure what a good 
fix is. I guess some people use that when editing several documents. I 
people use bookmarks, that is.


JMarc

Done (#12239).

Paul

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


Re: You use bookmarks in LyX. Tell me about it

2021-04-05 Thread Paul A. Rubin

On 4/5/21 11:54 AM, Jean-Marc Lasgouttes wrote:

Dear LyX users,

I recently tried to fix ticket #2496 for 2.4.0.
https://www.lyx.org/trac/ticket/2496#comment:20

However, several problems occurred:
1/ displaying bookmark numbers inline does not please everybody (see 
attachment)


2/ displaying them in the margin is not entirely satisfying either 
(other attachment); note that the code for this case is not perfect 
yet (e.g. the margin is not large enough).


3/ making bookmarks visible made me aware that the bookmarks 
functionality is really broken. I fixed a few things, but a lot 
remains to be done.


This makes me wonder: are there users of this bookmarks thing out 
there? What is your use case? Do you keep bookmarks between sessions, 
or is it just to get back and forth in a document at a given moment?


Finally, do you think that making bookmarks visible is useful? For me, 
the main use now is to debug the functionality.


JMarc


JMarc,

I rarely use bookmarks, and when I do it is within a session (meaning I 
do not expect them to survive closing the document and opening it at a 
later date). I do not have any particular need for a visible marker. 
Regarding the "anchor" for the bookmark, my preference would be to 
anchor it to the nearest object (word, equation, inset, whatever the 
cursor "belongs" to or is next to), with the understanding that editing 
the anchor keeps the bookmark attached to it and deleting the anchor 
attaches the bookmark to the immediately previous word, equation, inset 
or whatever.


On a side note, I find it slightly disconcerting that clicking "Navigate 
Back" in a document with no bookmarks and no recent edits opens the last 
edited document and jumps to the last edit point. Jumping to the last 
edit point in the current document, whenever that was made, would be 
fine, but jumping to a different document is a tad disconcerting.


Cheers,
Paul

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


Re: Biblatex issues

2021-03-25 Thread Paul A. Rubin

On 3/25/21 4:40 PM, Rich Shepard wrote:
It's been a long time since I last wrote a document with a 
bibliography. I
have compilation issues on this one and cannot find a saved thread 
with the

solution.

I switched from bibtex to biblatex last year (or earlier) and want to use
the author-date format for citations. Since I upgraded to TeXLive-2020 
I may

have lost changes that worked.

A MWE is attached (without the entire JabRef bibliography) as well as the
full error log. I don't understand why I'm getting errors when I try to
compile the file with pdflatex, yet the PDF is produced.

I'm confused.

TIA,

Rich


Rich,

Your MWE does not include a .bib file, so it's not possible to diagnose 
the exact problem. That said, your log's first encoding error looks as 
if pdflatex gagged on the dash(es) separating two page numbers in a 
reference. I suspect the offending characters are in the .bib file, and 
I would not be surprised if they come from a reference that was copied 
from a PDF file or some such and pasted into JabRef. The second encoding 
error seems to involve the same citations, and again seems to be in the 
vicinity of the page range, although the pathology appears slightly 
different.


Paul

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


Re: Changing Figure Labelling in LyX

2021-03-18 Thread Paul A. Rubin

On 3/18/21 2:13 PM, Philippe Burden wrote:


To whomever this may concern,

I have recently started using LyX to write scientific papers for my 
undergraduate degree. In writing one of my reports, I found myself 
wanting to change the way the figures are labelled. I have managed to 
change the figure labelling from “Figure 1, Figure 2, Figure 3…” to 
labelling per section “Figure 1.1, Figure 1.2, Figure 2.1…” However, I 
was wondering if there was a way to change it to say “Fig. 1.1”, 
instead of “Figure 1.1”


I’ve also changed the size of the font inside the caption to be 
smallest. This works great, no issues. However, the figure label 
itself does not change in size. It simply shows “Figure 1.1: Blah Blah 
Blah, this is only an example…”. Is there a way to make the size of 
the label match that of the caption.


Thank in advance to anyone who can help me.

Cheers,

Philippe Burden


As someone with old eyes, I feel that I should discourage you from using 
"smallest" as the size for captions. That said, if you have the LaTeX 
'caption' package installed, you can put the following in your preamble:


\usepackage{caption}

\captionsetup[figure]{labelfont={scriptsize}, name={Fig.},labelsep=colon}

I think that will do what you want.

Paul

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


Re: blurish pdf figure

2021-03-15 Thread Paul A. Rubin

On 3/15/21 6:31 AM, Wolfgang Engelmann wrote:



Am 15.03.21 um 10:38 schrieb Dr Eberhard Lisse:

Wolfgang,

how is this produced?

el
On 12/03/2021 12:01, Wolfgang Engelmann wrote:
If I insert the graphic (appended) in a lyx document, it looks 
blurish, although the original and in the pdf output it is clear. 
Looks like it is rendered to a pixel figure.

What is wrong?
Wolfgang


With pyxplot (similar to gnuplot, but better):
http://www.pyxplot.org.uk/

#Kidd_2015-model
reset
set multiplot
set term pdf
set width 6
set output './Kidd_2015-B.pdf'
set fontsize 0.65
set key top right

set origin 0,0
set xtics ("12" 12, "18" 18, "24" 24,"6" 30)
set xlabel 'circadian time'
set ytics 0,0.2,1.4
set ylabel 'amount of TIM protein'
set label 1 'nuclear translocation' at 16.8,1.12
set label 2 'transcription/translocation' at 11.3,0.2 rotate 50
set label 3 'repression/degradation' at 24.3,1 rotate -52

plot [9:33][0:1.5] './Kidd_2015-Fig2.csv' index 0 title 'lower 
temperature' with lines colour blue, './Kidd_2015-Fig2.csv' index 1 
title 'higher temperature' with lines colour red


set display
refresh

The date file Kidd_2015-Fig2.csv is in the appendix.
I got it by digitizing the plot in the publication by using engauge
http://markummitchell.github.io/engauge-digitizer/

Wolfgang

You might try exporting the plot from pyxplot as SVG rather than PDF. 
Other than that, I suspect you would need to change the converter 
command LyX uses to convert PDF graphics to a format it can display.


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


Re: blurish pdf figure

2021-03-14 Thread Paul A. Rubin

On 3/12/21 5:01 AM, Wolfgang Engelmann wrote:
If I insert the graphic (appended) in a lyx document, it looks 
blurish, although the original and in the pdf output it is clear. 
Looks like it is rendered to a pixel figure.

What is wrong?
Wolfgang

Are you saying that it looks blurry in the LyX editor (but is clear when 
the document being edited is compiled), or are you saying that putting 
it in a document and compiling that document to PDF results in the 
compiled document containing a blurry image?


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


Re: Instant preview: different sizes in different situations

2021-03-11 Thread Paul A. Rubin

On 3/11/21 12:43 PM, Rudi Gaelzer wrote:

I feared that that would happen...
Is there a way I can acquire a traceback of what's happening?


On quinta-feira, 11 de março de 2021 13:43:13 -03 Paul A. Rubin wrote:

I cannot reproduce that here (LyX 2.3.6.1, Linux Mint 20, Qt 5.12.8,
TeXLive 2019).
You can start LyX by runing 'lyx -dbg graphics' in a terminal, then load 
a document with a formula and see if anything in the terminal chatter 
indicates a problem. I'm not sure if that will help, since I can't test 
it here.


Paul

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


Re: Instant preview: different sizes in different situations

2021-03-11 Thread Paul A. Rubin

On 3/11/21 10:29 AM, Rudi Gaelzer wrote:

Using:
LyX v. 2.3.6.1
OS: Fedora Core 33
TeXLive v. 9

I noticed a weird behaviour for some time already with Instant Preview.
In: Preferences -> Look & Feel -> Display -> Instant preview,
if I set Preview size 1.2, then during the edition, when a given formula is
rendered for the first time, the display size is OK.
However, when I restart LyX and resume processing the text, the same formula
is rendered with a much smaller size... very difficult to read.

If I try to circumvent this problem by setting preview size to, say,  1.5,
then on the first time the equation becomes huge, although after restart the
new size is better than with the previous setting.

Has anyone noticed this behaviour as well?  I'd say this is a bug, but, I
don't know...

I cannot reproduce that here (LyX 2.3.6.1, Linux Mint 20, Qt 5.12.8, 
TeXLive 2019).


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


Re: Increase base font size

2021-03-09 Thread Paul A. Rubin

On 3/9/21 11:26 AM, Rich Shepard wrote:

Using lyx-2.3.6.1 and KOMA-Script Article class. I'm preparing speaker's
notes for a forthcoming video presentation and I want the body text 
larger

than 12pt. In Settings->Fonts the choice is limited to 12pt.

What's the LaTeX for changing paperfontsize 12 to paperfontsize 14? Is it
\renamecommand{paperfontsize}{14}?

TIA,

Rich
Not directly an answer, but in the prerelease (beta? alpha?) version of 
LyX 2.4, with KOMA-Script Article selected, the font size list goes up 
to a whopping 20pt size. (I believe that going any higher may require 
permits from your local building authority.)


Paul

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


Re: Again: sidecap figure

2021-03-04 Thread Paul A. Rubin

On 3/4/21 3:39 AM, Wolfgang Engelmann wrote:



Am 02.03.21 um 14:46 schrieb Wolfgang Engelmann:

In my preamble I have

\usepackage{sidecap}
% Definition to put legends beside tables and figures
\newcommand{\TabBesBeg}[1][1.0]{%
  \let\MyTable\table
  \let\MyEndtable\endtable
  \renewenvironment{table}[1]{\begin{SCtable}[#1]##1}{\end{SCtable}}}

\newcommand{\TabBesEnd}{%
  \let\table\MyTable
  \let\endtable\MyEndtable}

\newcommand{\FigBesBeg}[1][1.0]{%
  \let\MyFigure\figure
  \let\MyEndfigure\endfigure
  \renewenvironment{figure}[1]{\begin{SCfigure}[#1]##1}{\end{SCfigure}}}

\newcommand{\FigBesEnd}{%
  \let\figure\MyFigure
  \let\endfigure\MyEndfigure}

In the document I use in ERT
\FigBesBeg} before the float figure and
\FigBesEnd} after the float figure

but get this error:
! Undefined control sequence.
l.279 ...lgae (see figure \ref{thalli}).\figBesBeg

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.

What is wrong?
Wolfgang


I still struggle with sidecap figure and append a .tar.gz file with an 
(almost) minimal example.

The error I get:

\figBesBeg
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.

I used the example in the LyX help file Embedded objects 3.10
With my LyX et Co setup (Debian 11) I get with it
! Package babel Error: Unknown option `ngerman'. Either you misspelled it
(babel)    or the language definition file ngerman.ldf was 
not found.

See the babel package documentation for explanation.
Type  H   for immediate help.

But I can run it with 'show anyway' and the legend placement is 
correctly sidewise.


Could somebody be kind enough to run the example and see whether it 
works in her/his case?


My
LyX Version 2.3.6
(Friday, November 27, 2020)
Library directory: /usr/share/lyx/
User directory: ~/.lyx/
Qt Version (run-time): 5.15.2
Qt Version (compile-time): 5.15.1

Wolfgang

The problem is that you defined \FigBesBegin and \FigBesEnd with capital 
"F" but invoked them with lowercase "f" (as in \figBesBegin). If you 
correct that, the document compiles.


Paul

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


Re: footnote

2021-03-04 Thread Paul A. Rubin

On 3/4/21 12:52 PM, Patrick Dupre wrote:

Hello,

Could somebody tell me what is wrong in this file with a formula in a footnote?

Thank

===
  Patrick DUPRÉ | | email: pdu...@gmx.com
  Laboratoire interdisciplinaire Carnot de Bourgogne
  9 Avenue Alain Savary, BP 47870, 21078 DIJON Cedex FRANCE
  Tel: +33 (0)380395988
===

RevTexk apparently puts footnotes in the bibliography. If you are 
content to have them at the bottom of the pages in which they occur, 
just add "nofootinbib" (without the quotes) to the class options for the 
document.


Paul

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


Re: beamer dual

2021-03-03 Thread Paul A. Rubin
I've used (and been quite happy with) Impressive 
 on Linux. It's written in Python.


Paul

On 3/3/21 9:31 AM, Patrick Dupre wrote:

Thanks, but under Linux?

===
  Patrick DUPRÉ | | email: pdu...@gmx.com
  Laboratoire interdisciplinaire Carnot de Bourgogne
  9 Avenue Alain Savary, BP 47870, 21078 DIJON Cedex FRANCE
  Tel: +33 (0)380395988
===



Sent: Wednesday, March 03, 2021 at 12:30 PM
From: "Dr Eberhard Lisse" 
To: lyx-users@lists.lyx.org
Subject: Re: beamer dual

On the Mac you can use slidepilot.

el

On 03/03/2021 13:16, Patrick Dupre wrote:

Hello,

I am preparing a short presentation for a colleague.  I would like to
have the regular slides on the standard screen, and on an auxiliary
screen, the notes/text that he could use.  Or at least to have the
"notes" attached to the slide, but not visible during the
presentation.

Is it possible?

Thanks

[...]



--
To email me replace 'nospam' with 'el'

--
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: beamer dual

2021-03-03 Thread Paul A. Rubin

On 3/3/21 12:04 PM, Patrick Dupre wrote:

Yes,
I installed Pympress.
But, I anticipated that the NoteItem or \note[item]  (beamer)
would be the visible in "Annotations" (Pympress)
But it is not the case.

What am I missing?

Thanks.

===
  Patrick DUPRÉ | | email: pdu...@gmx.com
  Laboratoire interdisciplinaire Carnot de Bourgogne
  9 Avenue Alain Savary, BP 47870, 21078 DIJON Cedex FRANCE
  Tel: +33 (0)380395988
===

Did you add \setbeameroption{show notes on second screen=⟨location⟩} to 
the preamble? I don't use Pympress, but I would assume that the option 
still has to be set in the document.


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


Substack/subarray

2021-02-27 Thread Paul A. Rubin

Hi all,

Do \substack and \subarray (discussed in the Math help file) appear 
anywhere in the math toolbars, or do they have to be entered by typing 
the LaTeX commands?


Thanks,
Paul

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


Re: aux file

2021-02-17 Thread Paul A. Rubin

On 2/17/21 2:31 AM, Wolfgang Engelmann wrote:
I used to produce an aux file from my lyx document by exporting the 
tex file via plain latex, running it and select the aux (I remember, 
there was an easier way, but I forgot). But plain latex does not 
appear any more since I use xetex.

What should I do?
Wolfgang
Assuming xetex produces aux files (I would guess it does, but I've never 
used it), you could just use View > Document in LyX to compile and view 
the document, then navigate to the temporary directory LyX is using and 
copy the aux file from there.


Paul

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


Re: Frame Control in LYX Beamer Slides

2021-02-14 Thread Paul A. Rubin

On 2/14/21 3:02 PM, Doug Martin wrote:



On Sun, Feb 14, 2021 at 11:03 AM Paul A. Rubin <mailto:parubi...@gmail.com>> wrote:


That said, the culprit is a setting in the document. If you go to
Document > Settings... > Math Options, you will note that the
"Indent formulas" option is checked and set to Default. Uncheck it
and your centered formulas will center properly.


*Perfect. Many thanks.  Now I know to look around more at the settings.*
*
*
*Doug*


One last comment: When I create a new Beamer document, the "Indent 
formulas" box is unchecked by default (as it is with other document 
classes I use). So I think there are three possibilities here:


1. you selected it in this document a while back for some reason (or
   unintentionally -- the dreaded stray click);
2. you made this document by recycling a previous document or using a
   "template" document, and that document had it selected; or
3. you somehow wound up with having it selected by default when you
   create a new document.

The third one is easy to check: create a new doc and see if indent is 
chosen. I bring this up because you should not have to mess with this in 
future documents (unless you want indentation the default in other 
docs). If you accidentally have indentation as a document default and 
don't want that, just create a new doc of the correct default class 
(standard article for me), go to the math options settings and uncheck 
indentation, then go to Document Class settings and click "Save as 
Document Defaults".


Paul

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


Re: Frame Control in LYX Beamer Slides

2021-02-14 Thread Paul A. Rubin

On 2/14/21 1:16 PM, Doug Martin wrote:

Paul (and all),

Sorry for this partial repeat, as I accidentally sent previous email 
before I was finished:


As for my desire to center equations, I have attached the LYX file and 
the resulting pdf file.
The last pdf slide shows the left-justification of equations that I am 
getting.


The Beamer theme used in the LaTeX preamble is Madrid.  There is a 
Madrid theme slide deck at

Paul,

As for my desire to center equations, I have attached the LYX file and 
the resulting pdf file.
The last pdf slide shows the left-justification of equations that I am 
getting.


The Beamer theme used in the LaTeX preamble is Madrid. For an example 
of the Madrid theme see
http://homepages.math.uic.edu/~hurder/math589/beamer/index.html, where 
the equations are centered.
So I guess there are some other things I have to change in the LaTeX 
preamble?  I'm a little bit lost here.


Doug


Doug,

You and I have entirely different ideas of what a minimal example is. 
That said, the culprit is a setting in the document. If you go to 
Document > Settings... > Math Options, you will note that the "Indent 
formulas" option is checked and set to Default. Uncheck it and your 
centered formulas will center properly.


Paul

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


Re: Frame Control in LYX Beamer Slides

2021-02-14 Thread Paul A. Rubin

On 2/14/21 11:58 AM, Doug Martin wrote:


I also found that it is helpful to always create right away the 
separator to end the Frame, which is not in the main Dropdown menu for 
Standard, etc., as I had seen in a tutorial, but in the Insert drop 
down menu.


By the way, do you happen to know how to get true horizontally 
centered equations in Beamer slides. When I center them in the LYX file,

they end up shifted somewhat left.


In the Insert menu, you should find "Separated Frame Below", the default 
binding for which is Alt+P Return. That will both insert a separator and 
start a new frame in one gulp.


I don't know what you mean about centering equations. I just hit 
Ctrl+Shift+M to get a math inset in display mode, then change the type 
of equation if necessary. The equations are centered on the slide, at 
least to my satisfaction. Perhaps you should post a minimal working 
example with an off-center equation to the user list.


Paul

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


Re: Frame Control in LYX Beamer Slides

2021-02-14 Thread Paul A. Rubin

On 2/14/21 10:50 AM, Doug Martin wrote:
I I have the following simple question:  I have by mistake created a 
new Frame and want to

delete. There must be a simple way to do that, but I am not seeing it.
Thanks in advance for any guidance provided.

Doug


Put the cursor in the inset for the frame title (assuming there is one), 
at the very left, and hit backspace to get rid of the inset. Then just 
use the environment select box (start of the top tool bar) to change 
from Frame to Standard (or whatever you would like).


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


Re: find next?

2021-02-11 Thread Paul A. Rubin

On 2/11/21 7:28 PM, David Pesetsky wrote:

My Macintosh-educated fingers are used to ⌘-G for "find next" (used after using ⌘-F for 
"find").  Does Lyx have a "find next" function so I can duplicate this?

I may be missing something in plain view, in which case, my apologies for 
wasting everyone's time — but I'm not finding it.

-David
Cmd-F opens a dialog that stays open while you are searching. With open, 
alt+N will do "find next" (as will clicking the Find Next button in the 
dialog.


If you want to repeat your last find operation after the dialog has been 
closed, there is an LFUN that will do it: word-find. It takes an 
argument (the search target), but if you omit the argument it repeats 
the last find. Assuming cmd-G is not bound to anything useful in your 
setup, you could bind it to word-find.


Paul

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


Re: Koma-script Book Figure/Table numbering.

2021-02-04 Thread Paul A. Rubin

On 2/4/21 9:25 AM, Rich Shepard wrote:

On Thu, 4 Feb 2021, Norman Dunbar wrote:


* Lyx 2.2.4 (From the Mint distro, not downloaded.)


Norman,

Could be an issue fixed since then. The current version is 2.3.6.1.

I have a test case if anyone is interested, but I doubt I'd be 
allowed to

attach it to a list posting, especially as a new subscriber.


Actually, a NWE (Minimum Working Example), attached to a message, is a
requirement. It allows folks to see the underlying LaTeX and futz with 
it to

understand what's happening. Please send it.

Rich


Norm,

On the subject of upgrading, you can get a .deb file by adding the 
developer PPA as a software source, doing a refresh in the update 
manager, and then updating LyX. Here's the line for adding the PPA: deb 
http://ppa.launchpad.net/lyx-devel/release/ubuntu focal main. Change 
"focal" to the Ubuntu equivalent of Mint 19 (xenial?). If you have any 
Mint-specific questions, I'm on Mint 20.


Paul

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


Re: Importing tex file into Lyx

2021-01-28 Thread Paul A. Rubin

On 1/28/21 10:54 AM, Keith Sloan wrote:


My Uni has supplied me with a tex template that they want me to use.
I have tried opening a new Lyx document and then importing the tex 
file but I get an error see attached.

An error occurred while running:
$$s/../MacOS/text2lyx -f "casestudy.tex"
"casestudy.lyx"

I am on Mac Catalina 10.15.7

I note the tex file has near the beginning

%Example of use of Time Domain Astrophysics latex class
\documentclass{tda}

And they are also supplying a file tda.cls

Not sure where to go to diagnose the problem.
Hope somebody can help advise

== Art & Ceramics ===
https://www.instagram.com/ksloan1952/


I think you are going to have to do the following:

1. Install tda.cls in your LaTeX setup (park it in an appropriate
   location and make sure your LaTeX installation can find it).
2. Create a LyX layout file for the tda class, and store that in your
   local LyX directory.
3. Reconfigure LyX so it finds the new layout.

See chapter 5 of the LyX Customization manual for details.

Paul


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


Re: Setting LyX window font size

2021-01-27 Thread Paul A. Rubin

On 1/27/21 2:14 PM, Rich Shepard wrote:
Running lyx-2.3.6.1 on Slackware-14.2/x86_64 with Xfce4-4.12.1. This 
upgrade

changed the font size on the window's menu, outline panel, and other
non-text-body elements. They're now too small for me to comfortably read.
See attached screenshot.

Using Preferences -> Display I can set the document typeface, stroke, and
size. But I cannot find where to change the window decorations. And using
the Xfce4 Settings -> Display I can change the font size of other
applications (e.g., GnuCash) but not the LyX window.

I'm assuming that LyX uses Qt5 as the application framework in C++ and 
I'm

having difficulties finding how I can change the Qt5 font size in this
application.

All ideas on how to increase the font size on the frame surrounding the
writing area are solicited.

TIA,

Rich

I'm not sure about Slackware, but on Mint (and Ubuntu) there is a 
utility named qt5ct (Qt5 Configuration Tool). On Mint (and presumably 
Ubuntu) it's available from the system menu by searching "qt5". If you 
install it and run it, you should get a simple GUI interface that lets 
you set all sorts of things. In the Fonts tab, click the ellipsis next 
to "General", leave the font selection alone but switch the font style 
to "Regular", pick a larger font size, click OK and then (back in the 
main window) Apply. You should see the font in the LyX menus change 
immediately (no restart required). There's a caveat: this will apply to 
all Qt5 apps (including the configuration tool), not just LyX.


If you want larger toolbar icons in LyX, that's handled from within LyX. 
Right click in any empty space on any toolbar and, at the bottom of the 
context menu, pick your preferred icon size.


Paul



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


Re: Large delimiters, multiline equations

2021-01-22 Thread Paul A. Rubin

On 1/22/21 3:24 PM, Joel Kulesza wrote:



On Fri, Jan 22, 2021 at 12:09 Paul A. Rubin <mailto:parubi...@gmail.com>> wrote:


On 1/22/21 1:06 PM, Neal Becker wrote:
> On Fri, Jan 22, 2021 at 11:26 AM Joel Kulesza
mailto:jkule...@gmail.com>> wrote:
>> On Fri, Jan 22, 2021 at 6:29 AM Neal Becker
mailto:ndbeck...@gmail.com>> wrote:
>>> I have an equation that has to be split (to fit into beamer
>>> presentation).  It has large delimiters that span the lines. 
Does lyx
>>> have any facility to help with this?  I did get a useable
result, but
>>> only with a lot of ERT.  Lyx seems not helpful here, is there
any way
>>> other than ERT to get "\Biggl. ... \Biggr]"? Or "\right."?
>>>
>>> Here is what I wanted:
>>>
>>> \begin{multline*}
>>>
>>> \mathbf{X}_{N_{C}\times S\times
>>>

A}=\left[\left[\left[\sum_{n}m1_{p+cL_{c}+nS}m2_{p+cL_{c}+(n+\tau)S}^{*}\right.\right.\right.,\\
>>>
>>> \Biggl.\Biggl.\Biggl.\tau\in[-A/2\dots A/2]\Biggr],p\in[0\dots
>>> S-1]\Biggr],c\in[0\dots N_{c}-1]\Biggr]
>>>
>>> \end{multline*}
>>
>> To accomplish this, I prefer to use the Insert Delimiters
capability (the subject of an adjacent thread). Using "none" will
let you give the appearance of matched delimiters that vertically
scale to contain the contents. The "Swap & Reverse" button is
meant as a convenience to control delimiter insertion in this
manner.  Finally, if you have lines that vary in vertical extent,
a vertical phantom (\vphantom) with the proper contents will
ensure consistent delimiter sizes.
>>
>> Hope this helps,
>> Joel
> Thanks for the reply.  I can't see how to do this. Inserting
> Delimiters seems to insist on inserting a pair of delimiters - I
don't
> see any way to just get \left[ for example.
I've attached three screenshots. The first (shot1.png) shows LyX open
with a new document, containing two copies of your example. The first
copy is pasted into an ERT box (so that I can see what you are
shooting
for). The second has most of your example, but not the nested
brackets,
typed into a multiline math environment. The first line of the
multiline
formula is selected, so that I can put a left bracket in front of it.

The second screenshot shows the delimiter insertion dialog. Note
that I
unchecked the "keep matched" box below the left pane, then selected a
left bracket in the left pane and "(None)" in the right pane.

The third screenshot shows the formula after I click "Insert" in the
delimiter dialog. There is a large left bracket at the start of the
first line and "phantom" bracked (dotted line) at the end of the
first
line. To insert other brackets, do similar things, selecting the
content
of the bracketed area and where appropriate selecting none on the
left
and a closing bracket on the right.


Paul,

Thanks for picking up the thread!  If you provide the LyX file for 
shot3, I’ll demonstrate what I meant about vphantom.


Thanks again,
Joel

Joel,

Happy to help on the thread. Here's the file for shot 3.

Paul



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


Re: Default new documents rendering as cropped PDF

2021-01-21 Thread Paul A. Rubin

On 1/21/21 5:53 PM, list_em...@icloud.com wrote:

Hi List,

For some reason when I start a new generic document (File -> New) which is an 
Article (Standard Class), the PDF is rendered as cropped.

The default rendering keyboard shortcut (Command-R on my Mac) shows Document -> View 
[PDF (cropped)] so it’s doing what it is being told when I hit Command-R. But when I do 
Document -> View (Other Formats) -> PDF (pdflatex) it still renders the PDF as 
cropped. Also, the topmost menu item under File -> Export is PDF [PDF (cropped)].

In preferences, File Handling -> File Converters -> Default Output Formats -> 
With TeX fonts is set to PDF (pdflatex).

I can open an old file (saved just a couple days ago) and it still renders with 
margins as expected. Also, the top item in File -> Export is then PDF 
(pdflatex). Opening a new file from IEEE template behaves the same way.

I keep a tiny LyX file around called Equation Setter that I use from time to 
time to make equations for pasting into other programs such as graphics 
programs; that file exports cropped PDFs as desired and I used it recently.

Why do new generic Article (Standard Class) documents render as cropped, with 
cropped as the command connected to Command-R, and why do they still render 
cropped when bypassing that menu command to pdflatex?

Jerry
If you open a new document and go to Document > Settings > Formats > 
Output Format > Default output format, is it set to Default (in which 
case it should use pdflatex, since you have that set a the user default) 
or PDF (cropped)? I'm thinking that at some point you might have saved a 
document with default view cropped as your default file class. That 
would explain cropped being at the top of the export options.


As to why a cropped document renders cropped when you switch the view to 
pdflatex, I think this may be a bug in LyX. I did the following 
experiment with an existing document that rendered normally (my default 
format is pdflatex):


1. change the document default view to cropped and view it (the PDF is
   cropped);
2. with the default still set to cropped, view as pdflatex (the PDF is
   still cropped);
3. make a trivial change (type a space and then delete it) and view as
   pdflatex (the PDF is no longer cropped).

So once you have viewed the document (creating a PDF in the temp buffer 
directory), switching between pdflatex and cropped does not seem to 
trigger recompilation in all cases (at least not when switching from 
cropped back to normal margins).


Paul

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