Re: [NTG-context] Attach (embed) a file info a .pdf

2014-04-23 Thread Wolfgang Schuster

Am 23.04.2014 um 09:33 schrieb Procházka Lukáš Ing. - Pontex s. r. o. 
l...@pontex.cz:

 Hello,
 
 I'm not able to recall the way how to attach a file into a .pdf being 
 generated.
 
 I need the attached files to be openable or savable from the .pdf - see 
 the image.
 
 How to achieve this with ConTeXt?

Comments from scrn-wid.mkvi:

% old but stil valid method:
%
% \useattachment[test.tex]
% \useattachment[whatever][test.tex]
% \useattachment[whatever][newname][test.tex]
% \useattachment[whatever][title][newname][test.tex]
%
% new method:
%
% \registerattachment[sometag][specification] % name file author title subtitle
%
% \attachment[sometag][extra specs]
% \attachment[test.tex]
% \attachment[file=test.tex]
% \attachment[file=test.tex,method=hidden]
% \attachment[name=newname,file=test.tex]
% \attachment[title=mytitle,name=newname,file=test.tex]
%
% indirect
%
% \defineattachment[whatever5][file=test.tex] 
\attachment[whatever5][method=hidden]
% \defineattachment[whatever5][file=test.tex,method=hidden] 
\attachment[whatever5]
%
% direct (no definitions)
%
% \attachment[test][file=oeps.tex,title=Oeps,author=Hans,subtitle=TeX 
File,method=hidden]
% \attachment[label=test,file=oeps.tex,title=Oeps,author=Hans,subtitle=TeX 
File,method=hidden]
%
% autolabel:
%
% \attachment[file=oeps.tex,title=Oeps,author=Hans,subtitle=TeX 
File,method=hidden]

Wolfgang
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Attach (embed) a file info a .pdf

2014-04-23 Thread Procházka Lukáš Ing . - Pontex s . r . o .

... Great, thank you! Lukas



Comments from scrn-wid.mkvi:

% old but stil valid method:
%
% \useattachment[test.tex]
% \useattachment[whatever][test.tex]
% \useattachment[whatever][newname][test.tex]
% \useattachment[whatever][title][newname][test.tex]
%
% new method:
%
% \registerattachment[sometag][specification] % name file author title subtitle
%
% \attachment[sometag][extra specs]
% \attachment[test.tex]
% \attachment[file=test.tex]
% \attachment[file=test.tex,method=hidden]
% \attachment[name=newname,file=test.tex]
% \attachment[title=mytitle,name=newname,file=test.tex]
%
% indirect
%
% \defineattachment[whatever5][file=test.tex] 
\attachment[whatever5][method=hidden]
% \defineattachment[whatever5][file=test.tex,method=hidden] 
\attachment[whatever5]
%
% direct (no definitions)
%
% \attachment[test][file=oeps.tex,title=Oeps,author=Hans,subtitle=TeX 
File,method=hidden]
% \attachment[label=test,file=oeps.tex,title=Oeps,author=Hans,subtitle=TeX 
File,method=hidden]
%
% autolabel:
%
% \attachment[file=oeps.tex,title=Oeps,author=Hans,subtitle=TeX 
File,method=hidden]

Wolfgang



--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Attach (embed) a file info a .pdf

2014-04-23 Thread Procházka Lukáš Ing . - Pontex s . r . o .

... One more question: the following example seems not to contain any 
attachment:

 t4.mkiv
\attachment[t4.mkiv]

\starttext
  AAA
\stoptext


What's wrong?

Lukas



Comments from scrn-wid.mkvi:

