Re: pdfcomment.sty: tlmgr says it's installed, but latex document doesn't find it

2023-02-21 Thread Herbert Voss




Am 22.02.23 um 03:07 schrieb John Coppens:

Hi all.

I created a new LyX document and imported the 'orbd.tex' file from a package
I wanted to use 
(https://vtechworks.lib.vt.edu/bitstream/handle/10919/84164/LaTeX%20sourcefiles.zip?sequence=16&isAllowed=y)
 and modify some things.

tlmgr list --only-installed

lists the pdfcomment.sty file, but trying to render the document I get the
message:


tlmgr uses it's own list for the installed packages




LaTex error: file pdfcomment.sty not found.


It looks like a missing update of the TeX database. Run

texhash

and then try again with

kpsewhich pdfcomment.sty


Herbert





Do I have to define some path for LyX to find the document?

LyX 2.3.6.1 on Slackware64-current

John


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


Re: pdfcomment.sty: tlmgr says it's installed, but latex document doesn't find it

2023-02-21 Thread Jürgen Spitzmüller
Am Dienstag, dem 21.02.2023 um 23:07 -0300 schrieb John Coppens:
> I created a new LyX document and imported the 'orbd.tex' file from a
> package
> I wanted to use
> (https://vtechworks.lib.vt.edu/bitstream/handle/10919/84164/LaTeX%20s
> ourcefiles.zip?sequence=16&isAllowed=y) and modify some things.
> 
> tlmgr list --only-installed
> 
> lists the pdfcomment.sty file, but trying to render the document I
> get the 
> message:
> 
> LaTex error: file pdfcomment.sty not found.
> 
> Do I have to define some path for LyX to find the document?

LaTeX needs to find it, so it needs to be in a path known to LaTeX.
If "kpsewhich pdfcomment.sty" returns a path, then this is the case. If
not, then you need to set it up.

HTH,

> 
> LyX 2.3.6.1 on Slackware64-current

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


pdfcomment.sty: tlmgr says it's installed, but latex document doesn't find it

2023-02-21 Thread John Coppens
Hi all.

I created a new LyX document and imported the 'orbd.tex' file from a package
I wanted to use 
(https://vtechworks.lib.vt.edu/bitstream/handle/10919/84164/LaTeX%20sourcefiles.zip?sequence=16&isAllowed=y)
 and modify some things.

tlmgr list --only-installed

lists the pdfcomment.sty file, but trying to render the document I get the 
message:

LaTex error: file pdfcomment.sty not found.

Do I have to define some path for LyX to find the document?

LyX 2.3.6.1 on Slackware64-current

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


Re: Translate LyX document to another language

2023-02-21 Thread Dr Eberhard W Lisse
It's next to impossible, like trying to dictate into LyX.

Never mind that automatic translations, while more or less reasonable to
good, are never perfect.  There is just no substitute for professional
translation.

el

On 21/02/2023 22:49, Paul Smith wrote:
> Thanks, Dr Eberhard W Lisse. The idea is to get a LyX file as the
> result, but I understand it is something very difficult to achieve.
> 
> Paul
[...]

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


Re: Translate LyX document to another language

2023-02-21 Thread Paul Smith
Thanks, Dr Eberhard W Lisse. The idea is to get a LyX file as the
result, but I understand it is something very difficult to achieve.

Paul


On Tue, Feb 21, 2023 at 8:19 PM Dr Eberhard W Lisse  wrote:
>
> And the result must be a LyX file? I doubt that this is possible.
>
> You can always export to text and have that translated.
>
> el
>
>
>
> On 21/02/2023 11:01, Paul Smith wrote:
> > Dear All,
> >
> > Is there some way of automatically translating a LyX document, say,
> > from Spanish to English?
> >
> > I have come across GoogleTranslate4LyX:
> >
> > https://wiki.lyx.org/Tools/GoogleTranslate4LyX
> >
> > However, since an intermediate step involves conversion to HTML files,
> > I am a bit skeptical about the quality of the result.
> >
> > Thanks in advance,
> >
> > Paul
>
>
> --
> lyx-users mailing list
> lyx-users@lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-users
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Translate LyX document to another language

2023-02-21 Thread Dr Eberhard W Lisse
And the result must be a LyX file? I doubt that this is possible.

You can always export to text and have that translated.

el



On 21/02/2023 11:01, Paul Smith wrote:
> Dear All,
> 
> Is there some way of automatically translating a LyX document, say,
> from Spanish to English?
> 
> I have come across GoogleTranslate4LyX:
> 
> https://wiki.lyx.org/Tools/GoogleTranslate4LyX
> 
> However, since an intermediate step involves conversion to HTML files,
> I am a bit skeptical about the quality of the result.
> 
> Thanks in advance,
> 
> Paul


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


How to modify tables with InsetLayout

2023-02-21 Thread tush via lyx-users
In the help file "Customizing LyX: Features for the Advanced User", section 
5.3.10, it is said that by using an "InsertLayout table" one can modify this 
pre-existing inset.
I am curious to know what changes can I make to tables? Looks like tables are 
set-up using the many buttons of the gui. Nothing is mentioned about it in the 
help file "Embedded Objects" nor anywhere in the customization help file.-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Translate LyX document to another language

2023-02-21 Thread Paul Smith
On Tue, Feb 21, 2023 at 12:53 PM Pavel Sanda  wrote:
> >
> > Is there some way of automatically translating a LyX document, say,
> > from Spanish to English?
>
> Not easy for the whole document. But if you are coder I can see that within
> couple hours you might come up with a script which does something along these 
> lines:
> 1) copy paragraph which is selected in lyx into text file
> 2) seend it to DeepL API via curl
> 3) receive the response
> 4) paste it back into document
>
> Special formatting, equations/ images etc will be gone in this transformation.
>
> But having in LyX some better handling of such exchange for external services
> would be useful. From time to time I am checking grammarly for evolution of 
> their
> API interface, which would be closer to C++/Qt world so we could directly use 
> it...

