ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* embed source-file in pdf
@ 2022-04-19 14:47 Heinrich Paeßens via ntg-context
  2022-04-19 15:07 ` Rik Kabel via ntg-context
  2022-04-20 14:44 ` Pablo Rodriguez via ntg-context
  0 siblings, 2 replies; 5+ messages in thread
From: Heinrich Paeßens via ntg-context @ 2022-04-19 14:47 UTC (permalink / raw)
  To: Pablo Rodriguez via ntg-context; +Cc: Heinrich Paeßens


[-- Attachment #1.1: Type: text/plain, Size: 309 bytes --]

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« <https://mirror.las.iastate.edu/tex-archive/macros/latex/contrib/embedall/embedall.pdf>?

Many thanks and kind regards

Heinrich

[-- Attachment #1.2: Type: text/html, Size: 739 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: embed source-file in pdf
  2022-04-19 14:47 embed source-file in pdf Heinrich Paeßens via ntg-context
@ 2022-04-19 15:07 ` Rik Kabel via ntg-context
  2022-04-20 14:44 ` Pablo Rodriguez via ntg-context
  1 sibling, 0 replies; 5+ messages in thread
From: Rik Kabel via ntg-context @ 2022-04-19 15:07 UTC (permalink / raw)
  To: ntg-context; +Cc: Rik Kabel


[-- Attachment #1.1: Type: text/plain, Size: 664 bytes --]


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« 
> <https://mirror.las.iastate.edu/tex-archive/macros/latex/contrib/embedall/embedall.pdf>?
>
> Many thanks and kind regards
>
> Heinrich
>
> <https://wiki.contextgarden.net/Command/_attachment>

You are looking for attachment 
<https://wiki.contextgarden.net/Command/_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

[-- Attachment #1.2: Type: text/html, Size: 1558 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: embed source-file in pdf
  2022-04-19 14:47 embed source-file in pdf Heinrich Paeßens via ntg-context
  2022-04-19 15:07 ` Rik Kabel via ntg-context
@ 2022-04-20 14:44 ` Pablo Rodriguez via ntg-context
  2022-04-20 17:37   ` Heinrich Paeßens via ntg-context
  1 sibling, 1 reply; 5+ messages in thread
From: Pablo Rodriguez via ntg-context @ 2022-04-20 14:44 UTC (permalink / raw)
  To: Heinrich Paeßens via ntg-context; +Cc: Pablo Rodriguez

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: embed source-file in pdf
  2022-04-20 14:44 ` Pablo Rodriguez via ntg-context
@ 2022-04-20 17:37   ` Heinrich Paeßens via ntg-context
  0 siblings, 0 replies; 5+ messages in thread
From: Heinrich Paeßens via ntg-context @ 2022-04-20 17:37 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Heinrich Paeßens, Pablo Rodriguez


[-- Attachment #1.1: Type: text/plain, Size: 1733 bytes --]

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 <ntg-context@ntg.nl> 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
> ___________________________________________________________________________________

[-- Attachment #1.2: Type: text/html, Size: 3569 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: embed source-file in pdf
@ 2022-04-20 16:11 Heinrich Paeßens via ntg-context
  0 siblings, 0 replies; 5+ messages in thread
From: Heinrich Paeßens via ntg-context @ 2022-04-20 16:11 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Heinrich Paeßens, Pablo Rodriguez


[-- Attachment #1.1: Type: text/plain, Size: 1838 bytes --]


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 <ntg-context@ntg.nl> 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
> ___________________________________________________________________________________

[-- Attachment #1.2: Type: text/html, Size: 4675 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-04-20 17:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-19 14:47 embed source-file in pdf Heinrich Paeßens via ntg-context
2022-04-19 15:07 ` Rik Kabel via ntg-context
2022-04-20 14:44 ` Pablo Rodriguez via ntg-context
2022-04-20 17:37   ` Heinrich Paeßens via ntg-context
2022-04-20 16:11 Heinrich Paeßens via ntg-context

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).