ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Matthias Weber <matweber@indiana.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Was: Opening external documents ... -> Can ConTeXt reduce size of images?
Date: Mon, 7 Jan 2013 19:00:30 -0500	[thread overview]
Message-ID: <46570E6F-7F3F-4D8A-81C2-DFFA1203431C@indiana.edu> (raw)
In-Reply-To: <8725678D-A55B-41DC-A945-787761033B59@gmail.com>

Thanks Wolfgang - 

I believed that the question was easy enough as is, but that was of course short sighted.
The problem I described does not arise when one just typesets the file, everything is good.
What I did was to reduce its file size using OS X's preview. This has apparently been "improved"
so that it changes the behavior  wrt external links.

In case somebody wants to try:

Typeset

\setupinteraction[page=yes,state=start]
\starttext
\goto{click}[program(test.tex)]
\stoptext

Open test.pdf with Acrobat. Clicking on "click" opens test.tex with your designated TeX editor.
Close file in Acrobat.
Open test.pdf in Preview (OS 10.8, I am sure it behaved differently in earlier versions).
Export with "reduce file size" as option checked
Open exported file in Acrobat.
Clicking on "click" will try to access the absolute file path of the previously relative link. In the best case,
the finder will point to that file (instead of opening it). In the worst case, it will not be found.


So, this clearly is not a  ConTeXt problem. But it causes me major headaches. In my workflow, I have dozens of images
that I prepare with Adobe Illustrator and save as pdf files that are still editable with Illustrator, i.e. that include another copy of the
file with layers etc. In other words, my pdf images are about 10 times as big as they need to be. I usually just reduce the file size with preview.
As this seems to be erroneous now, I am wondering:

Is there an option in \externalfigure that will strip everything redundant from a pdf file?

Thanks again,

Matthias


On Jan 7, 2013, at 3:52 PM, Wolfgang Schuster <wolfgang.schuster@gmail.com> wrote:

> 
> Am 07.01.2013 um 19:45 schrieb Matthias Weber <matweber@indiana.edu>:
> 
>> Dear All,
>> 
>> I used to write
>> 
>> \goto{\externalfigure[cuteimage]}[program(file.ext)]
>> 
>> to get an image, that, when clicked, will open an application that will open file.ext.
>> 
>> This currently still works on my Mac (10.8) with the TeXShop preview and with Skim.
>> I does not work anymore with Adobe Acrobat Reader. Acrobat now asks permission, but doesn't 
>> do anything when granted. Even worse, on another Mac with an older OS, Skim didn't open
>> the hyperlink either. On Windows, I couldn't find any program that would do the job, by I don't
>> know much about that part of the world.
>> 
>> Is there anything that has changed recently in the way these kind of hyperlinks must be written?
>> (I use MkII)
> 
> Your chance to get an answer will increase with a *working* minimal example.
> 
> 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
> ___________________________________________________________________________________

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


  reply	other threads:[~2013-01-08  0:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-07 18:45 Opening external documents with external application Matthias Weber
2013-01-07 20:52 ` Wolfgang Schuster
2013-01-08  0:00   ` Matthias Weber [this message]
2013-01-08  1:09     ` Was: Opening external documents ... -> Can ConTeXt reduce size of images? Hans Hagen
2013-01-08 23:04       ` Matthias Weber
2013-01-08 23:30         ` Hans Hagen
2013-01-09  0:17           ` Marco Patzer
2013-01-08 23:34       ` Martin Schröder
2013-01-09  0:56         ` Hans Hagen

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=46570E6F-7F3F-4D8A-81C2-DFFA1203431C@indiana.edu \
    --to=matweber@indiana.edu \
    --cc=ntg-context@ntg.nl \
    /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).