From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/114754 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?q?Heinrich_Pae=C3=9Fens_via_ntg-context?= Newsgroups: gmane.comp.tex.context Subject: Re: embed source-file in pdf Date: Wed, 20 Apr 2022 18:11:46 +0200 Message-ID: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 (1.0) Content-Type: multipart/mixed; boundary="===============5714464634859833532==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28058"; mail-complaints-to="usenet@ciao.gmane.io" Cc: =?utf-8?Q?Heinrich_Pae=C3=9Fens?= , Pablo Rodriguez To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Apr 20 18:12:47 2022 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nhCwh-00075x-Eq for gctc-ntg-context-518@m.gmane-mx.org; Wed, 20 Apr 2022 18:12:47 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 7C785289D71; Wed, 20 Apr 2022 18:11:57 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LI4e5dKkbEvS; Wed, 20 Apr 2022 18:11:55 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 52B4C289DAB; Wed, 20 Apr 2022 18:11:55 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 5FE7C289DA8 for ; Wed, 20 Apr 2022 18:11:53 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id e1bTg708PA_T for ; Wed, 20 Apr 2022 18:11:52 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=17.58.63.171; helo=st43p00im-ztdg10071801.me.com; envelope-from=paessens@me.com; receiver= Original-Received: from st43p00im-ztdg10071801.me.com (st43p00im-ztdg10071801.me.com [17.58.63.171]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id EC6D4289D71 for ; Wed, 20 Apr 2022 18:11:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1650471109; bh=MYpaN5Jo3epqNxl5QqudlH538Ow055P721YPN36zqFU=; h=Content-Type:From:Mime-Version:Subject:Message-Id:Date:To; b=JWdiFyHq4FOPulKFWzKIceA+hfugffpOZRoXfLXqPoC5v98F0K2HPjBAXLeCl3JZ7 /u+PM/nMOtXmQVkx35fXsK51faFq/kg/16OoXwMpqATsMLB2maEsAkjq3ZPyd+ac10 XWr8bKhZE9nSXzO+dS5YMfVR21Zwe2ftVQ3sx83EC0dLjlCfwnPRhs6suo8UE0kUpF AthtCu2d+Z6KLaqE98ID4n3tFpulAqkEb5NS4JYh0Haa96kNEg0uW0aLpnUul0aCcb luQSRfQ6KXDcLD369scQY03o95MKKO95kkfKQ3L/p4QnZiMnUabtWJSFzCe41mF675 Q0j4uv8+FumVg== Original-Received: from smtpclient.apple (st43p00im-dlb-asmtp-mailmevip.me.com [17.42.251.41]) by st43p00im-ztdg10071801.me.com (Postfix) with ESMTPSA id 3578F3C0171; Wed, 20 Apr 2022 16:11:49 +0000 (UTC) X-Mailer: iPhone Mail (19E258) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.486, 18.0.858 definitions=2022-04-20_04:2022-04-20, 2022-04-20 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-2009150000 definitions=main-2204200097 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:114754 Archived-At: --===============5714464634859833532== Content-Type: multipart/alternative; boundary=Apple-Mail-1CC75FEF-381E-48CC-BEE8-7063CDF85654 Content-Transfer-Encoding: 7bit --Apple-Mail-1CC75FEF-381E-48CC-BEE8-7063CDF85654 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable =EF=BB=BF =EF=BB=BFHi Pablo Many thanks. That is exactly what I need, ie. to deliver the source code emb= edded in the PDF.=20 attachment works like a charm Rik pointed me =E2=80=94 additionally =E2=80=94 into the direction of being P= DF/A compliant. PDF/A is possible with=20 setupbackend\setupbackend[format=3D{pdf/a-3a}] but needs fixing with acrobat-preflight to pass validation (in Acrobat and v= eraPDF). Just in case someone needs to archive longterm.=20 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: > =EF=BB=BFOn 4/19/22 16:47, Heinrich Pae=C3=9Fens via ntg-context wrote: >> Hi there >>=20 >> just a quick question:=20 >>=20 >> Is there a command or package to embed the source-file (*.tex) into the >> resulting pdf-file, >=20 > Hi Heinrich, >=20 > I think this may be what you need: >=20 > \setupinteraction[state=3Dstart] > \attachment[file=3D\jobname.tex] > \starttext > \input zapf > \stoptext >=20 >> just like in LaTeX using package =C2=BBembedall=C2=AB >=20 > I think it is way better that you explain what you want to achieve. >=20 > I=E2=80=99d say that not all ConTeXt users are also proficient in LaTeX. I= n my > case, I haven=E2=80=99t use it for more than a decade. >=20 > I hope it helps, >=20 > Pablo >=20 >=20 > __________________________________________________________________________= _________ > If your question is of interest to others as well, please add an entry to t= he Wiki! >=20 > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-con= text > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > __________________________________________________________________________= _________ --Apple-Mail-1CC75FEF-381E-48CC-BEE8-7063CDF85654 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
=EF=BB=BF
=EF=BB= =BF= 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 =E2=80=94 additionally =E2=80=94 into the direction o= f being PDF/A compliant. PDF/A is possible with 
setupbac= kend\setupbackend[format=3D{pdf/a-3a}]
https://en.m.wikipedia.org/w= iki/PDF/A

Kind regards
Heinrich

Sent from my iPhone

On 20. Apr 2022, at 16:46, Pablo Rodriguez via ntg-context <nt= g-context@ntg.nl> wrote:

=EF=BB=BFOn 4/19/22 16:47, Heinrich Pae=C3=9Fens v= ia ntg-context wrote:
Hi there

=
just a quick question: 

Is there a command or package to embed the source-file (*= .tex) into the
result= ing pdf-file,

Hi Heinrich,

I think this may be what you need:
<= span>

 \setupinteraction[state=3Dstart]
 \attachment[file=3D\jobname.tex]
 \starttext<= /span>
 \input zapf
 \stoptext
just like in LaTeX using p= ackage =C2=BBembedall=C2=AB

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

I=E2=80=99d say that not all ConTeXt users are a= lso proficient in LaTeX. In my
case, I haven=E2=80=99t use i= t for more than a decade.

I hope it helps,<= /span>

Pablo


_______________________________________________________________= ____________________
If your question is of interest to othe= rs as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-con= text

webpage  : http://www.pragma-ade.nl / http://conte= xt.aanhet.net
archive  : https://bitbucket.org/phg/cont= ext-mirror/commits/
wiki     : http://co= ntextgarden.net
____________________________________________= _______________________________________
<= /div>
= --Apple-Mail-1CC75FEF-381E-48CC-BEE8-7063CDF85654-- --===============5714464634859833532== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============5714464634859833532==--