Re: [NTG-context] embed source-file in pdf

2022-04-20 Thread Heinrich Paeßens via ntg-context
Hi Pablo and Rik

many thanks, much appreciated.
attachment works like a charm to include the source files in the delivered PDF.

Rik pointed me to the longterm archive standard, which is also desirable. PDF/A 
is possible with  setupbackend\setupbackend[format={pdf/a-3a}]

but needs fixing with acrobat-preflight to pass validation (in Acrobat and 
veraPDF).

Kind regards
Heinrich 

Sent from my iPhone

> On 20. Apr 2022, at 16:46, Pablo Rodriguez via ntg-context 
>  wrote:
> 
> On 4/19/22 16:47, Heinrich Paeßens via ntg-context wrote:
>> Hi there
>> 
>> just a quick question: 
>> 
>> Is there a command or package to embed the source-file (*.tex) into the
>> resulting pdf-file,
> 
> Hi Heinrich,
> 
> I think this may be what you need:
> 
>  \setupinteraction[state=start]
>  \attachment[file=\jobname.tex]
>  \starttext
>  \input zapf
>  \stoptext
> 
>> just like in LaTeX using package »embedall«
> 
> I think it is way better that you explain what you want to achieve.
> 
> I’d say that not all ConTeXt users are also proficient in LaTeX. In my
> case, I haven’t use it for more than a decade.
> 
> I hope it helps,
> 
> Pablo
> 
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] embed source-file in pdf

2022-04-20 Thread Heinrich Paeßens via ntg-context

Hi Pablo

Many thanks. That is exactly what I need, ie. to deliver the source code 
embedded in the PDF. 

attachment works like a charm

Rik pointed me — additionally — into the direction of being PDF/A compliant. 
PDF/A is possible with 
setupbackend\setupbackend[format={pdf/a-3a}]
but needs fixing with acrobat-preflight to pass validation (in Acrobat and 
veraPDF). Just in case someone needs to archive longterm. 
https://en.m.wikipedia.org/wiki/PDF/A

Kind regards
Heinrich

Sent from my iPhone

> On 20. Apr 2022, at 16:46, Pablo Rodriguez via ntg-context 
>  wrote:
> On 4/19/22 16:47, Heinrich Paeßens via ntg-context wrote:
>> Hi there
>> 
>> just a quick question: 
>> 
>> Is there a command or package to embed the source-file (*.tex) into the
>> resulting pdf-file,
> 
> Hi Heinrich,
> 
> I think this may be what you need:
> 
>  \setupinteraction[state=start]
>  \attachment[file=\jobname.tex]
>  \starttext
>  \input zapf
>  \stoptext
> 
>> just like in LaTeX using package »embedall«
> 
> I think it is way better that you explain what you want to achieve.
> 
> I’d say that not all ConTeXt users are also proficient in LaTeX. In my
> case, I haven’t use it for more than a decade.
> 
> I hope it helps,
> 
> Pablo
> 
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] embed source-file in pdf

2022-04-20 Thread Pablo Rodriguez via ntg-context
On 4/19/22 16:47, Heinrich Paeßens via ntg-context wrote:
> Hi there
>
> just a quick question: 
>
> Is there a command or package to embed the source-file (*.tex) into the
> resulting pdf-file,

Hi Heinrich,

I think this may be what you need:

  \setupinteraction[state=start]
  \attachment[file=\jobname.tex]
  \starttext
  \input zapf
  \stoptext

> just like in LaTeX using package »embedall«

I think it is way better that you explain what you want to achieve.

I’d say that not all ConTeXt users are also proficient in LaTeX. In my
case, I haven’t use it for more than a decade.

I hope it helps,

Pablo


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] embed source-file in pdf

2022-04-19 Thread Rik Kabel via ntg-context


On 2022-04-19 10:47, Heinrich Paeßens via ntg-context wrote:

Hi there

just a quick question:

Is there a command or package to embed the source-file (*.tex) into 
the resulting pdf-file, just like in LaTeX using package »embedall« 
?


Many thanks and kind regards

Heinrich




You are looking for attachment 
.


Note that the resulting pdf will not pass PDF/A validation, or at least, 
it did not at the last time I tested it a year ago.


--
Rik
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] embed source-file in pdf

2022-04-19 Thread Heinrich Paeßens via ntg-context
Hi there

just a quick question: 

Is there a command or package to embed the source-file (*.tex) into the 
resulting pdf-file, just like in LaTeX using package »embedall« 
?

Many thanks and kind regards

Heinrich___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___