Re: embedded graphics

2021-10-03 Thread Paul A. Rubin

On 10/3/21 11:44 AM, Kornel Benko wrote:

Am Sun, 3 Oct 2021 11:29:02 -0400
schrieb "Paul A. Rubin" :


On 10/3/21 11:08 AM, Jürgen Spitzmüller wrote:

Am Sonntag, dem 03.10.2021 um 10:48 -0400 schrieb Paul A. Rubin:

Personally, I'd prefer to keep LyX files small and plain text. Also,
wouldn't embedding graphics introduce extra work if the source
graphic was changed? For instance, if I embedded a plot, then later
changed data an reran the plot, I would need to manually update the
LyX file.

I am completely with you, but I think if we could support both (as I
sketched in my mail) and maybe store the user's preference for saving
in session, everybody could be lucky.

Best,
Jürgen



I would be fine with it being an option, preferably with the choice
configurable in each document
and a default choice set in preferences.

The second sentence contradicts the use of
Document->Settings->Save as default


Cheers,
Paul


Kornel




OK, so rather than setting the default in global preferences, I guess it could 
be set
in document settings for whatever template is being used (including the default
document type for File > New).

Paul

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


Re: embedded graphics

2021-10-03 Thread Kornel Benko
Am Sun, 3 Oct 2021 11:29:02 -0400
schrieb "Paul A. Rubin" :

> On 10/3/21 11:08 AM, Jürgen Spitzmüller wrote:
> > Am Sonntag, dem 03.10.2021 um 10:48 -0400 schrieb Paul A. Rubin:
> >> Personally, I'd prefer to keep LyX files small and plain text. Also,
> >> wouldn't embedding graphics introduce extra work if the source
> >> graphic was changed? For instance, if I embedded a plot, then later
> >> changed data an reran the plot, I would need to manually update the
> >> LyX file.
> > I am completely with you, but I think if we could support both (as I
> > sketched in my mail) and maybe store the user's preference for saving
> > in session, everybody could be lucky.
> >
> > Best,
> > Jürgen
> >
> >
> I would be fine with it being an option, preferably with the choice 
> configurable in each document

> and a default choice set in preferences.

The second sentence contradicts the use of
Document->Settings->Save as default

> Cheers,
> Paul


Kornel



pgpZDk9cn9B5W.pgp
Description: Digitale Signatur von OpenPGP
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: embedded graphics

2021-10-03 Thread Paul A. Rubin

On 10/3/21 11:08 AM, Jürgen Spitzmüller wrote:

Am Sonntag, dem 03.10.2021 um 10:48 -0400 schrieb Paul A. Rubin:

Personally, I'd prefer to keep LyX files small and plain text. Also,
wouldn't embedding graphics introduce extra work if the source
graphic was changed? For instance, if I embedded a plot, then later
changed data an reran the plot, I would need to manually update the
LyX file.

I am completely with you, but I think if we could support both (as I
sketched in my mail) and maybe store the user's preference for saving
in session, everybody could be lucky.

Best,
Jürgen


I would be fine with it being an option, preferably with the choice 
configurable in each document and a default choice set in preferences.


Cheers,
Paul

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


Re: embedded graphics

2021-10-03 Thread Jürgen Spitzmüller
Am Sonntag, dem 03.10.2021 um 10:48 -0400 schrieb Paul A. Rubin:
> Personally, I'd prefer to keep LyX files small and plain text. Also,
> wouldn't embedding graphics introduce extra work if the source
> graphic was changed? For instance, if I embedded a plot, then later
> changed data an reran the plot, I would need to manually update the
> LyX file.

I am completely with you, but I think if we could support both (as I
sketched in my mail) and maybe store the user's preference for saving
in session, everybody could be lucky.

Best,
Jürgen



signature.asc
Description: This is a digitally signed message part
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: embedded graphics

2021-10-03 Thread Paul A. Rubin

On 10/3/21 8:06 AM, Scott Kostyshak wrote:

On Sun, Oct 03, 2021 at 09:49:34AM +0200, Jürgen Spitzmüller wrote:


As to the request here, this would have the (severe) drawback that the
LyX file is no longer a plain text file.

I really don't know much about this, but couldn't we use some sort of ASCII 
encoding like base64 (https://en.wikipedia.org/wiki/Base64). I think that's 
what some mail programs do (e.g., mutt) to add attachments. Perhaps there is a 
disadvantage that the file size is (much) bigger than using a non-ASCII 
encoding?

Scott

Personally, I'd prefer to keep LyX files small and plain text. Also, 
wouldn't embedding graphics introduce extra work if the source graphic 
was changed? For instance, if I embedded a plot, then later changed data 
an reran the plot, I would need to manually update the LyX file.


The LyX Archive export seems to be a good solution for sharing (or 
archiving) documents.


Paul

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


Re: embedded graphics

2021-10-03 Thread Scott Kostyshak
On Sun, Oct 03, 2021 at 09:49:34AM +0200, Jürgen Spitzmüller wrote:

> As to the request here, this would have the (severe) drawback that the
> LyX file is no longer a plain text file.

I really don't know much about this, but couldn't we use some sort of ASCII 
encoding like base64 (https://en.wikipedia.org/wiki/Base64). I think that's 
what some mail programs do (e.g., mutt) to add attachments. Perhaps there is a 
disadvantage that the file size is (much) bigger than using a non-ASCII 
encoding?

Scott


signature.asc
Description: PGP signature
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: embedded graphics

2021-10-03 Thread Jürgen Spitzmüller
Am Samstag, dem 02.10.2021 um 20:42 -0400 schrieb Scott Kostyshak:
> On Sat, Oct 02, 2021 at 06:09:03PM -0500, javier ignacio carrero
> mantilla wrote:
> >  A suggestion for lyx development: to change the file format in
> > such a way
> > that it includes the graphics, as word processors do. For example:
> > pasting
> > myGraphic.png into myDocument.lyx makes it part of myDocument.lyx
> > structure.
> > The current need to move, copy, paste, or e-mail all graphics
> > alongside the
> > lyx file is annoying and makes the use of lyx prone to lost links.
> > However,
> > it can be solved as proposed here, embedding the graphics in the
> > lyx file
> > itself, as word processors do. In fact, the last version of
> > Scientific Word
> > (SW) worked this way. As far as I remember, from some SW sales
> > pitch, it
> > used some kind of xml format, but unfortunately SW is now defunct
> > and the
> > details are probably lost (I'm not a programmer).
> > P. D.
> > The current lyx scheme, that is, linked graphics, should be
> > maintained for
> > compatibility as an option, in fact word processors allow it.
> 
> Hi Javier,
> 
> I've seen this requested a few times but currently no one is working
> on this feature. I don't think it would be *that* hard to implement
> it. Embedding graphics, or any file I believe, is common in other
> applications and file formats. But it would still take time to get
> everything working smoothly.

Note, though, that there is the "LyX Archive" (export) format which
creates an archive (zip or tar.gz) with all graphics, bib files etc.
included.

This could be extended to the way that those archives can be read
without extra unpacking step (or can it already?), and then the format
could be moved from export to save as an option.

As to the request here, this would have the (severe) drawback that the
LyX file is no longer a plain text file.

Jürgen




signature.asc
Description: This is a digitally signed message part
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel