ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Two more questions
@ 1999-11-11 10:34 Marc van Dongen
  1999-11-11 14:19 ` Tobias Burnus
  1999-11-11 23:43 ` Hans Hagen
  0 siblings, 2 replies; 4+ messages in thread
From: Marc van Dongen @ 1999-11-11 10:34 UTC (permalink / raw)


Hello again,

I have some questions and was hoping somebody would have
an answer to them.

 1) I have used pdftex before and have created a number
    of macros for handling forms, hyperlinks and the like.
    When I tried to use them in combination with \CONTEXT
    it turned out they didn't work (I haven't started
    using things depending on forms yet.).

    E.g. I compared two pdf files, one created using
    \CONTEXT and one without. The pdf for a hyperlink
   seems identical. The hyperlinks generated with the
   \CONTEX macros (i.e. not with my own) do work.
   Any suggestions as to what I am overseeing?
2) Is there a ``fancyverb'' like thing which would allow
   mo to carry out commands in a ``verbatim'' environment?

Thanks in advance.

Marc van Dongen
_______________________________________________________
     Marc van Dongen, CS Dept | phone:   +353 21 903578
University College Cork, NUIC | Fax:     +353 21 903113
  College Road, Cork, Ireland | Email: dongen@cs.ucc.ie


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Two more questions
  1999-11-11 10:34 Two more questions Marc van Dongen
@ 1999-11-11 14:19 ` Tobias Burnus
  1999-11-11 23:43 ` Hans Hagen
  1 sibling, 0 replies; 4+ messages in thread
From: Tobias Burnus @ 1999-11-11 14:19 UTC (permalink / raw)
  Cc: NTG-ConTeXt

Hallo Marc,

>  1) I have used pdftex before and have created a number
>     of macros for handling forms, hyperlinks and the like.
>     When I tried to use them in combination with \CONTEXT
>     it turned out they didn't work (I haven't started
>     using things depending on forms yet.).
(then there shouldn't be a problem simply switching to the context ons, this
makes is more likely that your hyperlinks work when using a different path, e.g.
dvips->distiller/ghostscript->[pdf])

>     E.g. I compared two pdf files, one created using
>     \CONTEXT and one without. The pdf for a hyperlink
>    seems identical. The hyperlinks generated with the
>    \CONTEX macros (i.e. not with my own) do work.
>    Any suggestions as to what I am overseeing?
I think this is almost impossible to answer this -- at least without seeing an
example and/or your macros. (If you really need them, you can make an example
else simply use the ConTeXt commands.) Apropos PDFTeX, there exists a mailing
list concerning pdf (and mainly pdftex) at pdftex@tug.org, subscribe pdftex,
majordomo@tug.org, where you can ask questions concerning plain TeX (which is
basicly what you are trying to achive; the list is also about pdfLaTeX, hyperref
and "pdf-ConTeXt".)

> 2) Is there a ``fancyverb'' like thing which would allow
>    mo to carry out commands in a ``verbatim'' environment?
Even after scanning the fancyvrb.ps file, I'm not totally sure what is ment by
'carry out commands', but I think I got an idea of the features. The features of
ConTeXt are not always the same but also advanced.

Have a look at the source documentation in the files:

verb-ini.tex -- this gives a nice overview about the verbatim possibilities.

verb-*.tex contain the basics used for syntacs highlighting of PERL,
Java/JavaScript, TeX, MetaPost and SQL. (This file is a must, if you want to add
a language, else better skip it, it isn't that well (cp. to verb-ini commented
and contains fewer examples.)

You probably already know \typefile, \type, \starttyping ... \stoptyping.
But do you know:
\type<<a <<slanted>> word>>
\type<<with <</bf boldfaced>> text>>
(from verb-ini.tex a very nice reference!)

If you have special needs, drop a note to this list.

Tobias

PS: From TeXShow (texshow setuptyping en):
------------------------------------------------
\setuptyping[...][..,..=..,..]

\setuptyping
[file, typing, name]
[space=on|off,
 page=yes|no,
 option=slanted|normal|commands|color|none,
 before=command,
 after=command,
 margin=dimension|standard,
 evenmargin=dimension,
 oddmargin=dimension,
 blank=dimension|small|medium|big|standard|halfline|line,
 escape=,
 indentnext=yes|no,
 palet=name]
------------------------------------------------
\setuptype[..=..]

\setuptype
[space=on|off,
 option=slanted|normal|none]
------------------------------------------------
Using before/after you can also use \startlinenumbering, \startframed etc.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Two more questions
  1999-11-11 10:34 Two more questions Marc van Dongen
  1999-11-11 14:19 ` Tobias Burnus
@ 1999-11-11 23:43 ` Hans Hagen
  1 sibling, 0 replies; 4+ messages in thread
From: Hans Hagen @ 1999-11-11 23:43 UTC (permalink / raw)
  Cc: ConTeXt

At 10:34 AM 11/11/99 +0000, Marc van Dongen wrote:

>    E.g. I compared two pdf files, one created using
>    \CONTEXT and one without. The pdf for a hyperlink
>   seems identical. The hyperlinks generated with the
>   \CONTEX macros (i.e. not with my own) do work.
>   Any suggestions as to what I am overseeing?

In addition to tobias' reply:

you must have pretty strong reasons to use low level pdftex primitives, since context supports quite some hyperstuff -) You can for instance use chained hyperlinks using \goto, \button, etc. One needs quite some housekeeping to implement it low level. 

you can (when in pdftex) use \pdfannot... and alike, but using for instance \pdfpageattr cum suis, will fail, since context sets these at page building time

Hans  

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.nl
-----------------------------------------------------------------


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Two more questions
       [not found] <199911111431.OAA03745@interzone.ucc.ie>
@ 1999-11-11 14:41 ` Tobias Burnus
  0 siblings, 0 replies; 4+ messages in thread
From: Tobias Burnus @ 1999-11-11 14:41 UTC (permalink / raw)
  Cc: NTG-ConTeXt

Hi Marc,

> I just started using ConTeXt and still know not everything about
> it. But one thing I *do* know is that I don't like tha way that
> hyperlinks are typeset in bold face.

Try \setupinteraction[style=normal,color=black].

If you have PERL and TCL, texshow is your friend:
-------------------------------------------------
\setupinteraction[..,..=..,..]

\setupinteraction
[state=start|stop,
 menu=on|off,
 page=yes|no,
 openaction=reference,
 closeaction=reference,
 strut=yes|no,
 width=dimension,
 height=dimension,
 depth=dimension,
 style=normal|bold|slanted|boldslanted|type|cap|small...*command,
 color=name,
 contrastcolor=name,
 symbolset=name,
 title=text,
 subtitle=text,
 author=text,
 date=text]
-------------------------------------------------

Tobias


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1999-11-11 23:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-11-11 10:34 Two more questions Marc van Dongen
1999-11-11 14:19 ` Tobias Burnus
1999-11-11 23:43 ` Hans Hagen
     [not found] <199911111431.OAA03745@interzone.ucc.ie>
1999-11-11 14:41 ` Tobias Burnus

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).