% old but stil valid method:
%
% \useattachment[test.tex]
% \useattachment[whatever][test.tex]
% \useattachment[whatever][newname][test.tex]
% \useattachment[whatever][title][newname][test.tex]
%
% new method:
%
% \registerattachment[sometag][specification] % name file author title subtitle
%
% \attachment[sometag][extra specs]
% \attachment[test.tex]
% \attachment[file=test.tex]
% \attachment[file=test.tex,method=hidden]
% \attachment[name=newname,file=test.tex]
% \attachment[title=mytitle,name=newname,file=test.tex]
%
% indirect
%
% \defineattachment[whatever5][file=test.tex] 
\attachment[whatever5][method=hidden]
% \defineattachment[whatever5][file=test.tex,method=hidden] 
\attachment[whatever5]
%
% direct (no definitions)
%
% \attachment[test][file=oeps.tex,title=Oeps,author=Hans,subtitle=TeX 
File,method=hidden]
% \attachment[label=test,file=oeps.tex,title=Oeps,author=Hans,subtitle=TeX 
File,method=hidden]
%
% autolabel:
%
% \attachment[file=oeps.tex,title=Oeps,author=Hans,subtitle=TeX 
File,method=hidden]

Wolfgang



--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

t4.mkiv
Description: Binary data


t4.pdf
Description: Adobe PDF document
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Parsing CFF DICT failed

2011-05-14 Thread Reviczky, Adam
/Downloads/thesis/src/graphics/goldbach_hu.png) (c_programlistings.tex) (c_errata.tex
Overfull \hbox (3.0428pt too wide) in paragraph at lines 43--43
 [][][][] \*TeX Gyre11ptrmtf* (-15) page\*TeX Gyre11pf* ??\*TeX Gyre11ptrmtf* (-20) : \*TeX Gyre11pf* \registerattachment[][] \*TeX Gyre11ptrmtf* (-15) and \*TeX Gyre11pf* \defineattachment[][]

\hbox(10.75542+4.18262)x426.78743, glue set - 1.0, direction TLT
.\glue(\leftskip) 16.5
.\whatsit
..\localinterlinepenalty=0
..\localbrokenpenalty=0
..\localleftbox=null
..\localrightbox=null
.\hbox(0.0+0.0)x0.0, direction TLT
.\hbox(10.75542+4.18262)x0.0, glue set - 16.5fil, direction TLT
..\glue 0.0 plus 1.0fil minus 1.0fil
..\hbox(10.75542+4.18262)x16.5, direction TLT
...\hbox(10.75542+4.18262)x16.5, glue set 10.72498fil, direction TLT []
.\hbox(10.75542+4.18262)x0.0, direction TLT
.etc.

) (c_copying.tex) )/usr/share/texmf/fonts/opentype/public/tex-gyre/texgyrecursor-bold.otf
!LuaTeX error (file /usr/share/texmf/fonts/opentype/public/tex-gyre/texgyrecursor-bold.otf): Parsing CFF DICT failed. (error=-1)
 == Fatal error occurred, no output PDF file produced!
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Error with export=yes

2011-05-08 Thread Reviczky, Adam
/goldbach_export.png /home/reviczky/Downloads/ctx/test/thesis/src/graphics/goldbach_modified.png /home/reviczky/Downloads/ctx/test/thesis/src/graphics/goldbach_de.png /home/reviczky/Downloads/ctx/test/thesis/src/graphics/goldbach_fr.png /home/reviczky/Downloads/ctx/test/thesis/src/graphics/goldbach_hu.png) (c_programlistings.tex) (c_errata.tex
Overfull \hbox (3.2078pt too wide) in paragraph at lines 43--43
 [][][][] \*TeX Gyre11ptrmtf* (-15) page\*TeX Gyre11pf* ??\*TeX Gyre11ptrmtf* (-20) : \*TeX Gyre11pf* \registerattachment[][] \*TeX Gyre11ptrmtf* (-15) and \*TeX Gyre11pf* \defineattachment[][]

\hbox(10.75542+4.18262)x426.78743, glue set - 1.0, direction TLT
.\glue(\leftskip) 16.5
.\whatsit
..\localinterlinepenalty=0
..\localbrokenpenalty=0
..\localleftbox=null
..\localrightbox=null
.\hbox(0.0+0.0)x0.0, direction TLT
.\hbox(10.75542+4.18262)x0.0, glue set - 16.5fil, direction TLT
..\glue 0.0 plus 1.0fil minus 1.0fil
..\hbox(10.75542+4.18262)x16.5, direction TLT
...\hbox(10.75542+4.18262)x16.5, glue set 10.72498fil, direction TLT []
.\hbox(10.75542+4.18262)x0.0, direction TLT
.etc.

) (c_copying.tex) )/usr/share/texmf/fonts/opentype/public/tex-gyre/texgyrecursor-bold.otf/usr/share/texmf-texlive/fonts/type1/hoekwater/mflogo/logo10.pfb/usr/share/texmf/fonts/opentype/public/tex-gyre/texgyrecursor-regular.otf/usr/share/texmf/fonts/opentype/public/tex-gyre/texgyreadventor-regular.otf/usr/share/texmf/fonts/opentype/public/tex-gyre/texgyrechorus-mediumitalic.otf/usr/share/texmf/fonts/opentype/public/tex-gyre/texgyreadventor-bold.otf/usr/share/texmf/fonts/opentype/public/tex-gyre/texgyreadventor-italic.otf/usr/share/texmf/fonts/opentype/public/tex-gyre/texgyrebonum-regular.otf/usr/share/texmf/fonts/opentype/public/tex-gyre/texgyrebonum-italic.otf/usr/share/texmf/fonts/opentype/public/euler/euler.otf/usr/share/texmf/fonts/opentype/public/tex-gyre/texgyrebonum-bold.otf/usr/share/texmf/fonts/opentype/public/tex-gyre/texgyrebonum-regular.otf
! LuaTeX error /usr/share/texmf/tex/context/base/back-exp.lua:868: attempt to index field '?' (a nil value).