Thanks, Pavel, for the ideas you have suggested. As soon as I have
some spare time, I will try to implement them in Python.

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


Re: Translate LyX document to another language

2023-02-21 Thread Pavel Sanda
On Tue, Feb 21, 2023 at 09:01:23AM +, Paul Smith wrote:
> Dear All,
> 
> Is there some way of automatically translating a LyX document, say,
> from Spanish to English?

Not easy for the whole document. But if you are coder I can see that within
couple hours you might come up with a script which does something along these 
lines:
1) copy paragraph which is selected in lyx into text file
2) seend it to DeepL API via curl
3) receive the response
4) paste it back into document

Special formatting, equations/ images etc will be gone in this transformation.

But having in LyX some better handling of such exchange for external services
would be useful. From time to time I am checking grammarly for evolution of 
their
API interface, which would be closer to C++/Qt world so we could directly use 
it...

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


Re: Translate LyX document to another language

2023-02-21 Thread Paul Smith
On Tue, Feb 21, 2023 at 9:05 AM Lorenzo Bertini
 wrote:
>
> > Is there some way of automatically translating a LyX document, say,
> > from Spanish to English?
> >
> > I have come across GoogleTranslate4LyX:
> >
> > https://wiki.lyx.org/Tools/GoogleTranslate4LyX
> >
> > However, since an intermediate step involves conversion to HTML files,
> > I am a bit skeptical about the quality of the result.
>
> I'm not aware of any tool specifically made for this purpose, but a .lyx
> file is in plain text, so if you can get any translator that works with
> that and can skip LyX's keywords it should work fine.

Thanks, Lorenzo. The difficulty is really to skip LyX's keywords!

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


Re: Translate LyX document to another language

2023-02-21 Thread Lorenzo Bertini

Il 21/02/23 10:01, Paul Smith ha scritto:

Dear All,

Is there some way of automatically translating a LyX document, say,
from Spanish to English?

I have come across GoogleTranslate4LyX:

https://wiki.lyx.org/Tools/GoogleTranslate4LyX

However, since an intermediate step involves conversion to HTML files,
I am a bit skeptical about the quality of the result.

Thanks in advance,

Paul


I'm not aware of any tool specifically made for this purpose, but a .lyx 
file is in plain text, so if you can get any translator that works with 
that and can skip LyX's keywords it should work fine.


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


Translate LyX document to another language

2023-02-21 Thread Paul Smith
Dear All,

Is there some way of automatically translating a LyX document, say,
from Spanish to English?

I have come across GoogleTranslate4LyX:

https://wiki.lyx.org/Tools/GoogleTranslate4LyX

However, since an intermediate step involves conversion to HTML files,
I am a bit skeptical about the quality of the result.

Thanks in advance,

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