ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Heinrich Paeßens via ntg-context" <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: "Heinrich Paeßens" <paessens@me.com>, "Pablo Rodriguez" <oinos@gmx.es>
Subject: Re: embed source-file in pdf
Date: Wed, 20 Apr 2022 18:11:46 +0200	[thread overview]
Message-ID: <A944D010-1F23-405D-A242-EBA678D1D27D@me.com> (raw)


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

             reply	other threads:[~2022-04-20 16:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-20 16:11 Heinrich Paeßens via ntg-context [this message]
  -- strict thread matches above, loose matches on Subject: below --
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
2022-04-20 17:37   ` Heinrich Paeßens via ntg-context

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=A944D010-1F23-405D-A242-EBA678D1D27D@me.com \
    --to=ntg-context@ntg.nl \
    --cc=oinos@gmx.es \
    --cc=paessens@me.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).