Re: advices for layout modification

2022-08-21 Thread Steve Litt
On Sun, 2022-08-21 at 18:39 +0800, pierig wrote:
> Thanks Steve, I have a lot to read I have started by 
> http://troubleshooters.com/linux/lyx/self_publish_lyx.htm just to get 
> along with your tutorials and the way you wrote them.
> 
> As I am not always focused, I have tried to add that in my layout file:
> 
> Style Dialogue
>    LatexType Environment
>    LatexName dialog_l
>    ParSep    0.5
> 
>    Font
>  Shape   Bold
>    EndFont
>    Preamble
>  \newenvironment{dialog_l}
>  {
>  \begin{list}{}
>  \item[---]
>  }
>  {
>  \par
>  \end{list}
>  }
>    EndPreamble
> End
> 
> But that doesn't work at all. It leads to what I was afraid of. The 
> first line of my dialog has the — sign, but not the others...
> 

Hi Pierig,

If you're saying you want every line of the first paragraph of a dialog between 
two
people to start with a hyphen or dash, I don't think that's possible in LaTeX 
or CSS
or pretty much anything.

So, are you really looking for the following?:

 - Steve said, "My skateboard went down a sewer, so I fished it out with a rope 
 - and coathanger. It took an hour, but it was better than climbing into the
 - sewer, because there was a dead, rotting aligator down there and about a
 - thousand rats feasting on it."

 "Pretty gross, replied Pierig. When my skateboard fell down the sewer, I just 
took 
 off the sewer cap and retrieved it. It only took me ten minutes. But there was
 no wildlife in the sewer."

 With a far off look in his eye, Steve said, "I remember the good old days when 
   
sewers didn't have rotting carcasses in them. Those were the days, when you 
could
get your skateboard just by climbing in!"

Is the preceding what you meant, because if it is, I can't think of one piece of
software that will do the preceding for you. If the preceding is *not* what you
meant, please give us a sample so we're all on the same page. By the way, my 
mail
client gives me very little control over indentation, so please ignore the
indentation and concentrate on where the dash/hyphens go.

Thanks,

SteveT

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


Re: biblatex: excluding shorthand entries from the main bibliography in LyX ?

2022-08-21 Thread Mathias Girel
Edit : I was wrong introducing things in the preamble
Inserting in Tex code, at the end of the doc, just before the "commented
off" biblatex box the following lines did the trick
---
\printshorthands
\defbibcheck{noshorthand}{\iffieldundef{shorthand}{}{\skipentry}}
\printbibliography[check=noshorthand]
---
I then have my list of shorthands, and the biblio minus the titles with
shorthands.
There might be some "cleaner" ways to do it, I'll appreciate any
suggestions!
Best regards
Mathias


On Sun, Aug 21, 2022 at 8:57 PM Mathias Girel 
wrote:

