* Remove external file name references
@ 2014-02-24 18:05 Thangalin
2014-02-24 22:19 ` Thangalin
0 siblings, 1 reply; 5+ messages in thread
From: Thangalin @ 2014-02-24 18:05 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi,
When external PDF graphics are included in a document (e.g., using
externalfigure), the resulting PDF contains a line such as:
/PTEX.FileName (/home/username/path/to/file.pdf)
What ConTeXt command prevents external file names from being written to the PDF?
I've tried:
\pdfptexfilename=0
\ptexinfo=0
\pdfsuppressptexinfo
Links to a thread discussing the issue for pdftex:
http://tug.org/mailman/htdig/pdftex/2007-August/007290.html
http://tug.org/mailman/htdig/pdftex/2007-August/007294.html
Thank you.
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Remove external file name references
2014-02-24 18:05 Remove external file name references Thangalin
@ 2014-02-24 22:19 ` Thangalin
2014-02-24 22:50 ` Hans Hagen
0 siblings, 1 reply; 5+ messages in thread
From: Thangalin @ 2014-02-24 22:19 UTC (permalink / raw)
To: mailing list for ConTeXt users
A patch from Phillip:
https://gist.github.com/phi-gamma/9197525
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Remove external file name references
2014-02-24 22:19 ` Thangalin
@ 2014-02-24 22:50 ` Hans Hagen
2014-02-25 1:42 ` Thangalin
0 siblings, 1 reply; 5+ messages in thread
From: Hans Hagen @ 2014-02-24 22:50 UTC (permalink / raw)
To: ntg-context
On 2/24/2014 11:19 PM, Thangalin wrote:
> A patch from Phillip:
>
> https://gist.github.com/phi-gamma/9197525
that's not a patch but obscuring code (ok for private use) ... there is
however a proper tracker request so we will have a look at it at some
point (probably some primitive needed or (as we try to avoid new
primitives, maybe an option in the img library
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Remove external file name references
2014-02-24 22:50 ` Hans Hagen
@ 2014-02-25 1:42 ` Thangalin
2014-02-25 11:53 ` Hans Hagen
0 siblings, 1 reply; 5+ messages in thread
From: Thangalin @ 2014-02-25 1:42 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi,
A flexible solution could be:
\setupexternalfigures[
pdfptexfilename={customfilename.jpg},
]
To eliminate the filename altogether:
\setupexternalfigures[
pdfptexfilename=,
]
This looks like it could be extended to customize the other PTEX
attributes, or be used to configure values in other namespaces.
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Remove external file name references
2014-02-25 1:42 ` Thangalin
@ 2014-02-25 11:53 ` Hans Hagen
0 siblings, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2014-02-25 11:53 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 2/25/2014 2:42 AM, Thangalin wrote:
> Hi,
>
> A flexible solution could be:
>
> \setupexternalfigures[
> pdfptexfilename={customfilename.jpg},
> ]
>
> To eliminate the filename altogether:
>
> \setupexternalfigures[
> pdfptexfilename=,
> ]
>
> This looks like it could be extended to customize the other PTEX
> attributes, or be used to configure values in other namespaces.
no, it would probably be:
\disabledirective[backend.ptex]
or so where we don't bother about the fact that there are multiple ptex
keys ... 'all' or 'none'
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-02-25 11:53 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-24 18:05 Remove external file name references Thangalin
2014-02-24 22:19 ` Thangalin
2014-02-24 22:50 ` Hans Hagen
2014-02-25 1:42 ` Thangalin
2014-02-25 11:53 ` Hans Hagen
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).