Re: LyX, Non-TeX-Fonts and export with pandoc

2023-11-19 Thread Richard Kimberly Heck

On 11/19/23 06:30, Tobias Hilbricht wrote:

Riki,

I have added your instructions to the LyX-wiki "Export to OpenDocument
(.odt) and Open Office XML (.docx) file formats with Pandoc".


Thanks!

Riki



Am Samstag, dem 18.11.2023 um 23:08 -0500 schrieb Richard Kimberly
Heck:

Probably this should go into 2.4, but we'll see if anyone has
worries.

On 11/18/23 13:24, Tobias Hilbricht wrote:

Am Samstag, dem 18.11.2023 um 12:46 -0500 schrieb Richard Kimberly
Heck:

On 11/18/23 07:18, Tobias Hilbricht wrote:

But when I check that box and want to use Non-TeX-Fonts, the
export
option to docx or odt via pandoc disappears.

The reason for this is that, if you use non-TeX fonts, then the
immediate export is to a file that would be compiled with XeLaTeX
or
LuaTeX, and there is no converter defined to convert that format
to
ODT
or whatever.

Now that you write it it is quite clear, but it did not occur to me
when looking at Settings - Converter ...


The solution is to define one. This is easiest done I think in
the
configuration files themselves rather than in LyX. Find your user
directory and open the file lyxrc.defaults. In there, you will
find a
line like:

\converter latex  odt3    "pandoc -s -f latex -o $$o -t
odt
$$i"    ""

Copy it and open the file preferences. Paste twice but change it
to:

\converter xetex  odt3    "pandoc -s -f latex -o $$o -t
odt
$$i"    ""
\converter luatex  odt3    "pandoc -s -f latex -o $$o -t
odt
$$i"    ""

Save that file and open LyX. Should work, but not tested. The
same
kind
of thing will work for Word formats.

A quick test with a simple LyX-document produced docx- and odt-
output
without errors and with the expected formatting.

There may be some reason we do not include this by default:
Perhaps
pandoc is liable to choke on something we output in those modes.
Hopefully, someone else will know. But I'm guessing it's an
oversight.


I can understand that and will see how far I can get. Thank you for
your advice!
Tobias




--

Richard Kimberly (Riki) Heck
Professor of Philosophy
Brown University

Pronouns: they/them/their
Website:  http://rkheck.frege.org/

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


Re: LyX, Non-TeX-Fonts and export with pandoc

2023-11-19 Thread Tobias Hilbricht
Riki,

I have added your instructions to the LyX-wiki "Export to OpenDocument
(.odt) and Open Office XML (.docx) file formats with Pandoc".

Tobias 

Am Samstag, dem 18.11.2023 um 23:08 -0500 schrieb Richard Kimberly
Heck:
> 
> Probably this should go into 2.4, but we'll see if anyone has
> worries.
> 
> On 11/18/23 13:24, Tobias Hilbricht wrote:
> > Am Samstag, dem 18.11.2023 um 12:46 -0500 schrieb Richard Kimberly
> > Heck:
> > > On 11/18/23 07:18, Tobias Hilbricht wrote:
> > > > But when I check that box and want to use Non-TeX-Fonts, the
> > > > export
> > > > option to docx or odt via pandoc disappears.
> > > The reason for this is that, if you use non-TeX fonts, then the
> > > immediate export is to a file that would be compiled with XeLaTeX
> > > or
> > > LuaTeX, and there is no converter defined to convert that format
> > > to
> > > ODT
> > > or whatever.
> > Now that you write it it is quite clear, but it did not occur to me
> > when looking at Settings - Converter ...
> > 
> > > The solution is to define one. This is easiest done I think in
> > > the
> > > configuration files themselves rather than in LyX. Find your user
> > > directory and open the file lyxrc.defaults. In there, you will
> > > find a
> > > line like:
> > > 
> > > \converter latex  odt3    "pandoc -s -f latex -o $$o -t
> > > odt
> > > $$i"    ""
> > > 
> > > Copy it and open the file preferences. Paste twice but change it
> > > to:
> > > 
> > > \converter xetex  odt3    "pandoc -s -f latex -o $$o -t
> > > odt
> > > $$i"    ""
> > > \converter luatex  odt3    "pandoc -s -f latex -o $$o -t
> > > odt
> > > $$i"    ""
> > > 
> > > Save that file and open LyX. Should work, but not tested. The
> > > same
> > > kind
> > > of thing will work for Word formats.
> > A quick test with a simple LyX-document produced docx- and odt-
> > output
> > without errors and with the expected formatting.
> > > There may be some reason we do not include this by default:
> > > Perhaps
> > > pandoc is liable to choke on something we output in those modes.
> > > Hopefully, someone else will know. But I'm guessing it's an
> > > oversight.
> > > 
> > I can understand that and will see how far I can get. Thank you for
> > your advice!
> > Tobias
> 
> 

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


Re: slow cursor speed

2023-11-19 Thread Jean-Marc Lasgouttes

Le 19/11/2023 à 04:30, Tim Garrett a écrit :

Hi Scott,

I backtracked on LyX version to 2.3.0 from 2018. That seems to have 
fixed the slow cursor and typing seed problems fingers crossed. It does 
however introduce a new problem which is the below. If you know a simple 
fix I should be good I hope.


Does that mean that the issue starts with 2.3.1? This would be 
interesting, since indeed there have been changes to display code at 
this point.


For you other problem, you can always export your files made with 2.4 
beta to 2.3 format within the LyX 2.4beta app (look at File>Export)


JMarc


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