empty file

* ...ads/ctx/test/thesis/src/prd_finalreport.tex
  
The lua interpreter ran into a problem, so the
remainder of this lua chunk will be ignored.


___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Error with export=yes

2011-05-06 Thread Reviczky, Adam
) (c_conclusions.tex
Overfull \hbox (11.07205pt too wide) in paragraph at lines 26--26
[][]\*TeX Gyre11ptrmtf* (-15) Second\*TeX Gyre11ptrmtf* (-20) ly, \*TeX Gyre11ptrmtf* (-15) an ana\*TeX Gyre11ptrmtf* (-20) ­l\*TeX Gyre11ptrmtf* (-15) og\*TeX Gyre11ptrmtf* (-20) y \*TeX Gyre11ptrmtf* (-15) can be d\*TeX Gyre11ptrmtf* (-20) r\*TeX Gyre11ptrmtf* (-15) awn w\*TeX Gyre11ptrmtf* (-20) it\*TeX Gyre11ptrmtf* (-15) h \*TeX Gyre11ptrmtf* (-20) t\*TeX Gyre11ptrmtf* (-15) he wa\*TeX Gyre11ptrmtf* (-20) y L[]T[]X \*TeX Gyre11ptrmtf* (-15) enhanced \*TeX Gyre11ptrmtf* (-20) T[]X \*TeX Gyre11ptrmtf* (-15) o\*TeX Gyre11ptrmtf* (-20) r X\*TeX Gyre11ptrmtf* (-15) H\*TeX Gyre11ptrmtf* (-20) T\*TeX Gyre11ptrmtf* (-15) M\*TeX Gyre11ptrmtf* (-20) L+\*TeX Gyre11ptrmtf* (-15) CSS

\hbox(7.887+2.6675)x426.78743, glue set - 1.0, direction TLT
.\whatsit
..\localinterlinepenalty=0
..\localbrokenpenalty=0
..\localleftbox=null
..\localrightbox=null
.\hbox(0.0+0.0)x0.0, direction TLT
.\*TeX Gyre11ptrmtf* (-15) S
.\*TeX Gyre11ptrmtf* (-15) e
.\*TeX Gyre11ptrmtf* (-15) c
.etc.

) (c_bibliography.tex (prd_finalreport.bbl)) (c_appendix.tex /home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/schemes/0e9b8cc57c0432d5c772dda2b9cd6dfe.png /home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/schemes/20423a750695b2b662ba0d45cffb47d7.png /home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/schemes/e5e275d1076b71ab932ea5ebd4ebf214.png /home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/schemes/d4119ab8da3dcb23984cfb71ad63d7fd.png /home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/schemes/38eb45f44eddb6c6d26bb5dd5aeb81f8.png /home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/schemes/77bb547e2ae6cfc8f18ed6ac3fcc4cb0.png /home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/schemes/e5ef87eb4b66f38fd4ed47540edace38 /home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/schemes/cab33a4eaf4616b446d5e19baa4af9d7) (c_userguide.tex /home/reviczky/Downloads/ctx/thesis/src/graphics/goldbach_main.png /home/reviczky/Downloads/ctx/thesis/src/graphics/goldbach_about.png /home/reviczky/Downloads/ctx/thesis/src/graphics/goldbach_credits.png /home/reviczky/Downloads/ctx/thesis/src/graphics/goldbach_licence.png /home/reviczky/Downloads/ctx/thesis/src/graphics/goldbach_open.png /home/reviczky/Downloads/ctx/thesis/src/graphics/goldbach_filters.png /home/reviczky/Downloads/ctx/thesis/src/graphics/goldbach_progress.png /home/reviczky/Downloads/ctx/thesis/src/graphics/goldbach_clear.png /home/reviczky/Downloads/ctx/thesis/src/graphics/goldbach_recognition.png /home/reviczky/Downloads/ctx/thesis/src/graphics/goldbach_relational.png /home/reviczky/Downloads/ctx/thesis/src/graphics/goldbach_ellipses.png /home/reviczky/Downloads/ctx/thesis/src/graphics/goldbach_operator.png /home/reviczky/Downloads/ctx/thesis/src/graphics/goldbach_arrow.png /home/reviczky/Downloads/ctx/thesis/src/graphics/goldbach_logical.png /home/reviczky/Downloads/ctx/thesis/src/graphics/goldbach_sets.png /home/reviczky/Downloads/ctx/thesis/src/graphics/goldbach_misc.png /home/reviczky/Downloads/ctx/thesis/src/graphics/goldbach_greeklo.png /home/reviczky/Downloads/ctx/thesis/src/graphics/goldbach_greekup.png /home/reviczky/Downloads/ctx/thesis/src/graphics/goldbach_typeset.png /home/reviczky/Downloads/ctx/thesis/src/graphics/goldbach_mkiv.png /home/reviczky/Downloads/ctx/thesis/src/graphics/goldbach_save.png /home/reviczky/Downloads/ctx/thesis/src/graphics/goldbach_export.png /home/reviczky/Downloads/ctx/thesis/src/graphics/goldbach_modified.png /home/reviczky/Downloads/ctx/thesis/src/graphics/goldbach_de.png /home/reviczky/Downloads/ctx/thesis/src/graphics/goldbach_fr.png /home/reviczky/Downloads/ctx/thesis/src/graphics/goldbach_hu.png) (c_programlistings.tex) (c_errata.tex
Overfull \hbox (3.2078pt too wide) in paragraph at lines 43--43
 [][][][] \*TeX Gyre11ptrmtf* (-15) page\*TeX Gyre11pf* ??\*TeX Gyre11ptrmtf* (-20) : \*TeX Gyre11pf* \registerattachment[][] \*TeX Gyre11ptrmtf* (-15) and \*TeX Gyre11pf* \defineattachment[][]

\hbox(10.75542+4.18262)x426.78743, glue set - 1.0, direction TLT
.\glue(\leftskip) 16.5
.\whatsit
..\localinterlinepenalty=0
..\localbrokenpenalty=0
..\localleftbox=null
..\localrightbox=null
.\hbox(0.0+0.0)x0.0, direction TLT
.\hbox(10.75542+4.18262)x0.0, glue set - 16.5fil, direction TLT
..\glue 0.0 plus 1.0fil minus 1.0fil
..\hbox(10.75542+4.18262)x16.5, direction TLT
...\hbox(10.75542+4.18262)x16.5, glue set 10.72498fil, direction TLT []
.\hbox(10.75542+4.18262)x0.0, direction TLT
.etc.

) (c_copying.tex) )/usr/share/texmf/fonts/opentype/public/tex-gyre/texgyrecursor-bold.otf/usr/share/texmf-texlive/fonts/type1/hoekwater/mflogo/logo10.pfb/usr/share/texmf/fonts/opentype/public/tex-gyre/texgyrecursor-regular.otf/usr/share/texmf/fonts/opentype/public/tex