> Dear LyX users
> For a monograph, I have a long list of shorthands and wish to remove these
> references from the main bibliography.
>
> I have seen the following link, but it generates errors if I paste the
> beginning of the code in the preamble, and the rest in ERT at the end of
> the doc (including, but not limited to "! LaTeX Error: Missing
> \begin{document}.")
>
>
> https://tex.stackexchange.com/questions/44372/biblatex-excluding-shorthand-entries-from-the-main-bibliography
>
> Is there a simple way to remove the references with shorthands from the
> main biblio in LyX?
> If so, what would be your advice ?
> I’m on OS X BigSur, LyX 2.3.6.2, Texlive 2022. The class is Memoir, I'm
> using variants of verbose for Biblatex.
> The whole doc compiles very well with just the \printshorthands in ERT
> before the Biblatex box, but I wished to remove the duplicates.
>
> With many thanks!
> Mathias
>
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


biblatex: excluding shorthand entries from the main bibliography in LyX ?

2022-08-21 Thread Mathias Girel
Dear LyX users
For a monograph, I have a long list of shorthands and wish to remove these
references from the main bibliography.

I have seen the following link, but it generates errors if I paste the
beginning of the code in the preamble, and the rest in ERT at the end of
the doc (including, but not limited to "! LaTeX Error: Missing
\begin{document}.")

https://tex.stackexchange.com/questions/44372/biblatex-excluding-shorthand-entries-from-the-main-bibliography

Is there a simple way to remove the references with shorthands from the
main biblio in LyX?
If so, what would be your advice ?
I’m on OS X BigSur, LyX 2.3.6.2, Texlive 2022. The class is Memoir, I'm
using variants of verbose for Biblatex.
The whole doc compiles very well with just the \printshorthands in ERT
before the Biblatex box, but I wished to remove the duplicates.

With many thanks!
Mathias
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: lyx2lyx fails to convert

2022-08-21 Thread Tim Garrett

Excellent. Thanks Stephan and Paul.

/System/Volumes/Data/Applications/LyX.app/Contents/Resources/lyx2lyx/lyx2lyx 
-v Contrast\ paper.lyx  > Test.lyx


produced a document Test.lyx that could be read by LyX 2.3.6.2.

This converted document was fairly recent (2016) so fingers crossed it 
works too on older documents as well.


Tim

On 21 Aug 2022, at 4:31, Stephan Witt wrote:


Am 21.08.2022 um 10:33 schrieb Stephan Witt :


Hi Tim,

you have to change your command - lyx2lyx is a folder in Resources:


Sorry, this one sends the standard output to trash… this is useful 
in case of lyx2lyx is logging errors separately (I’m not sure it 
works that way).


$ 
/System/Volumes/Data/Applications/LyX.app/Contents/Resources/lyx2lyx/lyx2lyx 
-v Contrast\ paper.lyx > /dev/null


To verify the output in terminal you should use it w/o redirect to 
trash


$ 
/System/Volumes/Data/Applications/LyX.app/Contents/Resources/lyx2lyx/lyx2lyx 
-v Contrast\ paper.lyx


or

$ 
/System/Volumes/Data/Applications/LyX.app/Contents/Resources/lyx2lyx/lyx2lyx 
-v Contrast\ paper.lyx | less


to view the result page by page.

Another option is to use the message pane in LyX:

1. Start LyX
2. Activate Message Pane (menu item of the View menu)
3. Switch to the Settings tab
4. Choose „Selected“ at left and „info“ at right.
5. Open the file „Contrast paper.lyx“
6. Check the Output contents of the Message Pane

Stephan


…

In case it’s a python problem the following command and it’s 
output is of interest:


$ /usr/bin/env python --version
Python 3.8.13

Stephan


Am 21.08.2022 um 06:06 schrieb Tim Garrett :

Sorry, probably being dense here but this is what I get after 
finding the function


/System/Volumes/Data/Applications/LyX.app/Contents/Resources/lyx2lyx 
-v Contrast\ paper.lyx
zsh: permission denied: 
/System/Volumes/Data/Applications/LyX.app/Contents/Resources/lyx2lyx


Thanks for helping out here. Been a LyX user since 2001 when it was 
KLyX and this is the first time I’ve seen this.


Tim

On 20 Aug 2022, at 3:57, Stephan Witt wrote:

Am 18.08.2022 um 18:07 schrieb 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

Hi Tim,

do you have any progress with your issue?

Did you update Monterey recently? Do you have a working Python 
installation?




Re: advices for layout modification

2022-08-21 Thread pierig
Indeed, using the options of bullets in the document setting itself is a 
good idea. The simplest probably.



Thanks Udi


Pierig

On 21/08/2022 19:14, Udicoudco wrote:

> Thanks Steve, I have a lot to read I have started by
> http://troubleshooters.com/linux/lyx/self_publish_lyx.htm just to get
> along with your tutorials and the way you wrote them.
>
> As I am not always focused, I have tried to add that in my layout file:
>
> Style Dialogue
>    LatexType             Environment
>    LatexName             dialog_l
>    ParSep                0.5
>
>    Font
>      Shape               Bold
>    EndFont
>    Preamble
>          \newenvironment{dialog_l}
>                  {
>                  \begin{list}{}
>                  \item[---]
>                  }
>                  {
>                  \par
>                  \end{list}
>                  }
>    EndPreamble
> End
>
> But that doesn't work at all. It leads to what I was afraid of. The
> first line of my dialog has the — sign, but not the others...
>
>
> I definitely have much more reading to do, but if you have an obvious
> solution to my problem, I'll be happy with it. Still, starting to be
> late for me. I'll see that another day.
>
>
> Pierig
>
>
>
>
>
> On 21/08/2022 13:01, Steve Litt wrote:
> > On Sun, 2022-08-21 at 11:04 +0800, pierig wrote:
> >> Hello,
> >>
> >> I have been using Lyx for years, and I am very happy with it. I am
> >> writing novels, so my needs are pretty simple. (I would happily share
> >> the novels here, but they are in French [Sci Fi])
> >>
> >> In a novel, I have two main type of text. The main one, and 
dialogues. I

> >> was using "Quote" for the dialogues, convenient enough.
> > I think you're going to be quite pleased with making your own text 
types (LyX-speak
> > "environments") instead of hijacking environments meant for other 
purposes. You're
> > moving from two to three, but if your books are anything like 
mine, now that you can
> > make your own types, you'll want more of them. Just as a for 
instance, you have
> > dialog and thoughts, but what about narration? What about 
narration of stories and
> > back stories? When you can make your own environments, the world 
is your oyster.

> >
> >> But now I need a
> >> third one to show the thoughts of a character. Then I have decided to
> >> try to adapt the layout of "Book (standard class)"
> > I congratulate you on choosing Book class. It works with 
everything, and it's very
> > adaptable. 7 of my 9 books use Book class, and I'd never again use 
Koma or Memoir.

> >
> >> I have looked at some advice on the net and manage to add a 
/dialogue/
> >> and /pensée/ (thoughts). For /dialogue/ it should be an itemized 
style,

> >> (in French we add — for each change of speaker). Which means the code
> >> for first line of a dialogue, the last line of dialogue and other 
lines

> >> of dialogues are different
> >>
> >> *1st line*
> >>
> >>    \begin{itemize}
> >>        \item
> >>
> >>
> >> *other lines*
> >>        \item
> >>
> >>
> >> *last line*
> >>        \item
> >>
> >> \end{itemize}
> > I'm confused about the preceding. Are you intending to insert ERT 
code "/item"

> > between every speaker? Doing so would make for slow authoring.
> >
> >>
> >> Would you have any advice for where to look for this kind of
> >> modification which doesn't involve a single line? For a single 
line, I
> >> have done something very simple as a try, but I don't have any 
idea for

> >> this multiple line problem
> >>
> >>
> >> Example of single line:
> >>
> >> Style Pensée
> >>     LatexType             Environment
> >>     LatexName             pensee_l
> >>     ParSep                0.7
> >>
> >>     Font
> >>       Shape               Italic
> >>     EndFont
> >>     Preamble
> >>           \newenvironment{pensee_l}
> >>                   {
> >>                   \itshape
> >>                   }
> >>                   {
> >>                   \par
> >>                   }
> >>     EndPreamble
> >> End
> >>
> >>
> >>
> >> Thanks for your help.
> > I suggest you find the LaTeX source for the Book document class 
standard paragraph.
> > I don't remember where it is, but other people do. Modify as 
needed for each of your

> > desired environments.
> >
> > Having the first and last whatever different from the middle ones 
might require
> > three different paragraph styles. I think LyX has a "next style" 
property you can
> > put in the LyX part of the environment definition, so that pretty 
much makes

> > everything except the last whatever automatic.
> >
> > Here's a doc I wrote 13 years ago discussing making your own 
layout file:

> >
> > http://troubleshooters.com/linux/lyx/surefire_layout.htm
> >
> >
> > Also read http://www.troubleshooters.com/lpm/200210/200210.htm . 
It's almost 20
> > years old, but it has ways to modify existing LaTeX environments 
without rewriting
> > them from scratch. Combined with CopyStyle, this just might 
simplify your task.

> >
> > If you 

Re: advices for layout modification

2022-08-21 Thread Udicoudco
> Thanks Steve, I have a lot to read I have started by
> http://troubleshooters.com/linux/lyx/self_publish_lyx.htm just to get
> along with your tutorials and the way you wrote them.
>
> As I am not always focused, I have tried to add that in my layout file:
>
> Style Dialogue
>LatexType Environment
>LatexName dialog_l
>ParSep0.5
>
>Font
>  Shape   Bold
>EndFont
>Preamble
>  \newenvironment{dialog_l}
>  {
>  \begin{list}{}
>  \item[---]
>  }
>  {
>  \par
>  \end{list}
>  }
>EndPreamble
> End
>
> But that doesn't work at all. It leads to what I was afraid of. The
> first line of my dialog has the — sign, but not the others...
>
>
> I definitely have much more reading to do, but if you have an obvious
> solution to my problem, I'll be happy with it. Still, starting to be
> late for me. I'll see that another day.
>
>
> Pierig
>
>
>
>
>
> On 21/08/2022 13:01, Steve Litt wrote:
> > On Sun, 2022-08-21 at 11:04 +0800, pierig wrote:
> >> Hello,
> >>
> >> I have been using Lyx for years, and I am very happy with it. I am
> >> writing novels, so my needs are pretty simple. (I would happily share
> >> the novels here, but they are in French [Sci Fi])
> >>
> >> In a novel, I have two main type of text. The main one, and dialogues.
I
> >> was using "Quote" for the dialogues, convenient enough.
> > I think you're going to be quite pleased with making your own text
types (LyX-speak
> > "environments") instead of hijacking environments meant for other
purposes. You're
> > moving from two to three, but if your books are anything like mine, now
that you can
> > make your own types, you'll want more of them. Just as a for instance,
you have
> > dialog and thoughts, but what about narration? What about narration of
stories and
> > back stories? When you can make your own environments, the world is
your oyster.
> >
> >> But now I need a
> >> third one to show the thoughts of a character. Then I have decided to
> >> try to adapt the layout of "Book (standard class)"
> > I congratulate you on choosing Book class. It works with everything,
and it's very
> > adaptable. 7 of my 9 books use Book class, and I'd never again use Koma
or Memoir.
> >
> >> I have looked at some advice on the net and manage to add a /dialogue/
> >> and /pensée/ (thoughts). For /dialogue/ it should be an itemized style,
> >> (in French we add — for each change of speaker). Which means the code
> >> for first line of a dialogue, the last line of dialogue and other lines
> >> of dialogues are different
> >>
> >> *1st line*
> >>
> >>\begin{itemize}
> >>\item
> >>
> >>
> >> *other lines*
> >>\item
> >>
> >>
> >> *last line*
> >>\item
> >>
> >> \end{itemize}
> > I'm confused about the preceding. Are you intending to insert ERT code
"/item"
> > between every speaker? Doing so would make for slow authoring.
> >
> >>
> >> Would you have any advice for where to look for this kind of
> >> modification which doesn't involve a single line? For a single line, I
> >> have done something very simple as a try, but I don't have any idea for
> >> this multiple line problem
> >>
> >>
> >> Example of single line:
> >>
> >> Style Pensée
> >> LatexType Environment
> >> LatexName pensee_l
> >> ParSep0.7
> >>
> >> Font
> >>   Shape   Italic
> >> EndFont
> >> Preamble
> >>   \newenvironment{pensee_l}
> >>   {
> >>   \itshape
> >>   }
> >>   {
> >>   \par
> >>   }
> >> EndPreamble
> >> End
> >>
> >>
> >>
> >> Thanks for your help.
> > I suggest you find the LaTeX source for the Book document class
standard paragraph.
> > I don't remember where it is, but other people do. Modify as needed for
each of your
> > desired environments.
> >
> > Having the first and last whatever different from the middle ones might
require
> > three different paragraph styles. I think LyX has a "next style"
property you can
> > put in the LyX part of the environment definition, so that pretty much
makes
> > everything except the last whatever automatic.
> >
> > Here's a doc I wrote 13 years ago discussing making your own layout
file:
> >
> > http://troubleshooters.com/linux/lyx/surefire_layout.htm
> >
> >
> > Also read http://www.troubleshooters.com/lpm/200210/200210.htm . It's
almost 20
> > years old, but it has ways to modify existing LaTeX environments
without rewriting
> > them from scratch. Combined with CopyStyle, this just might simplify
your task.
> >
> > If you ever need to make your own list environments, see
> > http://troubleshooters.com/linux/lyx/ownlists.htm
> >
> > Actually, you might want to acquaint yourself with my whole LyX subsite,
> > 

Re: advices for layout modification

2022-08-21 Thread pierig
Thanks Steve, I have a lot to read I have started by 
http://troubleshooters.com/linux/lyx/self_publish_lyx.htm just to get 
along with your tutorials and the way you wrote them.


As I am not always focused, I have tried to add that in my layout file:

Style Dialogue
  LatexType Environment
  LatexName dialog_l
  ParSep    0.5

  Font
    Shape   Bold
  EndFont
  Preamble
    \newenvironment{dialog_l}
    {
    \begin{list}{}
    \item[---]
    }
    {
    \par
    \end{list}
    }
  EndPreamble
End

But that doesn't work at all. It leads to what I was afraid of. The 
first line of my dialog has the — sign, but not the others...



I definitely have much more reading to do, but if you have an obvious 
solution to my problem, I'll be happy with it. Still, starting to be 
late for me. I'll see that another day.



Pierig





On 21/08/2022 13:01, Steve Litt wrote:

On Sun, 2022-08-21 at 11:04 +0800, pierig wrote:

Hello,

I have been using Lyx for years, and I am very happy with it. I am
writing novels, so my needs are pretty simple. (I would happily share
the novels here, but they are in French [Sci Fi])

In a novel, I have two main type of text. The main one, and dialogues. I
was using "Quote" for the dialogues, convenient enough.

I think you're going to be quite pleased with making your own text types 
(LyX-speak
"environments") instead of hijacking environments meant for other purposes. 
You're
moving from two to three, but if your books are anything like mine, now that 
you can
make your own types, you'll want more of them. Just as a for instance, you have
dialog and thoughts, but what about narration? What about narration of stories 
and
back stories? When you can make your own environments, the world is your oyster.


But now I need a
third one to show the thoughts of a character. Then I have decided to
try to adapt the layout of "Book (standard class)"

I congratulate you on choosing Book class. It works with everything, and it's 
very
adaptable. 7 of my 9 books use Book class, and I'd never again use Koma or 
Memoir.


I have looked at some advice on the net and manage to add a /dialogue/
and /pensée/ (thoughts). For /dialogue/ it should be an itemized style,
(in French we add — for each change of speaker). Which means the code
for first line of a dialogue, the last line of dialogue and other lines
of dialogues are different

*1st line*

   \begin{itemize}
   \item


*other lines*
       \item


*last line*
   \item

\end{itemize}

I'm confused about the preceding. Are you intending to insert ERT code "/item"
between every speaker? Doing so would make for slow authoring.



Would you have any advice for where to look for this kind of
modification which doesn't involve a single line? For a single line, I
have done something very simple as a try, but I don't have any idea for
this multiple line problem


Example of single line:

Style Pensée
    LatexType Environment
    LatexName pensee_l
    ParSep    0.7

    Font
  Shape   Italic
    EndFont
    Preamble
  \newenvironment{pensee_l}
  {
  \itshape
  }
  {
  \par
  }
    EndPreamble
End



Thanks for your help.

I suggest you find the LaTeX source for the Book document class standard 
paragraph.
I don't remember where it is, but other people do. Modify as needed for each of 
your
desired environments.

Having the first and last whatever different from the middle ones might require
three different paragraph styles. I think LyX has a "next style" property you 
can
put in the LyX part of the environment definition, so that pretty much makes
everything except the last whatever automatic.

Here's a doc I wrote 13 years ago discussing making your own layout file:

http://troubleshooters.com/linux/lyx/surefire_layout.htm


Also read http://www.troubleshooters.com/lpm/200210/200210.htm . It's almost 20
years old, but it has ways to modify existing LaTeX environments without 
rewriting
them from scratch. Combined with CopyStyle, this just might simplify your task.

If you ever need to make your own list environments, see
http://troubleshooters.com/linux/lyx/ownlists.htm

Actually, you might want to acquaint yourself with my whole LyX subsite,
http://troubleshooters.com/linux/lyx/ , which links to quite a few LyX 
documents.

SteveT


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


Re: lyx2lyx fails to convert

2022-08-21 Thread Stephan Witt
Am 21.08.2022 um 10:33 schrieb Stephan Witt :
> 
> Hi Tim,
> 
> you have to change your command - lyx2lyx is a folder in Resources:

Sorry, this one sends the standard output to trash… this is useful in case of 
lyx2lyx is logging errors separately (I’m not sure it works that way).

> $ 
> /System/Volumes/Data/Applications/LyX.app/Contents/Resources/lyx2lyx/lyx2lyx 
> -v Contrast\ paper.lyx > /dev/null

To verify the output in terminal you should use it w/o redirect to trash

$ /System/Volumes/Data/Applications/LyX.app/Contents/Resources/lyx2lyx/lyx2lyx 
-v Contrast\ paper.lyx

or

$ /System/Volumes/Data/Applications/LyX.app/Contents/Resources/lyx2lyx/lyx2lyx 
-v Contrast\ paper.lyx | less

to view the result page by page.

Another option is to use the message pane in LyX:

1. Start LyX
2. Activate Message Pane (menu item of the View menu)
3. Switch to the Settings tab
4. Choose „Selected“ at left and „info“ at right.
5. Open the file „Contrast paper.lyx“
6. Check the Output contents of the Message Pane

Stephan

> …
> 
> In case it’s a python problem the following command and it’s output is of 
> interest:
> 
> $ /usr/bin/env python --version
> Python 3.8.13
> 
> Stephan
> 
>> Am 21.08.2022 um 06:06 schrieb Tim Garrett :
>> 
>> Sorry, probably being dense here but this is what I get after finding the 
>> function
>> 
>> /System/Volumes/Data/Applications/LyX.app/Contents/Resources/lyx2lyx -v 
>> Contrast\ paper.lyx
>> zsh: permission denied: 
>> /System/Volumes/Data/Applications/LyX.app/Contents/Resources/lyx2lyx
>> 
>> Thanks for helping out here. Been a LyX user since 2001 when it was KLyX and 
>> this is the first time I’ve seen this.
>> 
>> Tim
>> 
>> On 20 Aug 2022, at 3:57, Stephan Witt wrote:
>> 
>> Am 18.08.2022 um 18:07 schrieb 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
>> 
>> Hi Tim,
>> 
>> do you have any 

Re: lyx2lyx fails to convert

2022-08-21 Thread Stephan Witt
Hi Tim,

you have to change your command - lyx2lyx is a folder in Resources:

$ /System/Volumes/Data/Applications/LyX.app/Contents/Resources/lyx2lyx/lyx2lyx 
-v Contrast\ paper.lyx > /dev/null
…

In case it’s a python problem the following command and it’s output is of 
interest:

$ /usr/bin/env python --version
Python 3.8.13

Stephan

> Am 21.08.2022 um 06:06 schrieb Tim Garrett :
> 
> Sorry, probably being dense here but this is what I get after finding the 
> function
> 
> /System/Volumes/Data/Applications/LyX.app/Contents/Resources/lyx2lyx -v 
> Contrast\ paper.lyx
> zsh: permission denied: 
> /System/Volumes/Data/Applications/LyX.app/Contents/Resources/lyx2lyx
> 
> Thanks for helping out here. Been a LyX user since 2001 when it was KLyX and 
> this is the first time I’ve seen this.
> 
> Tim
> 
> On 20 Aug 2022, at 3:57, Stephan Witt wrote:
> 
> Am 18.08.2022 um 18:07 schrieb 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
> 
> Hi Tim,
> 
> do you have any progress with your issue?
> 
> Did you update Monterey recently? Do you have a working Python installation?
> 
> 
> Stephan
> 
> -- 
> lyx-users mailing list
> lyx-users@lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-users

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