Re: pdflatex build error: Mismatched LaTeX support files detected

2023-06-19 Thread Paul A. Rubin

On 6/19/23 13:52, Rich Shepard wrote:

The problem seems to be a biblatex/utf8 issue. The whole error log is
attached and the error starts at line 500.

Please teach me how to fix this and avoid future occurrences.

TIA,

Rich

I think the stuff about UTF-8 right above the error message has nothing 
to do with the error. The error just got discovered after that log line.


Taking the error message at face value, it looks like you somehow ended 
up with a very recent (June 2023) version of TeXLive with a not quite so 
recent (May '23) version of one of the files (expl3.sty). So maybe an 
installation or update of TeXLive got bollixed up? At any rate, it's 
unrelated to LyX. Somebody reported this 
 
with an earlier version of TeXLive and posted what looks like a fix.


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


Re: centering frame titles in beamer

2023-04-25 Thread Paul A. Rubin

On 4/24/23 21:04, Tom Goldring wrote:
My apologies, somehow I missed seeing your answer. Could you please 
resend?


Thanks,
Tom

Try adding the following to the preamble (Document > Settings... > LaTeX 
Preamble):


\setbeamertemplate{frametitle}[default][center].


Paul

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


Re: centering frame titles in beamer

2023-04-24 Thread Paul A. Rubin

On 4/24/23 15:18, Tom Goldring wrote:


I am able to create a slide presentation in LyX using beamer. Is there 
an easy way to center the frame titles without going through trial and 
error adjustments (depending on the length of the frame title) for 
each frame?



You asked this and I answered last week. Assuming my answer did not 
solve the problem, can you supply more information (why it didn't work, 
any special concerns, ...).


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


Re: Screen font question-inline

2023-04-20 Thread Paul A. Rubin

On 4/19/23 13:44, John White wrote:


I hope Mr. Hoffner is right but I know of no way to make my screen 
larger. I can't figure that out.



On Wednesday, April 19, 2023 9:34:09 AM PDT Eckhard Höffner wrote:

> Actually you are missing the buttom of the window. Maybe your screen is

> to small. Mine is 1150px high (attached).




A couple of things you might try with the dialog:

1. if the dialog is opening maximized (full screen), try clicking the
   middle button in the upper right corner to toggle it from full
   screen to windowed; and
2. if it is windowed (not maximized) and you still can't see the
   buttons, try grabbing the upper edge or top left corner with the
   mouse and resizing it.

On my system, you can stretch or shrink the dialog window up to a point, 
but there is a minimum size below which you cannot go.


Paul

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


Re: Screen font question

2023-04-19 Thread Paul A. Rubin

On 4/18/23 12:19, John White wrote:


Thanks Paul,


I don't see a  "Apply to current session only" warning. However I can 
write to the preferences file.



However, I learned that while the lyx doc is open, ALT + or Alt - 
works great, so I will just do that until I figure out the problem 
(which is there is no "save" option on the screen when adjusting 
screen fonts).



John


That's very odd. On my system, all the Tools > Preferences dialogs have 
the same frame, including buttons at the bottom labeled "Restore", "OK", 
"Apply" and "Close", along with a check box labeled "Apply to current 
session only". Could you post a screenshot of the preferences dialog you 
get? It may indicate a bug (or maybe something funky about Qt on your 
system?).


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


Re: Screen font question

2023-04-17 Thread Paul A. Rubin

On 4/17/23 19:53, John White wrote:


I can change screen fonts (lyx 2.3.6 running on Debian) by 
Tools>Preferences>look>screen fonts. BUT I CAN'T SAVE THE 
SETTINGS AS CHANGED.  Lyx always reverts to the font size it was in 
before I made the change.  Suggestions?



First thing: Before clicking OK in the fonts dialog, make sure that 
"Apply to current session only" is not checked.


Second thing: LyX will try to write the changes to its preferences file 
(in the "screen & fonts" section). On Ubuntu and Mint, that file is 
~/.lyx/preferences. I suspect it's the same on Debian, but if in doubt 
check Help > About LyX for the user directory. If LyX can't write to 
that file due to a permissions issue, the changes would not get saved.


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


Re: centering frame titles in beamer

2023-04-17 Thread Paul A. Rubin

On 4/16/23 21:32, Tom Goldring wrote:
I am able to create a file containing a slide presentation, using 
beamer, in LyX and from there, create the slides as a pdf. Is there an 
easy way to center the frame titles without going through trial and 
error adjustments for each frame?


Try adding the following to the preamble (Document > Settings... > LaTeX 
Preamble):


\setbeamertemplate{frametitle}[default][center].

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


Re: preview of tikz pictures

2023-03-23 Thread Paul A. Rubin

On 3/23/23 11:25, Paolo M wrote:
Here enclosed, two lyx docs:  expo2 and expo3 differing just in one 
(commented out) line in their preamble:

expo2: %\lfoot{  }
expo3: %\lfoot{ è  }

Both docs produce their pdf file but the weird thing is that, in 
expo3, picture cannot be previewed in lyx.

How can a comment in preamble affect preview?

Any ideas?

thank you

Paolo M.

--
--- Paolo M. Pumilia - 347 231 54 96.

I'm not exactly sure why it happens, but when LyX tries to render the 
picture into a graphic image, the Python script fails because both 
epstopdf and pdflatex choke on the accented symbol, despite it being in 
a comment.


One solution is to go into Document > Settings... > Language and switch 
the encoding from "Language default" to Unicode (UTF-8). Save the 
changed document, close it and reload it, and the image is previewed.


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


Re: Create a shortcut to insert the frames separator for beamer documents

2023-03-15 Thread Paul A. Rubin

On 3/15/23 12:46, Ehud Behar wrote:

Just created it.
The message pane says "Unknown function. Warning: unknown command 
definition 'newframe'


Are you sure it is this name for the function?
Sorry, I forgot that long ago I set up the "newframe" command for this 
purpose. I have the attached default.def file parked in ~/.lyx/commands 
(on my Linux Mint system). If you already have a customized default.def 
file under your home directory, you can just add the lines in mine to 
your file.


Paul
\define "newframe" "command-sequence paragraph-break inverse ; depth-decrement 
; depth-decrement ; depth-decrement ; depth-decrement ; layout Frame ; 
inset-dissolve ; environment-split"


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


Re: Create a shortcut to insert the frames separator for beamer documents

2023-03-15 Thread Paul A. Rubin

On 3/15/23 11:49, Ehud Behar wrote:
I want to create a shortcut to insert the short thin red line that 
separates frames when the document class is Beamer.


I know how to create shortcuts, I just don't know the name of the 
"function" that actually inserts this red line.


In the lyx file this red line is called "Separator plain".

If you really think of it, I don't know the function name because I 
also don't know how to insert it from the menus, so you are welcome to 
tell me how to do that as well.


I bound Ctrl+Alt+Return to "call newframe" for precisely this purpose.

Paul

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


Re: Shell-escape enabled but not working

2023-02-23 Thread Paul A. Rubin



On 2/23/23 12:15, Mario D wrote:

A few months ago I posted about this problem: sadly I got no reply. :(

Even more sadly, I have not been to solve the issue!

So I am still forced to export my lyx file to a tex file and compile 
it running "pdflatex -shell-escape" to update pictures, before being 
able to go on with my work in Lyx.


I really don't understand why Lyx doesn't behave like it is intended, 
since I ticked the right option and this is driving me crazy!


Any help is appreciated.

Thanks

M

PS: if needed I can provide a MWE (but I don't know how to provide it: 
can I attach a file?)


Il giorno mer 5 ott 2022 alle ore 20:39 Mario D  ha 
scritto:


Hi,
I have a document which uses the external library of tikz, so I
need shell escape.

I have lyx 2.3.6 so I enabled shell escape via

Document->Settings->Formats and check "Allow running of external
programs."

Nevertheless, when I run pdflatex, I get this error:

-

! I can't write on file `myfile_figure0.md5'.



\relax

l.320 \end{tikzpicture}

(Press Enter to retry, or Control-D to exit; default file
extension is `.tex')

Please type another output file name

! Emergency stop.



\relax

l.320 \end{tikzpicture}

*** (job aborted, file error in nonstop mode)

---

Am I missing something?

BTW, if I export my lyx file to a latex file and I compile it
(with pdflatex --shell-escape), it compiles smoothly.

Thank you


The error message is very strange. File extension MD5 usually means a 
checksum file, used to verify the legitimacy of a download, so I can't 
imagine why LyX or pdflatex would be trying to write it.


As for an MWE, yes, you can attach a file to an email to the list. It 
would help to sort things out.


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


Re: Lyx 2.3.7 on Linux Mint

2023-02-23 Thread Paul A. Rubin

On 2/23/23 10:22, Mario D wrote:

Hi,

I have seen that a new version (2.3.7) has been released.
Trying to upgrade to this new version, I tried to install lyx PPA but 
I get the error

"This PPA does not support jammy".

My PC runs Linux Mint 21 Vanessa (which is the LTR based on Ubuntu 22.04).

How can I upgrade Lyx on my PC?

Even if I don't like snaps very much, even a snap would be welcome.

Thanks

M

I'm also on Mint 21 (Vera in my case) and stuck on version 2.3.6. Liv's 
PPA has not been updated in 110 weeks, so I don't think we'll be seeing 
2.3.7 there, for any Ubuntu/Mint version, any time soon.


There's always the option to compile from source. Alternatively, if you 
go to https://repology.org/project/lyx/versions you can see the versions 
of LyX for various Ubuntu distros, along with the email addresses of the 
maintainers. They show 2.3.6 as the latest for Jammy, but 2.3.7 for 
Lunar. That makes me wonder if there is some installation problem with 
2.3.7 on Jammy. We may have to wait for Mint 22 (sigh).


Paul

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


Re: Tables: Setting width for entire column

2023-02-10 Thread Paul A. Rubin

On 2/10/23 11:32, Rich Shepard wrote:

On Fri, 10 Feb 2023, Udicoudco wrote:


Right click on the table and select "settings..." to open the tabular
settings dialog. Put the cursor in a cell inside the column you want to
change, and in the settings dialog in Table settings->Column settings
change the width to the desired one.


Udi,

That's what I did. The cursor is in the top row of the column and Column
settings changes only that one cell.

Thanks,

Rich

I'm with Udi on this. Maybe you should post a MWE?

Paul

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


Re: Why does lyx not find an installed .sty?

2023-01-26 Thread Paul A. Rubin

On 1/26/23 17:15, Rich Shepard wrote:

On Sun, 22 Jan 2023, Rich Shepard wrote:

What would be the option/action of tlmgr? Looking at the man page 
I'm not

sure what command to use.


I also ran 'su -c texhash' and that didn't let the letter compile.


Installed here are:
texlive-2021.210418-x86_64-1slint
texlive-extra-2020.200608-x86_64-1_SBo

and LyX has been working as it should ... except for this scrpage2.sty
issue.

Searching the web for a solution I tried running (as root) 'tlmgr update
--all' only to be shown, 'bash: tlmgr: command not found'. But, tlmgr is
present as a perl script in 
/usr/share/texmf-dist/scripts/texlive/tlmgr.pl.


Since I've not dug into the TeXLive details I don't understand why the
script is not found and question whether the update --all action to 
tlmgr

would make scrpage2.sty visible to LyX.

Looking forward to learning,


Help!

I need to use the KOMA-Script letter2 class. How do I rebuild the 
database

to fix the problem?

Rich

Try "sudo mktexlsr" in a terminal and see if it helps.

Paul

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


Re: Why does lyx not find an installed .sty?

2023-01-21 Thread Paul A. Rubin

On 1/21/23 19:12, Rich Shepard wrote:

I'm using the KOMA-letter2 class. The .sty file is in
/usr/share/texmf/tex/latex/koma-script/scrpage2.sty.

When I try to print the developing letter I get an error; the entire 
output

log is attached. I've looked at it without seeing where LyX fell of the
track. The log reports that letter class option 'DIN' is loaded on input
line 6, but I don't see that anywhere in the Settings.

Helps appreciated.

Regards,

Rich

If you run "kpsewhich scrpage2.sty" in a terminal, is it found? If not, 
you may need to update the TeX file database.


Paul

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


Re: top tool bar not available

2022-12-23 Thread Paul A. Rubin

On 12/22/22 16:34, John White wrote:


Paul,

I hope this bottom posted email goes.  If not perhaps I am somehow 
maxing out memory.



alt+T gives nothing, but perhaps something here might give you a clue 
as to my problem:



johwhi@whitelaw:~$ cd /usr/share/lyx/ui

johwhi@whitelaw:/usr/share/lyx/ui$ ls

default.ui stdcontext.inc  stdmenus.inc  stdtoolbars.inc

johwhi@whitelaw:/usr/share/lyx/ui$


I am attaching my default.ui file in case that shows something. It shows:


Toolbars

"standard" "on,top"

"view/update" "on,top"

"extra" "on,top,samerow"

"review" "auto,review,top"

"vcs" "off,top"

"table" "auto,table,bottom"

"math_panels" "auto,math,bottom"

"math" "auto,math,bottom"

"mathmacrotemplate" "auto,mathmacrotemplate,bottom"

"ipa" "auto,ipa,bottom"

"minibuffer" "auto,minibuffer,bottom"

"documentation" "off,top"

End


Any other suggestions are appreciated. I wonder if perhaps something 
might be wrong with my computer.




John


I want to make sure we are on the same page about one key thing: what 
you are missing is the main /menu bar/ (File menu etc.), not the top 
/tool bar/, correct?


The toolbars section of default.ui controls which toolbars display by 
default. Earlier in the default.ui file, you'll see a line saying 
'Include "stdmenus.inc"'. That loads the file that controls menus, and 
you can see in the "ls" output that it is present in the directory.


Check that the directory ~/.lyx/ui is empty. If not, you may have a 
broken UI file be loaded in preference to the default one.


Assuming that's not the case, try running LyX from a terminal with the 
command "lyx -dbg init". There will be a pile of messages in the 
terminal window. In particular, you should see the following (or 
something very close):


frontends/qt4/GuiApplication.cpp (3058): About to read default...
frontends/qt4/GuiApplication.cpp (3108): Found default in 
/usr/share/lyx/ui/default.ui

frontends/qt4/GuiApplication.cpp (3058): About to read stdmenus.inc...
frontends/qt4/GuiApplication.cpp (3108): Found stdmenus.inc in 
/usr/share/lyx/ui/stdmenus.inc


If you don't get the message about reading stdmenus.inc, then the 
preceding messages may tell us something about what's broken.


Paul

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


Re: top tool bar not available

2022-12-21 Thread Paul A. Rubin

On 12/21/22 15:29, John White wrote:



On Wednesday, December 21, 2022 12:16:22 PM PST Paul A. Rubin wrote:

> On 12/21/22 14:29, John White wrote:

> > Thank you Paul very much for the suggestion.  It caused me to think

> > that something might be wrong with permissions.  So I opened lyx in

> > root and the top tool bar shows.  It only doesn't show when I open it

> > on a regular, non-root command line or from the lyx icon.

> >

> >

> > I am not sure where the system menu is.  Lyx can be used without the

> > top menu bar but it will only print to one pdf version.

> >

> >

> > John

> >

> > On Wednesday, December 21, 2022 11:09:52 AM PST Paul A. Rubin wrote:

> > > On 12/19/22 14:44, John White wrote:

> > > > So I removed lyx and lyx common and reinstalled on my debian 
bullfrog


> > > >

> > > > system.  This is what I get now when trying to open Lyx:


> > > >

> > > > /usr/share/applications/lyx.desktop is not a readable LYX 
document.


> > > >

> > > >

> > > > Any suggestions?

> > > >

> > > > John

> > >

> > > Are you launching LyX from a terminal or from the system menu. 
If the


> > >

> > > menu, try editing the system menu entry. I would not be 
surprised if it


> > >

> > > somehow ended up using the command "lyx /usr/share/.../lyx.desktop",

> > >

> > > which would launch LyX and try to open the desktop file as a 
document.



> > >

> > > Paul

>

> John,

>

> Please bottom-post on stuff going to the list.

>

> There are two different pathologies here (likely unrelated), the missing

> top toolbar and the "not readable" error message referring to the

> desktop file. My comment about the system menu was related to the

> latter. I don't use Debian (I'm on Mint), but if you have a button that

> you use to launch a menu of available programs, that's what I mean. You

> mentioned using the command line or a "LyX icon". Do you get the error

> message both ways or just using the icon?

>

> As far as the top toolbar goes, is it actually the /top toolbar/ you are

> missing (buttons for selecting environments, creating/opening files,

> applying italics and other fun stuff) or the /menu bar/ (File menu, Edit

> menu etc.)? The subject line says toolbar but you mentioned "menu bar".

>

> Paul


Thanks again.  I no longer get an error message. Lyx just opens 
without the top tool bar. I think its probably the menu bar that I am 
missing (the one that lets you open recent files and save a lyx file 
to various pdf versions). This is pretty confusing for me. I may wait 
til Christmas is over before looking into it further.  Right now what 
I do is email the lyx file to my secretary who can print it out fine.



John


If you want to look into it, try typing alt+T, which should open up the 
Tools menu. From there, go to Preferences > Look & Feel > User 
Interface. The first entry on the right is the user interface file. 
Unless you've futzed with it, it probably says "default". Try browsing 
to /usr/share/lyx/ui and selecting default.ui. Hopefully that will 
restore the missing menu. You might also want to run "ls -l 
/usr/share/lyx/ui/stdmenus.inc" in a terminal and verify that the 
stdmenus.inc file is readable by other accounts besides root. 
Permissions on my system are "-rw-r--r--". If the last "r" is missing, 
that might (or might not) explain why root gets the menus and you don't.


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


Re: top tool bar not available

2022-12-21 Thread Paul A. Rubin

On 12/21/22 14:29, John White wrote:


Thank you Paul very much for the suggestion.  It caused me to think 
that something might be wrong with permissions.  So I opened lyx in 
root and the top tool bar shows.  It only doesn't show when I open it 
on a regular, non-root command line or from the lyx icon.



I am not sure where the system menu is.  Lyx can be used without the 
top menu bar but it will only print to one pdf version.



John


On Wednesday, December 21, 2022 11:09:52 AM PST Paul A. Rubin wrote:

> On 12/19/22 14:44, John White wrote:

> > So I removed lyx and lyx common and reinstalled on my debian bullfrog

> > system.  This is what I get now when trying to open Lyx:

> >

> >

> > /usr/share/applications/lyx.desktop is not a readable LYX document.

> >

> >

> > Any suggestions?

> >

> >

> > John

>

> Are you launching LyX from a terminal or from the system menu. If the

> menu, try editing the system menu entry. I would not be surprised if it

> somehow ended up using the command "lyx /usr/share/.../lyx.desktop",

> which would launch LyX and try to open the desktop file as a document.

>

> Paul



John,

Please bottom-post on stuff going to the list.

There are two different pathologies here (likely unrelated), the missing 
top toolbar and the "not readable" error message referring to the 
desktop file. My comment about the system menu was related to the 
latter. I don't use Debian (I'm on Mint), but if you have a button that 
you use to launch a menu of available programs, that's what I mean. You 
mentioned using the command line or a "LyX icon". Do you get the error 
message both ways or just using the icon?


As far as the top toolbar goes, is it actually the /top toolbar/ you are 
missing (buttons for selecting environments, creating/opening files, 
applying italics and other fun stuff) or the /menu bar/ (File menu, Edit 
menu etc.)? The subject line says toolbar but you mentioned "menu bar".


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


Re: top tool bar not available

2022-12-21 Thread Paul A. Rubin

On 12/19/22 14:44, John White wrote:


So I removed lyx and lyx common and reinstalled on my debian bullfrog 
system.  This is what I get now when trying to open Lyx:



/usr/share/applications/lyx.desktop is not a readable LYX document.


Any suggestions?


John


Are you launching LyX from a terminal or from the system menu. If the 
menu, try editing the system menu entry. I would not be surprised if it 
somehow ended up using the command "lyx /usr/share/.../lyx.desktop", 
which would launch LyX and try to open the desktop file as a document.


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


Re: Method for Not Input \tag Everytime

2022-12-16 Thread Paul A. Rubin

On 12/16/22 11:41, yang.hao@st.kyoto-u.ac.jp wrote:

Dear LyX,

I am trying to using the software for writing master thesis. Now a 
question is how to use shortcut to enter \tag for equations in LyX. I 
searched Internet. But there seems no shortcut for it. I have to input 
\tag for every equation I made. Is it a method that I can copy the the 
\tag like editing in Latex?


And, another question is how to make layout. I refered some document 
for making layout. http://www.bedko.com/download/LyxGuide.pdf But it 
does not worked for the cls I used. Cannot make PDF,and many things 
cannot display on LyX.The .cls load four classes, and Read.me said the 
.cls only support platex, uplatex. Is there a  more concrete for 
making layout?


I am looking forward to a reply.

Kindly Regards,
Yang Hao



The layout issue probably needs more information, and may turn into a 
lengthy discussion.


For the tag issue, you can bind an unused key combination to 
"math-insert \tag{}", which will automatically insert an empty tag at 
the current cursor location.


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


Re: closing a named buffer?

2022-12-14 Thread Paul A. Rubin

On 12/14/22 10:52, Dr Eberhard Lisse wrote:

Hi,

I can easily close the current buffer with a command like (on the mac)

LYXPIPE=$(find ~/Library/Application\ Support ~/.lyx \
   -name .lyxpipe.in 2>/dev/null | head -1)  
echo "LYXCMD:P2:buffer-close" > "$LYXPIPE"

Is it possible to close a named buffer even another was "active" using
the LYXPIPE mechanism?

Let's say the file names I am editing are a.lyx and b.lyx, and a.lyx is
in front, how would I close b.lyx while keeping a.lyx in front/active?

I am willing to RTFM :-)-O

el

I don't know if this would fit your intended use, but you could use a 
command sequence like "buffer-switch 
/path/to/b.lyx;buffer-close;buffer-switch /path/to/a.lyx", assuming that 
you knew the file names/paths when the sequence was triggered. I'm not 
sure if the switch back to a.lyx is necessary. It may depend on whether 
there are more than two buffers open when you execute the command sequence.


Paul

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


Re: which texlive uses my lyx?

2022-12-06 Thread Paul A. Rubin

On 12/6/22 04:51, Wolfgang Engelmann wrote:

I have installed the latest texlive
tex --version
TeX 3.141592653 (TeX Live 2022)
in my Debian /usr/local/texlive/2022/
and set the PATH's in .profile

How can I find out which texlive uses my 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

library directory:
/usr/local/share/lyx24x/

User directory:
~/.lyx24x/

Wolfgang


 * First, in LyX go to Tools > Preferences... > File Handling >
   Converters and select one of the converters you use most often. For
   me, that is LaTeX (pdflatex) -> PDF (pdflatex).
 * Now check the command listed in the "Converter" field. For me, that
   is "pdflatex $$i".
 * In a terminal, run that command with the "--version" option to see
   which version is in use.
 * Repeat for other formats you use as needed. My output pretty much
   matches what you got from "tex --version".

Paul

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


Re: Can you reproduce this bug?

2022-12-05 Thread Paul A. Rubin

On 12/4/22 15:38, Scott Kostyshak wrote:

Dear all,

Can you reproduce this bug on your system?

   https://www.lyx.org/trac/ticket/12435

It's helpful to know the type of systems on which it can be reproduced.
Specifically, it will be helpful to figure out whether the bug only
surfaces on certain operating systems, and only with certain
configurations.

Here is the recipe to reproduce the bug:

   1. Maximize (non-fullscreen) the window
   2. Enter Full screen mode
   3. Exit Full screen.

After step 3, does the LyX window return to the state after step (1)?
i.e., is the window maximized?

If you try to reproduce it, please state:

1. Can you reproduce the bug?
2. Your operating system and version number (version number is
especially helpful for macOS users).
3. Copy/paste the info from Help > About.




1. No. The window is correctly restored as maximized, regardless of 
whether I use Alt V to get the menu or F11 to exit full screen mode.

2. Linux Mint 21 (MATE).
3. From Help > About:

LyX Version 2.3.6

(Friday, November 27, 2020)

Library directory: /usr/share/lyx/

User directory: ~/.lyx/

Qt Version (run-time): 5.15.3

Qt Version (compile-time): 5.15.2

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


Re: Wrong subscript size in small text

2022-11-09 Thread Paul A. Rubin

On 11/9/22 15:28, Csikos Bela wrote:

Hello:

Inserting subscript into small text results in wrong subscript font 
size. The subscript size is equal to the font size (that is, small). 
Lyx incorrectly insert \small before the subscript text. An example:


{\small{}aa A}\textsubscript{{\small{}B}}{\small{} bb}{\small\par}.

This occurs in lyx 2.0.6 and 2.3.6.1.

How to fix this?

Thanks,
bcsikos


Try selecting the subscript text and using the text style tool (or Edit 
> Text Style > Customized...) to set the size of the subscript text to 
"default". When I do this, the subscript text gets bigger in the GUI but 
appears subscript size in the PDF output.


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


Re: Restoring display

2022-10-30 Thread Paul A. Rubin

On 10/30/22 17:28, Rich Shepard wrote:

I'm running version 2.3.6.1.  LyX format is 544.

The content environments are not visible in the outline pane. Under the
Outline heading is the dropdown box that normally has environments 
such as
Standard, Section, and so on. Now the widget displays Table of 
Contents and

the other items available are Citations, Figures, Footnotes, Graphics,
Labels and References.

I don't know what I did to get this display so I've no idea how to 
return it

to return it to what it's been before.

A clue stick is needed.

Rich



Rich,

The select box under the "Outline" heading is intended to show only 
major content groupings (ToC etc.). The select box that has Standard, 
section environments, list/enumeration environments etc. sits at the 
start of the main toolbar, under the File menu where it always is. It's 
not there for you? If not, maybe attach a screenshot?


Paul

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


Re: Problem converting older files with lyx2lyx

2022-10-20 Thread Paul A. Rubin

On 10/20/22 14:44, ahostmadsen--- via lyx-users wrote:
And to add. When I run the following command, which I think emulates 
the converter as run from LyX:


python -tt 
/Applications/LyX.app/Contents/Resources/lyx2lyx/lyx2lyx  -o 
abc.lyx  testfile.lyx


the conversion works perfectly. Yet, from inside lyx it doesn’t work.

Meanwhile, trying to edit converters, my LyX installation got further 
damaged. Now the font used inside LyX is screwed up (only sans-serif), 
although I didn’t change anything about fonts. I feel my LyX 
installation is damaged. How can I uninstall completely, and then 
install from scratch?


Regarding screen fonts, if you go to Tools > Preferences... > Look & 
Feel > Screen Fonts, you should see which fonts are being used in the 
LyX UI (including sample text for each). Do they indicate that any fonts 
with serifs are selected? If not, are any fonts you would like listed 
among the options in the select boxes?


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


Re: Problem converting older files with lyx2lyx

2022-10-05 Thread Paul A. Rubin

On 10/4/22 21:03, ahostmadsen--- via lyx-users wrote:

I have a problem with LyX on one of my Macs (OS 12.5.1).

 1. Equations are not typeset inside lyx (compiling the document works
fine).
 2. When I try to open older files I get: “…. is from an older version
of LyX and the lyx2lyx script failed to convert it.” This is true
for many files I tried.

I had an older version (2.3.2) and just now upgraded to 2.3.6.2, but 
nothing changed.


I have another almost identical Mac (kind of a mirror image), and 
don’t have these problems on that Mac. The older files open fine, so 
it’s not corruption of the files.


I did see something on the mailboard about Python not being installed. 
However, I do have Python installed, directly from Apple (Apple’s 
Python 3.9). When I write python in terminal, I get "Python 3.9.10 | 
packaged by conda-forge” My other computer has the same Python 
installation.



Thanks,
Anders Host-Madsen.

Regarding the equations, in Tools > Preferences... > Look & Feel > 
Display do you have "Instant preview" set to "On"?


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


Re: old lyx document in lyx 2.3.6 doesn't compile

2022-09-15 Thread Paul A. Rubin

On 9/14/22 13:16, Csikos Bela wrote:

Hello:

I have an old document I made in lyx 2.0. Lyx 2.3.6.1 opens is but 
interprets the code incorrectly and gives compilation error:


In lyx 2.0 the latex code is:

\selectlanguage{magyar}%
\begin{enumerate}[nosep]
\inputencoding{latin2}%
\item Első item.\inputencoding{latin9}\foreignlanguage{english}{}\\
\foreignlanguage{english}{First item. }\selectlanguage{english}%
\end{enumerate}

Opening the file in lyx 2.3.6.1 latex code is:

\selectlanguage{magyar}%
\begin{enumerate}[\foreignlanguage{english}{nosep}]
\inputencoding{latin2}%
\item Első item.\inputencoding{latin9}\foreignlanguage{english}{}\\
\foreignlanguage{english}{First item. }\selectlanguage{english}%
\end{enumerate}

How can I convert or open my lyx 2.0 document in lyx 2.3 so that it 
would work correctly?


I attach the the lyx 2.0 file (MWE).

Thanks,

bcsikos


The problem seems to be that the "nosep" option for the enumeration is 
in the wrong place. It might be getting crosswise with the language 
changes. I got it to compile as follows.


1. I removed the magyar option from the line in the preamble that loads
   babel. This may not be necessary for you, but on my system "magyar"
   is not recognized by babel as a language name.
2. I deleted the "enumerate options" inset.
3. I put the cursor at the start of item 1 and hit enter, temporarily
   changing the text to item 2.
4. In the new (empty) item 1 (which has reverted to English), I used
   Insert > Enumerate Options to add back the "nosep" option, then put
   the cursor after the inset and hit delete to bring the original text
   back to item 1.

HTH,

Paul

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


Re: old lyx document in lyx 2.3.6 doesn't compile

2022-09-15 Thread Paul A. Rubin

On 9/15/22 09:59, Dr Eberhard W Lisse wrote:

Asking for help on a document with Disabled Editing is
(thoughtlessly) rude.

el

I opened the file and disable editing was /not/ checked. I'm not sure 
why it was for you, but castigating someone for something they did not 
do is (thoughtlessly) rude.


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


Re: Adjust contents page text area height

2022-09-13 Thread Paul A. Rubin

On 9/13/22 13:02, Rich Shepard wrote:
In this KOMA-Script report document the table of contents has a single 
entry
(for Appendix B) on the following page. Is there a command that will 
allow

that single line to be at the bottom of the page with the rest of the
contents?

Rich

Maybe set \widowpenalty to the GDP (in pennies) in the TOC, if that's 
legal? It's mentioned in section 3.9.8 of the user guide.


Paul

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


Re: Finding source of pdflatex build error

2022-09-10 Thread Paul A. Rubin

On 9/9/22 17:58, Rich Shepard wrote:

I've a large report, six large chapters, bibliography, two appendices.

When I try to compile it I get an error. Trying to find where that 
error is

created, I made a new, empty mwe.lyx file.

Starting at the bottom of my report, I copied the appendices and
bibliography to mwe.lyx. Saved and built. No error. I then added chapters
individually to mwe.lyx, saved and built. No errors. Continued up through
Chapter 2; didn't add Chapter 1 because the report had no issues before I
added text, citations, and the appendices.

So, somewhere in what I added today pdflatex couldn't digest. But, 
copying

from the end of the report forward, chapter-by-chapter everything builds.

What other procedure should I use to find what's causing the error?

Rich

Rich,

Here's what I would do. Assuming that you have the original document 
(the one that won't compile) salted away somewhere, I would take your 
MWE and add Chapter 1 and anything else that's missing. If it still 
compiles, I'd compare it to the original using a file comparison tool 
and see if there are any meaningful differences (e.g., LaTeX commands in 
one but not the other). If differences are found, I'd try to figure out 
which one(s) cause the problem and then what caused LyX to 
insert/delete/alter/reorder the critical lines.


Paul

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


Re: Importing multipage table from .csv

2022-09-09 Thread Paul A. Rubin

On 9/9/22 10:23, Rich Shepard wrote:

On Thu, 8 Sep 2022, Rich Shepard wrote:


Please point me to the way to 1) move to the top so I can resize column
widths and 2) make this a stand-alone document with a title that I can
append to a document.


By trial-and-error I changed the width of the first column and was 
able to
print the header, but those values keep changing. The gzipped .lyx 
file is

attached.

I need to learn how to:
1. Put a single line border on top and bottom of the header row;
2. Put a single line border on the bottom of the last row;
3. Put a caption above the table.

I'm not finding answers on the wiki or stackexchange threads. Perhaps 
I need

to write the entire table in LaTeX using Herbert's tables book?

Rich



Rich,

First things first. When I compile your doc using pdflatex, every page 
starts with the header row (Stream Name etc.) followed by a row for 
Broken Creek and a row for North Fork Flathead River and then the rows 
that are (maybe) supposed to be on that page. Apparently someone (cough, 
cough) turned on the header setting for the Broken Creek and North Fork 
Flathead rows. So you need to right click in their respective cells 
(text search is the fastest way to get there), click Settings..., go to 
the Multi-page table tab and clear the check mark for header status 
being on. Compile and confirm that the first row (Stream Name etc.) is 
now the only repeating header.


For your header row borders, navigate to the Stream Name cell, 
right-click and go to the Multi-page table tab, and select the check 
boxes labeled "double" for "Border above" and "Border below". (I have no 
idea what "double" means here, but when I compile with pdflatex the 
borders looks like one line each to me.)


For the bottom of the last row, get to the name cell (do you really want 
a double ' in O''Brien?), put the cursor in front of the "O", hold down 
ctrl + shift and bang on the right arrow key until the entire last row 
is highlighted. Presumably the table toolbar appeared when you entered 
the cell. Click the bottom border button.


Lastly, there's the table caption. I assume you want this repeated on 
every page (?). Create a new row in the table. Weirdly, it does not 
appear to matter where, so while you're in the O''Brien Creek cell you 
can just click the first table toolbar button and add a new last row. 
Put the cursor in the first cell and type "This table is way to effing 
long", then right click your way to the Multi-page table tab and click 
the "on" checkbox next to "Caption:".


HTH,
Paul


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


Re: I don't see my error

2022-09-09 Thread Paul A. Rubin

On 9/9/22 13:23, Rich Shepard wrote:

On Thu, 8 Sep 2022, Paul A. Rubin wrote:


What is the error? All three work for me with pdflatex. For \degree, I
need to load the gensymb package in the preamble and put it in ERT. For
\circ and \textdegree, I just put them in math insets and LyX takes care
of loading the packages. A MWE is attached (where "W" here actually does
mean "working").


Paul,

See attached mwe.lyx (using only amsmath and \circ. After getting a build
error I recompiled and the .pdf was produced. The degree symbols in the
table are present because I cut-and-pasted from the source document.

The error is in the following paragraph, line 2, where we read
"...15maximum..." and no degreeC.

HTH,

Rich

That's because (as previously noted) the "\circ" command needs to appear 
in a math environment (or you could surround it with $...$ in the ERT 
box, but then the circle would be waist high rather than a superscript). 
See the attached repaired MWE.


Paul


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


Re: I don't see my error

2022-09-08 Thread Paul A. Rubin

On 9/8/22 16:56, Rich Shepard wrote:
I need to enter temperatures in documents and there are three three 
ways I

can do this:

1. \circ (amsmath)
2. \degree (gensymb)
3. \textdegree (textcomp)

I've tried all three, including putting all of 'em in the same
\userpackage{} command in the preamble.

Regardless, each throws an error when compiling using pdflatex.

What have I done incorrectly?

Rich
What is the error? All three work for me with pdflatex. For \degree, I 
need to load the gensymb package in the preamble and put it in ERT. For 
\circ and \textdegree, I just put them in math insets and LyX takes care 
of loading the packages. A MWE is attached (where "W" here actually does 
mean "working").


Paul


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


Re: Shortcut for cropped PDF?

2022-08-30 Thread Paul A. Rubin

On 8/30/22 11:28, sovhist wrote:


On rgp 30 2022, at 6:15 pm, Paul A. Rubin  wrote:


On 8/30/22 06:33, Daniel wrote:

On 2022-08-30 01:28, Paul A. Rubin wrote:

On 8/29/22 17:48, Christopher Menzel wrote:

Yo, works like a charm! I gave “pdf6” a try (can’t remember what my
justification was!) but didn’t try “7”! Is this documented
somewhere? And what determines the relevant number after “pdf”?
  
Thanks!!
  
-c
  

On 29 Aug 2022, at 4:44 PM, Paul A. Rubin  wrote:
  
On 8/29/22 17:28, Christopher Menzel wrote:

Howdy LyX folk,
  
Simple question. When I’m working on my laptop (or frankly

anything short of a 27” monitor) I display my documents use PDF
(cropped) to strip away unneeded marginal whitespace. Is there a
way to set up a keyboard shortcut to update my cropped PDFs?
Something that will trigger the action I get by selecting “Update
PDF (cropped)” from the little “recycle” icon? The only shortcut
function that seems to work for updating is “pdf2” and that
produces a full-size PDF. I’ve looked through all the
documentation I could find and did a bunch of googling but to no
avail.
  
Thanks.
  
Chris Menzel
  

You can bind a key combo to "buffer-update pdf7". If you want
another shortcut for generating the initial cropped PDF file, bind
that one to "buffer-view pdf7". If that doesn't work, go to Tools
  

Preferences... > File Handling > File Formats, selected "PDF
(cropped)" in the "Format:" drop-down list, and make sure the
"Short name:" field on your system reads "pdf7".
  
Paul
  
--

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

The "buffer-update" command is documented in the "LyX Functions"
manual (available from the Help menu). As to the "7", it's just an
ordinal. I suspect the short names were assigned in the order that
formats were added to LyX. So in the beginning there was ps2pdf
("pdf'),, then pdflatex ("pdf2") and dvipdfm ("pdf3"), etc. Although
I can't rule out the possible involvement of a random number generator.
  
Paul
  
I guess the "buffer-update" command is a little under-documented. It

is a bit unclear what exactly "one of the formats defined (in the
current GUI) in the Tools>Preferences>File Formats dialog" means. I
have no idea what "the current GUI" has to do with it. Rather it
seems
to be whatever is under "Short name" (which itself isn't very clear).
Also, it is "Tools>Preferences*>File Handling*>File Formats" these
days (which itself is not a dialog).
  
Daniel
  

I agree with the "under-documented" characterization. When answering
the
question, I figured out that the likely name for the command was
"buffer-update" (mainly based on past spelunking for other things in
the
"LyX Functions" manual). After reading the entry, my instinct was to
try
"buffer-update PDF (cropped)" and then "buffer-update 'PDF
(cropped)'",
neither of which worked. Looking at the file formats entry for "PDF
(cropped)", I happened to notice the short name and gave that a
(successful) try. Specifically mentioning the short name in the
documentation would be an improvement.
  
Paul
  
--

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

Hello.

There is much quicker way to find names of the commands than to search
the documentation. You can open Messages pane (View – Messages pane) and
do whatever action you want. The name of the command of that action will
be written in the pane and after that you can create shortcut for it. It
is my usual way in creating shortcuts.

Best regards,

Valdemaras
Thanks for the tip. I had tried opening the command buffer and looking 
there (which did not work) rather than the Messages pane.


Paul

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


Re: Shortcut for cropped PDF?

2022-08-30 Thread Paul A. Rubin

On 8/30/22 06:33, Daniel wrote:

On 2022-08-30 01:28, Paul A. Rubin wrote:

On 8/29/22 17:48, Christopher Menzel wrote:
Yo, works like a charm! I gave “pdf6” a try (can’t remember what my 
justification was!) but didn’t try “7”! Is this documented 
somewhere? And what determines the relevant number after “pdf”?


Thanks!!

-c


On 29 Aug 2022, at 4:44 PM, Paul A. Rubin  wrote:

On 8/29/22 17:28, Christopher Menzel wrote:

Howdy LyX folk,

Simple question. When I’m working on my laptop (or frankly 
anything short of a 27” monitor) I display my documents use PDF 
(cropped) to strip away unneeded marginal whitespace. Is there a 
way to set up a keyboard shortcut to update my cropped PDFs? 
Something that will trigger the action I get by selecting “Update 
PDF (cropped)” from the little “recycle” icon? The only shortcut 
function that seems to work for updating is “pdf2” and that 
produces a full-size PDF. I’ve looked through all the 
documentation I could find and did a bunch of googling but to no 
avail.


Thanks.

Chris Menzel

You can bind a key combo to "buffer-update pdf7". If you want 
another shortcut for generating the initial cropped PDF file, bind 
that one to "buffer-view pdf7". If that doesn't work, go to Tools > 
Preferences... > File Handling > File Formats, selected "PDF 
(cropped)" in the "Format:" drop-down list, and make sure the 
"Short name:" field on your system reads "pdf7".


Paul

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


The "buffer-update" command is documented in the "LyX Functions" 
manual (available from the Help menu). As to the "7", it's just an 
ordinal. I suspect the short names were assigned in the order that 
formats were added to LyX. So in the beginning there was ps2pdf 
("pdf'),, then pdflatex ("pdf2") and dvipdfm ("pdf3"), etc. Although 
I can't rule out the possible involvement of a random number generator.


Paul


I guess the "buffer-update" command is a little under-documented. It 
is a bit unclear what exactly "one of the formats defined (in the 
current GUI) in the Tools>Preferences>File Formats dialog" means. I 
have no idea what "the current GUI" has to do with it. Rather it seems 
to be whatever is under "Short name" (which itself isn't very clear). 
Also, it is "Tools>Preferences*>File Handling*>File Formats" these 
days (which itself is not a dialog).


Daniel

I agree with the "under-documented" characterization. When answering the 
question, I figured out that the likely name for the command was 
"buffer-update" (mainly based on past spelunking for other things in the 
"LyX Functions" manual). After reading the entry, my instinct was to try 
"buffer-update PDF (cropped)" and then "buffer-update 'PDF (cropped)'", 
neither of which worked. Looking at the file formats entry for "PDF 
(cropped)", I happened to notice the short name and gave that a 
(successful) try. Specifically mentioning the short name in the 
documentation would be an improvement.


Paul

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


Re: Shortcut for cropped PDF?

2022-08-29 Thread Paul A. Rubin

On 8/29/22 17:48, Christopher Menzel wrote:
Yo, works like a charm! I gave “pdf6” a try (can’t remember what my 
justification was!) but didn’t try “7”! Is this documented somewhere? 
And what determines the relevant number after “pdf”?


Thanks!!

-c


On 29 Aug 2022, at 4:44 PM, Paul A. Rubin  wrote:

On 8/29/22 17:28, Christopher Menzel wrote:

Howdy LyX folk,

Simple question. When I’m working on my laptop (or frankly anything 
short of a 27” monitor) I display my documents use PDF (cropped) to 
strip away unneeded marginal whitespace. Is there a way to set up a 
keyboard shortcut to update my cropped PDFs? Something that will 
trigger the action I get by selecting “Update PDF (cropped)” from 
the little “recycle” icon? The only shortcut function that seems to 
work for updating is “pdf2” and that produces a full-size PDF. I’ve 
looked through all the documentation I could find and did a bunch of 
googling but to no avail.


Thanks.

Chris Menzel

You can bind a key combo to "buffer-update pdf7". If you want another 
shortcut for generating the initial cropped PDF file, bind that one 
to "buffer-view pdf7". If that doesn't work, go to Tools > 
Preferences... > File Handling > File Formats, selected "PDF 
(cropped)" in the "Format:" drop-down list, and make sure the "Short 
name:" field on your system reads "pdf7".


Paul

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


The "buffer-update" command is documented in the "LyX Functions" manual 
(available from the Help menu). As to the "7", it's just an ordinal. I 
suspect the short names were assigned in the order that formats were 
added to LyX. So in the beginning there was ps2pdf ("pdf'),, then 
pdflatex ("pdf2") and dvipdfm ("pdf3"), etc. Although I can't rule out 
the possible involvement of a random number generator.


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


Re: Shortcut for cropped PDF?

2022-08-29 Thread Paul A. Rubin

On 8/29/22 17:28, Christopher Menzel wrote:

Howdy LyX folk,

Simple question. When I’m working on my laptop (or frankly anything 
short of a 27” monitor) I display my documents use PDF (cropped) to 
strip away unneeded marginal whitespace. Is there a way to set up a 
keyboard shortcut to update my cropped PDFs? Something that will 
trigger the action I get by selecting “Update PDF (cropped)” from the 
little “recycle” icon? The only shortcut function that seems to work 
for updating is “pdf2” and that produces a full-size PDF. I’ve looked 
through all the documentation I could find and did a bunch of googling 
but to no avail.


Thanks.

Chris Menzel

You can bind a key combo to "buffer-update pdf7". If you want another 
shortcut for generating the initial cropped PDF file, bind that one to 
"buffer-view pdf7". If that doesn't work, go to Tools > Preferences... > 
File Handling > File Formats, selected "PDF (cropped)" in the "Format:" 
drop-down list, and make sure the "Short name:" field on your system 
reads "pdf7".


Paul

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


Re: Missing character

2022-08-25 Thread Paul A. Rubin

On 8/25/22 05:02, Wolfgang Engelmann wrote:

I got this warning
Missing character: There is no ˜ (U+0098) in font 
[LibertinusSerif-Italic.otf]:


and tried to localize it by exporting the lyx file (Debian, lyx-2.4.dev)

Version 2.4.0dev (noch nicht veröffentlicht)
Erstellt aus Git-Revision 53ed3dc0
Qt-Version (Laufzeit): 5.15.2 (Plattform: xcb)
Qt-Version (bei Erstellung): 5.15.2
Python-Aufruf: python3 -tt

to latex (LuaTeX), opened it with the text editor bless, used there 
'search for ' 0098 as decimal.

However, 'The pattern you requested was not found'

Any idea what to do?

Wolfgang
It might display as a single character (possibly ~) in your text editor. 
One possibility is a bisection search. Make a copy of the LyX file, 
delete half and try to compile. If you get the error, it's in the half 
you kept; if not, it's in the half you deleted. Iterate until you have 
narrowed the target down to the point where you can spot the offending 
character.


Paul

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


Re: Where to report a lyx error

2022-08-25 Thread Paul A. Rubin

On 8/25/22 02:38, Wolfgang Engelmann wrote:
I use lyx 2.4.0.dev (Debian) and got a lyx crash. I started with a 
terminal and saved the terminal output in a txt file. Where should I 
send it to?

Wolfgang
There is a bug tracker (https://www.lyx.org/trac/wiki/BugTrackerHome). 
It requires creating an ID (no cost). I would suggest searching first to 
see if the bug has already been reported.


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


Re: Replacing .tex file fonts

2022-08-20 Thread Paul A. Rubin

On 8/20/22 17:16, Rich Shepard wrote:

On Sat, 20 Aug 2022, Rich Shepard wrote:


Okay. I'll post results.


Paul,

What's displayed on screen is the first few lines (\put ...) between 
\begin

and \end document.

The preamble has the entire .tex file.

Sigh,

I've not worked before writing a plain .tex document. Long ago I had a 
book
on TeX, but that's been gone for a while. So, I've no idea how to 
translate

that flavor of .tex file to .pdftex or .pdflatex.

Rich
I don't think this is a plain tex versus pdftex/pdflatex issue. I took a 
closer look at the file. In the preamble, it defines a custom 
environment named "roastlog" which includes some goofy (to me) font 
specifications ("Museo Slab 300 Italic"??). The \put commands in the 
body of the LyX doc are between \begin and \end commands for that 
environment, not begin/end document.


I've attached a LyX file in which I switched the fonts to defaults and, 
in the preamble, commented out the load of the xunicode package (because 
I'm using pdflatex and not xetex), all the setromanfont commands (you 
can try uncommenting them and replacing Museo whatever with some fonts 
you do have) and the graphics includes (because I don't have the graphic 
files). Your guess is better than mine as to why weird fonts are being 
used, but in your shoes I would be tempted to compile and print it 
(using default fonts) and then abandon the .tex file and, starting from 
scratch, create a LyX file that produces the same general output with 
fonts you like (meaning more stuff in the document body and no macros in 
the preamble).


Lotsa luck!

Paul


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


Re: Replacing .tex file fonts

2022-08-20 Thread Paul A. Rubin

On 8/20/22 14:06, Rich Shepard wrote:
I have a .tex file designed for a4 paper and a font family I don't 
have (and
don't want) that I want to convert to letterpaper (done) and my lyx 
default

typeface. Or, another appropriate typeface found in a .lyx file.

Looking at one of my .lyx files I see:
\font_roman "default" "default"
\font_sans "default" "default"
\font_typewriter "default" "default"
\font_math "auto" "auto"
\font_default_family default

which doesn't help.

The entire roastlog.tex file is attached (and, of course, available 
for use

by any other home coffee roaster.)

Please suggest a type face to replace the Museo Slab 300.

Regards,

Rich


Rich,

I can't do much with your .tex file for a variety of reasons (including 
the fact that the graphic files were not included, but mostly due to my 
not using xetex, luatex or several of the more "exotic" packages 
involved). That said, you might try the following: (a) import the file 
into LyX using File > Import > LaTeX (plain) ...; (b) use Document > 
Settings... > Fonts to adjust as needed (you might want to uncheck the 
"Use non-TeX fonts" option); (c) remove or comment out the 
\DefaultFontFeatures command in the preamble if it gives you trouble; 
(d) compile and see if you get something you like. If you get something 
you don't like, try futzing with the font selections. If you don't get 
anything, you're on your own. :-)


Paul

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


Re: tmp/lyx_tmpdir. can't be opened

2022-08-19 Thread Paul A. Rubin

On 8/19/22 02:37, Wolfgang Engelmann wrote:

I get this message:

„file:///tmp/lyx_tmpdir.YXomcmJypLKa/lyx_tmpbuf0/xxx.pdf“ kann nicht 
geöffnet werden ()


I have reinstalled texlive, now at my home, and not in 
/usr/local/texlive/2022 any more.


What should I do?

Wolfgang

Did you reconfigure LyX after reinstalling TeXLive?

Paul

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


Re: lyx2lyx fails to convert

2022-08-18 Thread Paul A. Rubin

On 8/18/22 11:15, Tim J Garrett wrote:


Running MacOS Monterrey and getting this error message trying to open 
old lyx files as recent as 2016:


“file.lyx is from an older version of LyX and the lyx2lyx script 
failed to convert it.”


Unclear what to do from online forums. Any advice? I’m not a 
developer, so step-by-step would be appreciated. I have tried 
installing old versions of lyx but without success. Below is the lyx 
preamble


Thanks

Tim

#LyX 2.1 created this file. For more info see http://www.lyx.org/
\lyxformat 474
\begin_document
\begin_header
\textclass article
\begin_preamble

\usepackage[left,modulo]{lineno}
\end_preamble
\options agums
\use_default_options false
\maintain_unincluded_children false
\language english
\language_package default
\inputencoding auto
\fontencoding global
\font_roman times
\font_sans default
\font_typewriter default
\font_math auto
\font_default_family default
\use_non_tex_fonts false
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100
\graphics default
\default_output_format default
\output_sync 0
\bibtex_command default
\index_command default
\float_placement h
\paperfontsize 12
\spacing double
\use_hyperref false
\papersize letterpaper
\use_geometry true
\use_package amsmath 1
\use_package amssymb 1
\use_package cancel 1
\use_package esint 0
\use_package mathdots 1
\use_package mathtools 1
\use_package mhchem 1
\use_package stackrel 1
\use_package stmaryrd 1
\use_package undertilde 1
\cite_engine natbib
\cite_engine_type authoryear
\biblio_style plainnat
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\justification true
\use_refstyle 0
\index Index
\shortcut idx
\color #008000
\end_index
\leftmargin 1in
\topmargin 1in
\rightmargin 1in
\bottommargin 1in
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\paragraph_indentation default
\quotes_language english
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes false
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
\end_header


There does not seem to be any problem with the header. I created an 
empty LyX document with it, and the lyx2lyx script had no issues 
processing it. So the problem must be in the document body.


You can try the following. Find the lyx2lyx executable on your system. 
On Debian based Linux systems, it defaults to 
/usr/share/lyx/lyx2lyx/lyx2lyx. I have no idea where it is on a Mac, so 
I'll just refer to the equivalent string as "". In a terminal 
window, run


 -v 

which should print the converted document line by line in the terminal 
window. If it gorks, hopefully you will be able to see what it choked on 
and possibly an error message, which you can bring back to the list.


Paul


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


Re: Voice Recognition Accessibility

2022-08-03 Thread Paul A. Rubin

On 8/3/22 19:29, Jodin Morey wrote:

Hello Lyx Developers,

My name is Jodin, and I recently graduated with my doctorate in 
mathematics.  I have a disability which requires me to use voice 
recognition to input mathematics into my computer.  For the last 10 
years or so, I have used three pieces of software (on Windows) to 
accomplish this.  However, recently two of these software packages 
(Scientific Notebook and MathTalk) stopped being supported (the 
underlying companies went out of business). As a result, I have been 
looking for some other software I might be able to use.  The voice 
recognition software I use (the primary desktop voice recognition 
software in existence) is Nuance Dragon Dictate. It was recently 
purchased by Microsoft, so it is doubtful that this piece of software 
will become unsupported anytime soon. However, there are no longer any 
off-the-shelf software packages which translate the recognized words 
into math, so I am interested in developing something along these 
lines.  In particular, I thought I might develop something around Lyx.


It's unfortunate that the voice technology allowing people with 
disabilities to write mathematics has recently disappeared. I am 
hopeful that Lyx can become the future provider of this capability.


I like Lyx because it is open source, and I wish to avoid relying on 
another piece of software that is profit based, and might go out of 
business someday.  The idea is to create hundreds of scripts in Dragon 
Dictate.  That way, when I say "VarOmega," for example, Dragon Dictate 
will turn my voice into words, recognize the words as a Dragon Dictate 
Script, which can then choose from a pulldown menu on Lyx, or just 
enter the right keystrokes.


The main barrier I face right now (other than the time it will take to 
develop all of the scripts), is that many of the mathematical objects 
in Lyx are not available either through a menubar or keystroke.  So my 
request to the developers would be to add keystroke accessibility to 
as many mathematical objects as possible.  To make things easier, 
these keystrokes do not need to be documented in any way.  You needn't 
add the keystroke information on the user interface (for example, when 
you hover your mouse over the button for the math object, or in the 
help documentation).  The point would not be to offer the average user 
a quick keystroke.  And to that end, the keystroke could be very 
obscure (e.g., Ctrl+Alt+Shift+Meta+K), it doesn't need to be simple at 
all.  Doing this does not limit Dragon Dictate's ability to type the 
keystroke, and simultaneously opens up a lot of keystrokes.


Regardless, I will start developing this the voice recognition 
capacity with the keystrokes you currently have available, as I need 
it for my own purposes.  However, I believe developing this more 
comprehensively is an important thing for the disability community.  
And I believe the coding effort required is somewhat minimal.


LyX uses "bind" files to associate keystrokes with symbols or commands. 
There is a file named "math.bind" that comes with LyX (found in 
/usr/share/lyx/bind on Linux systems) that contains bindings for math 
objects. It does not have a binding for \varOmega, but for instance the 
key combo "alt+m g shift+E" (without the spaces) inserts \varepsilon. 
The math.bind file is actually a child file, loaded by the main bind 
file the user opts to use. In my case, that is cua.bind, located in the 
same directory. (The user's choice of main bind file is made at Tools > 
Preferences... > Editing > Shortcuts > Bind file.)


So someone (you?) could create an alternative version of math.bind with 
a new name, adding whatever symbols you wish using obscure/unused 
shortcuts, and then create a new version of a main bind file that loaded 
the expanded math bind file. Alternatively, someone (you?) could put the 
new definitions in a new file (say math2.bind) and then load math2.bind 
in addition to math.bind from the main bind file of choice.


Paul

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


Re: Inserting graphics located in directory from which lyx is executed

2022-07-25 Thread Paul A. Rubin

On 7/25/22 13:01, David Halpern wrote:



On Mon, Jul 25, 2022 at 11:15 AM Paul A. Rubin  
wrote:


On 7/25/22 11:55, David Halpern wrote:
> Paul,
> Thanks for the response. The problem seems to be that the working
> directory is permanently set as my home directory, /home/dhalpern.
> Reading the information that appears in preferences about paths, it
> clearly states that the working directory should be the
directory from
> which one starts lyx. However, I've tried starting lyx from
different
> directories, and the working directory does not change. It's always
> set as the home directory. Is this a bug?  The way around seems
to be
> to change the working directory while working on a particular
project,
> but this is not optimal.
>
> I am using Lyx 2.3.6.1, a fedora 36 binary package. I tried to
compile
> myself but it failed.
>
>

David,

Please bottom-post, since it makes the email threads easier for
everyone
to read. The default working directory is set in Tools >
Preferences...
 > Paths > Working directory. Regardless of where you are when you
launch LyX (assuming you are launching from a terminal), that's the
initial working directory. So if I open a new document and browse
for a
file to insert, the directory in that setting is where the
browsing starts.

When you open an existing document and browse for something to
insert,
the initial directory should be the directory from which you
loaded the
document, again regardless of where you were when you started LyX.

So the issue has nothing to do with where you start LyX. The question
is, once you have opened a document (presumably not in your default
directory), why doesn't the initial directory setting in the graphics
insertion dialog update to the home of the document?

If you open the parent document and then click Insert > File >
External
material (or any of the other choices), then click the browse button,
does it again begin browsing in /home/dhalpern?

Paul

-- 
lyx-users mailing list

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


Hi Paul,
When I do what you suggested, that is "Insert>File>External Material", 
I get a new window and running down on its left side there is a column 
with "Recent, Home, Desktop, Documents, Downloads, Music, etc..". The 
other column lists the contents of whichever item on the left I click.
I then need to navigate to the directory where the file that I would 
like to import is located by selecting "Home" first which lists the 
files and directories in my home directory. If I want to insert 
another file, I need to repeat the process. The only difference is 
that the popup window now lists the first file that was imported, 
which is not that useful. ("Home" could be replaced with "Documents" 
with the same outcome of having to click a number of directories.)  I 
use a terminal window and don't start lyx from my home directory.


Thanks.

David


Sorry, "external material" may have been a poor choice on my part, since 
the first dialog you get has to do with the nature of the material. In 
any event, when I click the browse button there or anywhere else, I get 
a dialog with a few known locations (in my case, "Computer" and my home 
directory) listed on the left and a select box labeled "Look in:" on the 
top. The select defaults to the parent directory of the current 
document, with the rest of the options being the ancestors of the 
current directory and some recently used locations. There's also a 
button labeled "Documents" which will jump the select box entry to my 
Documents directory.


The layout of (at least some) file chooser dialogs is controlled by a Qt 
setting, so this looks as if it is either specific to Fedora or 
something Qt related. I think it is going to require input from either a 
developer or a Fedora user to sort out.


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


Re: Inserting graphics located in directory from which lyx is executed

2022-07-25 Thread Paul A. Rubin

On 7/25/22 11:55, David Halpern wrote:

Paul,
Thanks for the response. The problem seems to be that the working 
directory is permanently set as my home directory, /home/dhalpern. 
Reading the information that appears in preferences about paths, it 
clearly states that the working directory should be the directory from 
which one starts lyx. However, I've tried starting lyx from different 
directories, and the working directory does not change. It's always 
set as the home directory. Is this a bug?  The way around seems to be 
to change the working directory while working on a particular project, 
but this is not optimal.


I am using Lyx 2.3.6.1, a fedora 36 binary package. I tried to compile 
myself but it failed.





David,

Please bottom-post, since it makes the email threads easier for everyone 
to read. The default working directory is set in Tools > Preferences... 
> Paths > Working directory. Regardless of where you are when you 
launch LyX (assuming you are launching from a terminal), that's the 
initial working directory. So if I open a new document and browse for a 
file to insert, the directory in that setting is where the browsing starts.


When you open an existing document and browse for something to insert, 
the initial directory should be the directory from which you loaded the 
document, again regardless of where you were when you started LyX.


So the issue has nothing to do with where you start LyX. The question 
is, once you have opened a document (presumably not in your default 
directory), why doesn't the initial directory setting in the graphics 
insertion dialog update to the home of the document?


If you open the parent document and then click Insert > File > External 
material (or any of the other choices), then click the browse button, 
does it again begin browsing in /home/dhalpern?


Paul

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


Re: Inserting graphics located in directory from which lyx is executed

2022-07-25 Thread Paul A. Rubin

On 7/24/22 17:32, David Halpern wrote:
I am having the following problem in linux (fedora 36). I have a a 
directory called Docs that contains a lyx file together with eps files 
that I would like to insert in the lyx file. To insert a figure, I 
select Insert, choose Float and then select Figure. Then inside the 
Float, I again select Insert, and choose Graphics. In the Graphics 
menu, I click on Browse. Unfortunately, I don't get a list of the list 
of eps files that are in the same directory as the lyx file and from 
which I issued the command "lyx". I have to change directories, and 
this is particularly cumbersome since I end up having to do this for 
each float.  I don't seem to have the same problem when using lyx on a 
Mac.


Any suggestions would be appreciated.

Thank you.

David Halpern

I can confirm that (a) this is not a Linux issue (I don't have this 
problem on Linux Mint) and (b) checking the option to save the document 
directory in the document is not necessary on Linux (or at least not on 
Mint). That said, it's possible that checking that option might override 
whatever is going wrong.


When you click the browse button in the insertion dialog, in what 
directory does it start? Also, which version of LyX are you using, and 
did you compile it yourself or use a binary package?


Paul

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


Re: Adding footnote to table cell

2022-07-07 Thread Paul A. Rubin

On 7/7/22 15:36, Rich Shepard wrote:

On Wed, 6 Jul 2022, Rich Shepard wrote:


When I add a footnote to a table cell the compiled page has the footnote
number in the cell, but the text is not at the bottom of the page.


Now the problem is an error in the ERT \today just under the title.

A MWE is attached.

Rich

Try moving \usepackage{ftnxtra} to the very top of the preamble. I found 
something about it conflicting with the array package, and loading 
ftnxtra first apparently solved that.


Paul

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


Re: Table row shading throws compile error

2022-07-05 Thread Paul A. Rubin

On 7/5/22 18:14, Rich Shepard wrote:

On Tue, 5 Jul 2022, Paul A. Rubin wrote:


I tried this in a fresh document (KomaScript Report class) by adding
\usepackage{xcolor, colortbl} to the preamble, and my table with your 
ERT
and column name in row 1, column 1 compiled just fine. You didn't 
specify

what module you are using, and a MWE would be helpful.


Paul,

I had \usepackage{colortbl}; just added xcolor. Made no difference. MWE
attached, with the build log.

Thanks,

Rich

Well, the introduction of table borders causes LyX to introduce 
"multicolumns" of one column each, which somehow seems to conflict 
(slightly) with the \rowcolor command. Maybe a TeXpert can figure out a 
workaround, but I suspect this is one of those LaTeX things you just 
need to accept ... unless maybe you want to experiment with using LaTeX 
commands to introduce the border lines yourself.


FWIW, I tried editing the LaTeX to move the \rowcolor file before rather 
than in the first cell. It seemed to fix the problem, but I can't find 
any way in LyX to wedge a custom command/setting into a table before the 
first row. The Embedded Objects help manual says to color rows the way 
you are currently doing it, if that is any consolation.


Paul

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


Re: Table row shading throws compile error

2022-07-05 Thread Paul A. Rubin

On 7/5/22 17:37, Rich Shepard wrote:

I suspect this is another outdated module issue but I've not seen the
reason.

The first column in row 1 of a table contains the ERT 
\rowcolor{lightgray}

Species Common Name. TeX doesn't like it; see attached error log. It is
ignored but I'd like to fix the issue.

Rich



I tried this in a fresh document (KomaScript Report class) by adding 
\usepackage{xcolor, colortbl} to the preamble, and my table with your 
ERT and column name in row 1, column 1 compiled just fine. You didn't 
specify what module you are using, and a MWE would be helpful.


Paul

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


Re: Entering special charcter with keyboard shortcut

2022-06-28 Thread Paul A. Rubin

On 6/28/22 16:37, tush via lyx-users wrote:
I want to insert with a keyboard shortcut a special character that I 
use a lot in my document. Until now it was saved in my system 
clipboard and I would just paste it wherever I wanted, but I want to 
use a keyboard shortcut for that.


For example, I want to insert this symbol: *№* (Unicode U+2116 or 
 in html).


How can I do it?

I tried to do it as seen in the attached picture but LyX gives the 
message Unknown or invalid LyX function.


Try binding "unicode-insert 0x2116" (without the quotes) to your key of 
choice.


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


Re: beamer

2022-06-16 Thread Paul A. Rubin

On 6/16/22 07:22, Patrick Dupre wrote:

Hello,

Can I create a slide entirely blank?

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| | Room# D114A
===

You can insert a frame and set the environment to "PlainFrame" in the 
environment select box. Assuming you leave the frame title inset empty, 
the PDF page will be blank except for the little navigation icons in the 
lower right.


Paul

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


Re: Conversion failure for older format

2022-06-15 Thread Paul A. Rubin

On 6/15/22 13:19, Rudi Gaelzer wrote:

I'm trying to open a LyX file with an older format:
\lyxformat 508

But I got the error message: LyX: Conversion script failed
It says that the lyx2lyx script failed to convert the document.

What should I do in this case?
You can try running lyx2lyx on the source file from the command line, 
using one or more options. The -v option makes output "verbose", which 
might include specifics about the error. The -n option tells it to 
ignore any conversion errors, after which you could try opening the 
resulting file and see if (a) it opens and (b) if so, does any of the 
content appear to be missing or screwed up.


Paul

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


Re: Meaning of PageStyle as a class parameter

2022-06-13 Thread Paul A. Rubin

On 6/13/22 19:18, tush via lyx-users wrote:

By the way, I just checked two other layout files that consist of only one 
argument for PageStyle:

aa.layout (Astronomy & Astrophysics) and amsart.layout (American Mathematical 
Society (AMS) Article).

The first should allow the user to use only page style "plain" and the latter only 
"Headers".

But opening a new file from the File->New.. menu and changing the new file's 
document class into either of these, keeps the full general list of the default 
article class just as it was before and doesn't make any effect to the page-layout 
drop down list.

--- Original Message ---
On Monday, June 13th, 2022 at 11:43 PM, Paul A. Rubin  
wrote:



On 6/13/22 18:03, tush via lyx-users wrote:


I am building my layout file and I want to better understand the effect of

PageStyle empty|myheadings|...

Inserting this line into my layout file does not make any apparent effect.

Moreover, I looked at the content of `memoir.layout` and I see that there are 
multiple page styles for this doc class:

`PageStyle empty|plain|headings|myheadings|ruled|Ruled|companion`

After loading this layout file, when I go to Document Settings->Page Layout, I 
see in the drop-down the only the four regular ones: Default,empty,plain,headings 
and fancy.

I expected the drop down list to be updated according to the arguments pass to 
`PageStyle`.

Then what is the meaning of this class parameter?

After setting the document class to memoir and before switching to the
page style setting, did you click OK or Apply to apply the layout
change? When I start a new document (article layout) and switch the
layout to memoir, I get the full list of page style choices.

Paul

--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users
Take a look at the memoir.layout file and also the Customization help 
file. Line 16 of the layout file reads "PageStyle Headings". As 
explained in section 5.3.5 of the customization manual, this is the 
/default/ page style for the class. Now look at line 30 of the layout 
file: "PageStyle empty|plain|headings|myheadings|ruled|Ruled|companion". 
Note that it is in a section named "ClassOptions" (begins on line 28), 
which is explained in the customization manual in section 5.3.6.


What you are seeing in amsart.layout, for instance, is the default page 
setting. There is no list of page styles in the class options section, 
so it presumably reverts to the LyX default.


Paul

PS: Please bottom-post for legibility.
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Meaning of PageStyle as a class parameter

2022-06-13 Thread Paul A. Rubin

On 6/13/22 18:03, tush via lyx-users wrote:

I am building my layout file and I want to better understand the effect of

PageStyle empty|myheadings|...

Inserting this line into my layout file does not make any apparent effect.

Moreover, I looked at the content of `memoir.layout` and I see that there are 
multiple page styles for this doc class:

`PageStyle   empty|plain|headings|myheadings|ruled|Ruled|companion`

After loading this layout file, when I go to Document Settings->Page Layout, I 
see in the drop-down the only the four regular ones: Default,empty,plain,headings 
and fancy.

I expected the drop down list to be updated according to the arguments pass to 
`PageStyle`.

Then what is the meaning of this class parameter?
After setting the document class to memoir and before switching to the 
page style setting, did you click OK or Apply to apply the layout 
change? When I start a new document (article layout) and switch the 
layout to memoir, I get the full list of page style choices.


Paul

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


Re: Settings file for lyx

2022-06-02 Thread Paul A. Rubin

On 6/2/22 09:03, tush via lyx-users wrote:

Thank you very much once again, Riki.

I found the file and I can see it being updated after I apply changes 
in the preferences menu inside LyX.


Where can I choose which preferences file to use? I want to save a 
copy of such a file and save it in the project's directory. How do I 
tell lyx to use that new file?

I can't see anything related to it in the menus.

Screen shot: https://i.ibb.co/cYyJdpk/screenshot.png

Ehud

--- Original Message ---
On Thursday, June 2nd, 2022 at 1:17 AM, Richard Kimberly Heck 
 wrote:



On 6/1/22 17:43, ehud.be...@protonmail.com wrote:

Thank you very much.

The last option you mentioned is the one I would like to adopt. But, 
where is this preferences file located?


If you look under Help > About LyX, it will tell you where your user 
directory is. The preferences file is in that directory. On Linux, 
this is (by default) at $HOME/.lyx/. It is of course elsewhere on 
Windows and OSX and also is, as I said, configurable at runtime via 
the -userdir option.


Riki





--- Original Message ---
On Wednesday, June 1st, 2022 at 5:27 AM, Richard Kimberly Heck 
 wrote:



On 5/31/22 16:42, tush via lyx-users wrote:

Me and my colleagues are working on a multi-user project.
Is there any way to guarantee that all of us have the same LyX 
settings?
We can share screenshots of the settings window, but I prefer 
something more technical.


I mean, the document settings are part of the file.
But LyX settings definitely should not be the same for all users. 
Particularly, settings that are related to languages, font 
encoding and shortcuts, for example, could change if an expert 
user has made changes after the first installation.


I was wondering if I can write down a file to be sent via email to 
my colleagues so can double-click and open it, and after running 
it they would have the same settings for LyX as me, the project 
manager.


Is there such a thing?


Any document-specific settings are contained in the document 
itself. So you do not have to worry about those. They will travel 
with the document. You can see them yourself. Just open the LyX 
file with a text editor. It will look something like this:


#LyX 2.4 created this file. For more info see https://www.lyx.org/
\lyxformat 608
\begin_document
\begin_header
\save_transient_properties true
\origin unavailable
\textclass paper

The document settings are in the header, which ends with \end_header.

The system-wide settings are all contained in text files that you 
can find in your user directory, most importantly the 'preferences' 
file. So to synchronize those, you just need to send that file to 
other users. But I'm not sure that those are what you have in mind.


Note, by the way, that it is easy to use LyX with different 
configurations. The '-userdir' flag lets you specify a user 
directory, so your users could have one for use with this project 
and a different one that they use for other thingsif they want.


Riki









Riki covered this in the last paragraph of his first reply. Start LyX 
from a command prompt with "-userdir preferred preferences file>".


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


Re: Formatting Python code

2022-05-27 Thread Paul A. Rubin

On 5/27/22 18:44, Rich Shepard wrote:

On Fri, 27 May 2022, Paul A. Rubin wrote:


AFAIK, \lstset{} is the correct command. In order to use it in the
preamble, you have to precede it with \usepackage{listings}.


Paul,

I overlooked that.

The correct syntax for setting the tabulator size is tabsize=4. 
"Tabulator

size=4" will cause an error.


Okay. I wondered about that string.


Setting package defaults in the preamble will not register in the LyX
settings dialog, but they will work. So the dialog will continue to say
"no language" and tab size 4 (or whatever the dialog defaults are), but
your preamble settings will work in the compiled document.


Good.

Now I find an error in the complied document that makes no sense.

In one code block are these lines:
row_index_width = 100,
auto_resize_default_row_index = True,
set_all_heights_and_widths = False,
row_height = "1",

but in the PDF the middle two lines are combined and there are spaces 
before

the terminating commas:
row_index_width = 100,
auto_resize_default_row_index = True , set_all_heights_and_widths = 
False ,

row_height = "1",

So far I've not been able to figure out why so I'll worry about this 
tomorrow.


Thanks,

Rich
If the code was copied from outside LyX and pasted in, maybe there are 
some stray nonprinting characters and/or one of the supposed end-of-line 
characters is borked. The simplest way to test this would be to 
backspace over the offending commas and surrounding spaces and then type 
them back in.


Paul

PS: For future reference, a simple alternative to mucking around with 
package defaults is to create an empty listing inset, fiddle with 
options in the settings dialog, then just copy the empty inset and paste 
the copy in wherever you need to enter code.

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


Re: Formatting Python code

2022-05-27 Thread Paul A. Rubin

On 5/27/22 17:39, Rich Shepard wrote:

On Fri, 27 May 2022, Rich Shepard wrote:


\lset{language=Python, Tabulator size=4}


Paul,

A more recent thread on program listings

shows the command as \lstset{} but this also fails to set the default and
throws an error when I try to compile the document.

Puzzled,

Rich
AFAIK, \lstset{} is the correct command. In order to use it in the 
preamble, you have to precede it with


\usepackage{listings}. LyX automatically inserts the use package command 
after the preamble, which means the \lstset command is undefined if you 
don't manually load the package first. (LyX will still insert another 
\usepackage after the preamble, which seems to be harmless.)


The correct syntax for setting the tabulator size is tabsize=4. 
"Tabulator size=4" will cause an error.


Setting package defaults in the preamble will not register in the LyX 
settings dialog, but they will work. So the dialog will continue to say 
"no language" and tab size 4 (or whatever the dialog defaults are), but 
your preamble settings will work in the compiled document.


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


Re: Formatting Python code

2022-05-27 Thread Paul A. Rubin

On 5/27/22 15:01, Rich Shepard wrote:

I'm trying to format Python code in a document, but cannot properly set
indentation and long lines without them breaking. The document class 
is KOMA

Article.

I've set the code environment to LyX-Code.

Reading the User Guide, I don't find a section on LyX-Code; Section 
6.10 is

TeX Code and the LaTeX Syntax. That's not what I want.

What have I missed?

Rich
Rather than LyX-Code, start with Insert > Program Listing to insert a 
listings widget. Right click the widget, click Settings ..., and on the 
main settings tab use the Language drop-down to select Python. Tweak 
other settings at will.


Paul

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


Re: Curious compile error, easily fixed

2022-05-23 Thread Paul A. Rubin

On 5/23/22 13:54, Rich Shepard wrote:

On Fri, 20 May 2022, Paul A. Rubin wrote:


After the initial compilation attempt, you can open the generated .tex
file (lurking in the buffer directory) in a text editor and search 
for any

mention of verbatim. It could be that some module or funky document
element is using it. If there's more than one occurrence, the 
location of

the error in the document log window might help narrow down which one
triggered the error.


Paul,

I wonder if the SARS-COV-2 virus infected this document. Here's the 
preamble

as shown in Documents -> Settings -> Preamble:
\date{}
\usepackage{mathpazo}
\usepackage{graphicx,relsize}
\usepackage{scrlayer-scrpage}
\usepackage{colortbl}
\definecolor{lightgray}{gray}{0.8}
\pagestyle{scrheadings}
\lehead{Biological Evaluation}
\rohead{Biological Evaluation}
\refoot{Applied Ecosystem Services, LLC}
\lofoot{Applied Ecosystem Services, LLC}
\automark*{section}

And this is the preamble in /tmp/lyx_tmpdir.oskNDlV31096/lyx_tmpbuf1:
\batchmode
\makeatletter
\def\input@path{{/home/rshepard/projects/.../.../reports/}}
\makeatother
\documentclass[twoside,headsepline=on, footsepline=on]{scrreprt}
\PassOptionsToPackage{natbib=true}{biblatex}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[letterpaper]{geometry}
\geometry{verbose,tmargin=4cm,bmargin=2cm,lmargin=2cm,headsep=1.5cm}
\pagestyle{plain}
\setlength{\parskip}{\medskipamount}
\setlength{\parindent}{0pt}
\usepackage{verbatim}
\usepackage{graphicx}

\makeatletter

I do not see any reference to the verbatim package in any settings dialog
box.

How do I remove an invisible package?

Regards,

Rich
From some long forgotten sci-fi movie, I think you fill the document 
with a fine powder, shake, and hope it sticks to the invisible package (?).


I created an empty document with the contents of your preamble and 
didn't get any references to verbatim. Does your document contain code 
listings or other funky elements that might automagically trigger a load 
of the verbatim package? You may need to apply bisection to find out the 
culprit.


Paul

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


Re: Curious compile error, easily fixed

2022-05-20 Thread Paul A. Rubin

On 5/20/22 18:32, Rich Shepard wrote:

Attempting to compile a document using pdflatex halts with an error
referencing a verbatim@ environment. Since I've not explicitly used that
environment, and a search of the .lyx file doesn't find that word 
present, I
wonder why it suddenly decided to show up each time I use the chord, 
C-x h.


Regardless, when I close the error window and repeat C-x h pdflatex 
happily

compiles the file.

Has anyone a thought about why the error would appear if the environment
'verbatim' can't be found in the .lyx file?

Rich


After the initial compilation attempt, you can open the generated .tex 
file (lurking in the buffer directory) in a text editor and search for 
any mention of verbatim. It could be that some module or funky document 
element is using it. If there's more than one occurrence, the location 
of the error in the document log window might help narrow down which one 
triggered the error.


Paul

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


Re: Change lyx use of tex system

2022-05-19 Thread Paul A. Rubin

On 5/17/22 08:38, tush via lyx-users wrote:

I got two tex installations on my computer running Windows.
One is TeX live 2021, the other is miktex.
Is there any way to tell lyx which one to use?
Or is it rather determined by the computer via the control panel PATH 
(in the Environmental Variables menu)?


I haven't seen any menu in LyX that lets the user to choose such a 
thing, so I tend to think that you can only make such decisions from 
the system's control panel. But I would like to be sure about it.


I'm not sure this will work, so consider it an experiment. Not knowing 
what you preferred method is for generating output, I'll focus on pdflatex.


I recommend starting LyX from a command prompt with the option "-dbg 
latex" so that you can see which TeX distribution is being used. In 
Tools > Preferences... > File Handling > Converters, select "LaTeX 
(pdflatex) -> PDF (pdflatex)" in the Converter Definitions box and 
change the entry in "Converter" to include the path to the pdflatex 
executable in whichever TeX distro you want to use. You might want to 
select "Apply to current session only" for testing (and then go back, 
remove that check box and save the change again if it works). Test by 
compiling a document.


If this works, you can make comparable changes to other converters 
("LaTeX (plain) -> DVI", etc.). If you want to have the option to choose 
between TeX distros at will, I think you will need to create new file 
formats and converters, so that for instance viewing/exporting your 
document as "PDF (pdflatex)" uses MiKTeX whereas viewing/exporting as 
"PDF (pdflatex) 2" uses TeXLive.
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Problem with lyx after updating OS

2022-05-16 Thread Paul A. Rubin

On 5/16/22 14:16, Joseph Hesse wrote:

On 5/14/22 10:47, Paul A. Rubin wrote:

On 5/13/22 08:38, Joseph Hesse wrote:

Hi,

I upgraded my OS from Fedora 35 to Fedora 36.  I had no problem with 
lyx when I was using Fedora 35.  I installed lyx from my Fedora 36 
repository which is lyx 2.3.6.1.


When I start lyx I can open one of the chapters from my book and an 
attempt to open another chapter causes lyx to freeze. I have to kill 
the lyx process to quit lyx.


I did not back up the .lyx folder.

Is there a way to fix this?

This leads me to another related question.  If I write a book with a 
master and child document and want to give it to someone, what else 
besides the documents do I have to give them?


Thank you,
Joe Hesse


If you open one chapter and then attempt to open an unrelated 
document (for instance, a help file), does it still freeze?


Paul


Paul,

Thank you for your reply.

The next time I opened lyx it froze before I could do anything. Only 
thing I could do was kill the process.


I used dnf to remove lyx and reinstalled it.  This time when I opened 
lyx and before doing anything,  i got a message at the top saying 
"Portal, Select document to open is ready", The message then 
disappeared and lyx froze.  I had to kill the process.


In case there is something wrong with my Fedora installation I could 
reinstall the OS but that is not the solution of my choice.


Any help would be much appreciated.

Joe



Joe,

I don't recognize the "Portal ..." message. Is the document being opened 
on your local drive, or is it sourced from some remote site?


Rather than removing LyX again (or, worse, reinstalling Fedora), you 
might try deleting the LyX configuration info and any local files. I'm 
not familiar with Fedora, but on Ubuntu and Mint I would delete ~/.lyx 
(and everything under it) and ~/.config/LyX. I'd also make sure that 
method I was using to start LyX did not involve a shortcut with any 
special settings (naming a file to open, or a working directory, or 
anything). Starting it from a terminal would be safest. If that still 
leads to a "Portal" message and/or a freeze, wiser minds will need to 
consult. If LyX opens and tells you to run the configuration script and 
restart, hopefully you'll be in business.


Paul


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


Re: Problem with lyx after updating OS

2022-05-14 Thread Paul A. Rubin

On 5/13/22 08:38, Joseph Hesse wrote:

Hi,

I upgraded my OS from Fedora 35 to Fedora 36.  I had no problem with 
lyx when I was using Fedora 35.  I installed lyx from my Fedora 36 
repository which is lyx 2.3.6.1.


When I start lyx I can open one of the chapters from my book and an 
attempt to open another chapter causes lyx to freeze.  I have to kill 
the lyx process to quit lyx.


I did not back up the .lyx folder.

Is there a way to fix this?

This leads me to another related question.  If I write a book with a 
master and child document and want to give it to someone, what else 
besides the documents do I have to give them?


Thank you,
Joe Hesse


If you open one chapter and then attempt to open an unrelated document 
(for instance, a help file), does it still freeze?


Paul

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


Re: Top toolbar missing after switching from debian 10 to debian 11 (bullseye)

2022-05-12 Thread Paul A. Rubin

On 5/12/22 19:15, John White wrote:


Thank you Paul,


alt-T opens the Tools menu just fine, so I will likely try it without 
a fixed Top Toolbar for a while as that might give me more typing 
space. So you answered my lyx question.  Thanks much.



For what its worth, I note that my default.ui is all by itself in 
root>user>share>lyx>ui.



default.ui is also in my /usr/share/lyx/ui/default.ui), along with 
stdtoolbars.inc, stdmenus.inc and stdcontext.inc, but lyx no longer 
points there for some reason.



Not sure why my lyx is accessing root>user>share>lyx>ui but am happy 
that I can now access the tools.



John



Could you have installed LyX as root rather than as you?

I suspect the reason your menus are AWOL is that the .ui file being used 
is trying to load stdmenus.inc from the root > ... directory and not 
finding it. If true, that means you will also presumably be lacking the 
toolbars.


If you change the UI selection to /usr/share/lyx/ui/default.ui, save and 
restart LyX, does it start with the menu visible?


Paul

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


Re: Top toolbar missing after switching from debian 10 to debian 11 (bullseye)

2022-05-12 Thread Paul A. Rubin

On 5/12/22 12:56, John White wrote:


The main lyx tool bar is gone, the one with


File, Edit, View, Insert, Navigate, Document, Tools, Help.


Any thoughts on how I might get it back?


Thanks,


John



Does alt+T open the Tools menu even though it is not visible?

If so, go to Preferences ... > Look & Feel > User Interface and see what 
is set for "User interface file". If it is not "default", try choosing 
the default UI file (probably located at /usr/share/lyx/ui/default.ui).


If it is set to the default, and assuming the default is at the above 
address, make sure that there is a file named stdmenus.inc in the same 
folder. If yes, open that file in a text editor and make sure it has a 
section named Menubar listing the menus you are missing.


If you can't get to the Tools menu, check your local UI folder 
(~/.lyx/ui) and see if there is a .ui file in it. If so, rename that to 
something else (.bak?), restart LyX, and see if that helps.


Shooting in the dark,
Paul-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: What Am I Doing Wrong … bibliography entries not being included

2022-04-19 Thread Paul A. Rubin

On 4/19/22 08:29, Trevor Jenkins wrote:

Okay here’s the simplest case

Regards, Trevor.

<>< Re: deemed!


Mistakenly sent this to Trevor only, belatedly adding it to the thread 
on the list.


Go to Document > Settings... > Document Class and look at the custom 
class options field. It ends with ",nobib". If I delete that, the 
problem is fixed.


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


Re: [Important] New behavior for spam handling on this list

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

On 4/6/22 10:42, Wolfgang Engelmann via lyx-users wrote:



Am 06.04.22 um 16:01 schrieb Jean-Marc Lasgouttes via lyx-users:


Dear all,

Until now, the handling of the list was like: messages from 
subscribers go through, other messages get discarded.


There is actually a way to filter e-mails marked as spam, and I have 
already changed all our other lists to take advantage of this 
information.


Today it is lyx-users' turn. The new behavior is:
* spams are automatically discarded; please notify the list if a 
message of yours just disappears. It seems to work correctly on the 
other lists that we have;

* members posts not qualified as spam go through as usual;
* remaining non-member posts are held for moderation.

The big advantage is that now non-subscribers will be able to post 
messages (with a low amount of manual moderation from my side).


Comments welcome.

JMarc


I have not gotten yet an answer to my mail March 31 2022; perhaps it 
went into the spam?


I posted this already under
tmp/lyx not a readable file
(01March22)

The error message:

/tmp/lyx_tmpdir.MQUsZMBvAPQl/Buffer_convertLyXFormatwrdYvM.lyx is not 
a readable LyX document.


since quite a number of my older (March 22) lyx files are affected and 
I can't open them, I would very much appreciate if somebody could have 
a look at it.


I found 2 lyx files close to each other, one of which gives the error 
message above, the other one is alright. I could send both privately 
(because of the size and the content) to somebody for checking them.


I use lyx 2.4.dev under Debian.

Wolfgang
The original message posted successfully to the list. (I for one did not 
respond because I don't have the 2.4dev version.)


Paul

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


Re: Request for feedback: open/close all insets of a branch ?

2022-04-02 Thread Paul A. Rubin via lyx-users

On 4/2/22 10:37, Scott Kostyshak via lyx-users wrote:

Dear all LyX branch users,

Have you ever wished there were a way to open (or close) all insets of a
certain branch? We have a pending patch on lyx-devel that would add an
option to the context-menu when you right-click on the inset of a
branch. E.g., we could add two entries "Open All" and "Close All".

Would you use this feature? Could you describe a particular use case
i.e., some context and a reason why you want to open all branch insets
of a specific branch in that context?

Scott

Can't say I've ever felt the urge to do that ... but then I rarely close 
insets, and don't use branches very often. So no, I don't see myself 
using that feature.


Paul

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


Re: About the effect General text class parameters

2022-03-31 Thread Paul A. Rubin via lyx-users

On 3/31/22 12:15, tush via lyx-users wrote:
I just selected for my document the |IEEE Transactions| layout 
(IEEEtran.layout).

In this file one can find the following content:
Sides 1
SecNumDepth 3
TocDepth 3

I expected to see a change for the corresponding parameters in the 
Document Settings dialog, but nothing changes:


The table of contents depth and section depth keeps to be just the 
same as used by my settings for Document Defaults (chapters and onward 
is not included).
I also don't see the removal of "twoside" option for the document 
class: It keeps to be

\documentclass[twoside]{article}

Should the statements of this kind (Sides, SecNumDepth, TocDepth) lock 
the corresponding buttons and menus in the document settings?
If nothing changes or activates when I declare those styles, then what 
is the point of them? Or perhaps I am missing anything here?


If you selected "IEEE Transactions" from the document class list, the 
first line of your LaTeX output should be


\documentclass[english]{IEEEtran} (give or take the "english" option). 
How exactly did you select the IEEEtran layout?


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


Re: conflict beamer, eulervm (with mnwe)

2022-03-31 Thread Paul A. Rubin via lyx-users

On 3/31/22 12:09, Neal Becker via lyx-users wrote:

Strange conflict.  Using beamer, if
\usepackage{eulervm} is added, then when
\hat{a} used something happened that causes:

! Undefined control sequence.

 \hat

l.39 \end{frame}

without \hat{} there is no error, and without \usepackage{eulervm} 
there is no error.


Any thoughts?

Thanks,

Neal




Try changing the line that loads eulervm to 
\usepackage[euler-hat-accent]{eulervm}.


Paul

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


Re: beamer reference to a page number?

2022-03-30 Thread Paul A. Rubin via lyx-users

On 3/30/22 15:04, Neal Becker wrote:
Hmm, a bit more complicated than I thought.  I really want the cross 
reference to the slide number, which is indicated in the footer.
When I put \section, I get an un-numbered slide so page numbers and 
slide numbers are not the same.
Weirdly, I put in 3 labels and 3 cross references to them. They all 
look the same format (even in the LaTeX code).  For some reason I 
can't see, 2 of them did give me a cross reference corresponding to 
the slide number, as I want, but the 3rd gave me what seems to be the 
page number (which is 4 greater than the slide number) because I have 
4 \sections before this.


On Wed, Mar 30, 2022 at 2:21 PM Paul A. Rubin via lyx-users 
 wrote:


On 3/30/22 13:56, Neal Becker via lyx-users wrote:
> Can I make a reference to a page number in a beamer document?  How?
>
>
When you say "beamer document", do you mean a Beamer slide show or a
Beamer article class document?

For a slide show, you can put the cursor in either the title or
body of
the frame to be referenced and use Insert > Label... to insert a
label.
Then, where the page number should appear, use Insert >
Cross-Reference..., pick the label of the target frame, and set the
"Reference Format:" box to one of the three options that contains
"".




-- 
lyx-users mailing list

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



--
/Those who don't understand recursion are doomed to repeat it/
It might help if you provided an MWE (just enough to show an incorrect 
slide number.
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: beamer reference to a page number?

2022-03-30 Thread Paul A. Rubin via lyx-users

On 3/30/22 13:56, Neal Becker via lyx-users wrote:

Can I make a reference to a page number in a beamer document?  How?


When you say "beamer document", do you mean a Beamer slide show or a 
Beamer article class document?


For a slide show, you can put the cursor in either the title or body of 
the frame to be referenced and use Insert > Label... to insert a label. 
Then, where the page number should appear, use Insert > 
Cross-Reference..., pick the label of the target frame, and set the 
"Reference Format:" box to one of the three options that contains "".





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


Re: Box for two lines of text

2022-03-29 Thread Paul A. Rubin via lyx-users

On 3/29/22 11:10, Néstor via lyx-users wrote:

I need a frame to insert two lines of text. I have tried a normal Box,
but it only works with one line of text. I need to put a line around
the two lines, like a frame. Thank you!

A minipage (the default when you insert a box) should work. If it 
doesn't, please post a minimal (non)working example along with what 
specifically is wrong with it.


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


Re: Issue with ModernCV class

2022-03-24 Thread Paul A. Rubin via lyx-users

On 3/24/22 19:21, Rich Shepard via lyx-users wrote:
In my resume using the Modern CV class the preamble has no fancyhdr 
package

specified, yet there's still an error; the displayed message box shows,
'option class for package inputenc'. And it seems to find the fancyhdr
package although it's not called for in the preamble.

A MWE is attached.

TIA,

Rich


Rich,

Compiling your MWE, I did not run into the error message you mentioned. 
I did get an "Undefined control sequence" error for the line 
"\pagestyle{headings}", which I believe is caused by the fact that the 
Modern CV class, unlike say the standard article class, does not define 
a heading style. In Documents > Settings > Page Layout, I changed the 
"Page style:" selection from "headings" to "Default", after which the 
MWE compiled. (Whether it looks right is left to the reader as an exercise.)


Paul

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


Re: tmp dir full??

2022-03-22 Thread Paul A. Rubin via lyx-users

On 3/22/22 11:08, Wolfgang Engelmann via lyx-users wrote:

I get this message
LyX could not create the temporary directory 
'/tmp/lyx_tmpdir.DATBScmuopZF/lyx_tmpbuf5' (Disk is full maybe?)


However

wolfgang@Fuji:/tmp$ df
Dateisystem    1K-Blöcke   Benutzt Verfügbar Verw% Eingehängt auf
udev 1909644 0   1909644    0% /dev
tmpfs 386516  1420    385096    1% /run
/dev/sda2  225214052 131821964  81882176   62% /
tmpfs    1932564 0   1932564    0% /dev/shm
tmpfs   5120 4  5116    1% /run/lock
/dev/sda1 523248 12236    511012    3% /boot/efi
tmpfs 386512   164    386348    1% /run/user/1000

what to do?
Wolfgang
If you close LyX and restart it, does the repeat? If it repeats, is the 
temporary directory name different?


Also, does this happen with one document open, or only with multiple 
documents open?


Paul

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


Re: Setting up LyX on a new computer

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

On 3/16/22 16:27, Hal Kierstead via lyx-users wrote:

All -

I have many preference settings that I would like to transfer to a new MacBook 
Pro. What is the approved way to do this? Can I just copy the preference file 
and bind file in Application Support/LyX-2.3 from one computer to the other or 
what? Maybe I could copy the whole LyX-2.3 folder? Along the same lines, what 
is the best way to keep my LyX setup consistent across several computers. I use 
dropbox to sync files.

Thanks,

Hal
I would not copy the entire folder. After you have installed LyX on the 
new machine and verified it is running, you can copy the preferences 
file and the user.bind file in the bind subfolder. Also, you should 
check the templates and layouts subfolders under Application 
Support/LyX-2.3 and copy any custom templates, layouts and/or modules 
you might have. As always, if something with the same name already 
exists on the new machine it would safest to change the name of the file 
on the new machine before copying over the files from the old machine, 
just in case you need to undo things.


I think putting the user directory on Dropbox and syncing to all 
machines should be fine, so long as all machines will be running the 
same LyX version ... but I've never tried it myself.


Paul

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


Re: Continuation of lists across beamer frames

2022-03-15 Thread Paul A. Rubin via lyx-users

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



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

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

Cheers,
Mark

Decision making is about predicting counterfactuals


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


using package enumitem, defining an own list

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

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

has a continuing counter.

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


Also, to correct myself, it was Günter Milde that wrote the enumitem module.

Paul

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


Re: Continuation of lists across beamer frames

2022-03-15 Thread Paul A. Rubin via lyx-users

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

Cheers,
Mark

Decision making is about predicting counterfactuals


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


Paul

PS: Please bottom-post to make threads more readable.

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


Re: Continuation of lists across beamer frames

2022-03-15 Thread Paul A. Rubin via lyx-users

On 3/15/22 10:22, markhsalmon via lyx-users wrote:

Hi,
 I have tried everything I know without success and asked tis question 
on other fora without a result- simple question how do I continue an 
existing say numbered list onto a new Beamer frame/slide please? Thanks


Decision making is about predicting counterfactuals


There may be a more elegant way, but the attached MWE shows a clunky way 
to continue a numbered list across a frame boundary. It requires 
creating a new counter (in the document preamble) and using ERT to (a) 
copy the last item count from the first slide into the new counter, (b) 
copy it back into the item counter after the first item of the second 
slide and (c) increment it to account for the first item of the second 
slide. It also requires that you set the item number for the first item 
of the second slide manually. So, as I said, it is clunky.

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


Re: beamer frame (again)

2022-03-15 Thread Paul A. Rubin via lyx-users

On 3/15/22 10:03, Neal Becker via lyx-users wrote:
I'm trying to get used to the lyx way to insert beamer frames.  
Compared to the inset method I've been using I find it a bit 
inefficient, but maybe I need to learn some keyboard shortcuts to help 
with that.


One thing I'm having trouble with is inserting a beamer frame into a 
sequence of existing frames.  I have frame 1, a frame separator, and 
then frame 2.  If I try to put the cursor at the end of the separator, 
and then switch to "frame" from pulldown, this will not insert a 
frame, but seems to modify frame 2 (the cursor is placed in the title 
of frame 2).


The only way I could get a frame inserted is to first in "standard" 
mode type some random characters, and then I could switch to "frame" 
to get a new frame inserted.  What am I missing?


Thanks,
Neal

There are multiple ways to insert a frame. One is to put the cursor at 
the end of the contents of frame 1 (/not/ the separator line) and click 
Insert > Separated Frame Below. With my setup, the keyboard shortcut is 
Alt+P Return, but your mileage may vary. You can also start from frame 2 
and use Insert > Separated Frame Above.


A while back, I added a keyboard shortcut (Ctrl+Alt+Return) mapped to 
the command "call newframe". That also works like a charm.


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


Re: LyX & Windows 11?

2022-03-03 Thread Paul A. Rubin via lyx-users

On 3/3/22 11:15, Bernt Lie via lyx-users wrote:


I'm still on LyX 2.3.5-1 (have kind of been waiting for LyX 2.4...).

A few months ago, I upgraded to Windows 11. Since then, the math 
preview doesn't work properly:


  * If I set "Instant preview" to *on*,

math looks horrible:

  * If I change Instant preview to Off, this is what I see:

Is this problem due to my old version of LyX? Will it work better in a 
newer version of LyX 2.3.5.x?



If you view the document as a PDF, does the math look correct? I believe 
that instant preview uses the fonts used in the compiled document. If 
the compiled document looks wrong, you either need to install missing 
fonts or to correct the font settings for the document.


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


Re: multirow table elements

2022-02-28 Thread Paul A. Rubin via lyx-users

On 2/28/22 08:31, Neal Becker via lyx-users wrote:
I wanted to make some of the column headings multirow, because 
otherwise they would use too much horizontal space.


I see that I can select the cell, then settings/column settings, set a 
width will then autowrap the cell text, and I can use ctrl-enter to 
put the linebreak where I want.


There is also in settings/row a multirow check box.  What does this do?

Thanks,
Neal

Select two or more consecutive cells in a column, click that box, and 
they are merged into a single cell.


Paul

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


Re: How to pass marginparwidth to includegraphics

2022-02-24 Thread Paul A. Rubin via lyx-users

On 2/24/22 16:18, tush via lyx-users wrote:
I have some figures which I want to include in the marginal part of 
the document.

The graphics to be included should be of width |\marginparwidth|​.
How can I pass this width to the include graphics tool 
(Insert->Graphics) within the editor?


In plain LaTeX I would have typed

\begin{marginfigure}
  \includegraphics[width=\marginparwidth]{file.png}
\end{marginfigure}

(I created a customized marginfigure inset with a module file)

So after inserting the graphics file, I don't see any way to specify 
the above width.


The only options I have are those in the attached picture, non of 
which is marginparwidth.


Click the "LaTeX and LyX options" tab and enter "width=\marginparwidth" 
in the "LaTeX options" box.


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


Re: LyX for Mac

2022-02-18 Thread Paul A. Rubin via lyx-users

On 2/18/22 14:46, Tom Goldring via lyx-users wrote:
I have version 2.3.6.2 on my MacBook Pro. I consider it a poor 
substitute for the Windows version. I can't turn off the blinking 
cursor (extremely annoying!), I can't change the background color 
(white background gives me a headache), hotkeys don't work, etc. Is 
there an alternative binary that I could download?


Thanks,
Tom

LyX 2.3.6.2 uses Qt for the user interface. (I'm not sure which Qt 
version, but I have LyX 2.3.6.1 on Linux Mint, and my copy uses Qt 
5.12.8.) On Linux there's a Qt configuration utility that lets you 
change settings globally for all apps using the Qt library. I don't see 
an on/off switch for cursor blink, but there is a setting for "Cursor 
flash time", and setting that to 0 ms. seems to make the cursor not 
blink. This would affect all Qt-based apps on your system, but it sounds 
as if you would not object to losing cursor blink in other apps.


The key question is, is there a Qt configuration app for MacOS?

Paul

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


Re: question about "itemize"

2022-02-05 Thread Paul A. Rubin via lyx-users

On 2/5/22 15:57, Daniel via lyx-users wrote:

On 2022-02-05 16:23, Daniel via lyx-users wrote:

On 2022-02-05 16:21, Daniel via lyx-users wrote:

On 2022-02-05 07:25, Tom Goldring via lyx-users wrote:

Suppose I have an itemized list like

    paragraph 1

   - paragraph 2

    paragraph 3

where paragraph 2 is nested. If I enter this by choosing the 
"itemize" environment, then typing


paragraph 1   paragraph 2   
paragraph 3


LyX creates paragraph 3 as a new item. Is there a way to have 
paragraph 3 not be a new item? For example, if I enter paragraph 3 
in the "Quote" environment, it will look like I want it to on the 
left (i.e. it will have the same indentation as paragraph 1 without 
the large dot that indicates a new item) but if it's a long 
paragraph it will also be indented on the right, which I don't 
want. In other words, I would like it to have the same indentation 
(both right and left) as if paragraph 3 were a new item, but 
without the dot preceding paragraph 3. Hope this makes sense.


Try setting paragraph 3 with the Standard layout and indent it. Hope 
I understood what you meant.


By "indent it", I meant "increase the depth" (by pressing the tab 
key, for example).


Paul's answer makes me think that my answer wasn't fully clear. So, 
I'll attach an example document. Looks reasonable in LyX' work area too.


Daniel

I grafted my answer onto Daniel's example (as paragraphs 4 through 6), 
and the PDF output shows no differences that I can see between the two 
approaches.


Paul

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


Re: question about "itemize"

2022-02-05 Thread Paul A. Rubin via lyx-users

On 2/5/22 01:25, Tom Goldring via lyx-users wrote:

Suppose I have an itemized list like

   paragraph 1

  - paragraph 2

   paragraph 3

where paragraph 2 is nested. If I enter this by choosing the "itemize" 
environment, then typing


paragraph 1   paragraph 2   paragraph 3

LyX creates paragraph 3 as a new item. Is there a way to have 
paragraph 3 not be a new item? For example, if I enter paragraph 3 in 
the "Quote" environment, it will look like I want it to on the left 
(i.e. it will have the same indentation as paragraph 1 without the 
large dot that indicates a new item) but if it's a long paragraph it 
will also be indented on the right, which I don't want. In other 
words, I would like it to have the same indentation (both right and 
left) as if paragraph 3 were a new item, but without the dot preceding 
paragraph 3. Hope this makes sense.
After doing everything as above, with the cursor in paragraph 3, use 
Insert > Custom Item to open a custom item inset. Leave the inset empty. 
I would put it at the start of the paragraph (just after the bullet 
inserted by LyX) for neatness, but I don't think it actually matters 
where in the paragraph you put it. The undesired bullet will still 
appear in the LyX GUI, but when you view the document it should be gone.


Paul

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


Re: superscipt in large fonts

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

On 1/20/22 7:51 AM, Csikos Bela via lyx-users wrote:

Hello:

This occurs in lyx 2.3.6.1.

When I add superscript to non-default sized fonts, for example to "larger" 
fonts, the
superscript text is not scaled correctly, its size is the same as the size of 
the larger font.

How can I add correctly scaled superscript text to non default font sizes?

Thanks,

bcsikos





Method 1: After adding the superscript, select it and change its size to 
default.


Method 2: Put a space after the large text, enter the superscript 
(should be normal size), then delete the space.


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


  1   2   3   4   5   6   7   8   9   10   >