Re: Display hidden text only when saving as html



Hi Joe,

Instead of page numbers for backward reference, can you use a
cross-reference to Section 3 or something? E.g., "see chapter 6". Then the
text would be useful in either version.

Cross-references can be automatically created as hyperlinks, which do not
show the normal formatting.

By the way, Table of Contents and cross-references act as hyperlinks in a
regular Word document, even before the conversion to HTML, for ease of
reading on screen.

You've asked this question before, apparently without a satisfactory answer.
I doubt you are going to get something that automatically triggers on Save
As as you wish. However, if you are willing to run a FormatForHTML and a
FormatForPrint macro before output, you could probably get what you want
with a minimum of effort once the macros are setup, and get the macros to
include the Save As command.


On 11/5/06 4:49 AM, "Joe Hunter" wrote:

The best way to describe this question is to first describe what I am trying
to achieve.

I have a document that I want to use both in printed form and as an html
document. I would like this transition to be transparent so as not to have to
change markup back and forth each time the document is updated.

Table of Contents entries automatically become hyperlinks in the HTML
document without any effort on my part, and print normally if printing the
document. What I want to do is have other manually entered hyperlinks not
print, but still appear in the HTML document.

For example, the manual hyperlinks would be backward reference to other
parts of the document, inserted for convenience when viewing the HTML
document. In the printed document, they would serve no purpose.

They might be barely acceptable in the printed document if they had page
numbers, but then the page numbers would be meaningless in the HTML version.

So what I am trying to find is some way to enter something that acts like a
Table of Contents entry, but appears only in the HTML edition.

Unfortunately, the Index entries retain useless page numbers instead of
being converted to hyperlinks like the Table of Contents. However, a user
can simple use "Find" to locate something in an HTML document, and the Index
section can be ignored or deleted before distribution.

Is there any sort of way to have text that is conditional based on the
output format without requiring some manual operation each time?

Thanks

--
Daiya Mitchell, MVP Mac/Word
Word FAQ: http://www.word.mvps.org/
MacWord Tips: <http://word.mvps.org/Mac/WordMacHome.html>
What's an MVP? A volunteer! Read the FAQ: http://mvp.support.microsoft.com/

.



Relevant Pages

  • Re: Broken links after uploading
    ... automatically "compress" the images when you produced the html, ... Publisher about hyperlinks. ... Compress graphics file sizes to create smaller Publisher Web ...
    (microsoft.public.publisher.webdesign)
  • =?Utf-8?Q?Re:_How_to_create_hyperlink_to_a?= =?Utf-8?Q?_caption_for_fo=C3=A9rm_Word_exported
    ... I use the DOC as PDF file and now we need to have the DOC in HTML file as ... power to change hundreds of not active references to the active hyperlinks ... I tried befor the conversion from PDF to HTML too, ...
    (microsoft.public.word.docmanagement)
  • Re: How to create hyperlink to a caption for foérm Word exported HTML
    ... This hasn't really changed much since Word started supporting conversion to HTML ... and links to the image captions (through cross-references). ... cross-reference links and replace them in the HTML file with HYPERLINKs. ...
    (microsoft.public.word.docmanagement)
  • [ANN] Gerbil 3.1.0
    ... LaTeX, UNIX man page, your own custom format, and so on. ... This release improves the HTML format by reducing the ... This menu contains hyperlinks to the ... cross-reference hyperlinks now show the name and index ...
    (comp.lang.ruby)
  • Re: hyperlinks in entourage
    ... hyperlinks and send as an HTML email from Outlook. ... Every mac user who receives ... the newsletter in Entourage gets the formatting all messed up and the ... You might try creating in an HTML editor and use a script to send the ...
    (microsoft.public.mac.office.entourage)