ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Logos in context / Miscellaneous questions
@ 2007-09-17 15:36 Edd Barrett
  2007-09-17 17:10 ` Hans Hagen
  2007-09-17 18:46 ` Aditya Mahajan
  0 siblings, 2 replies; 5+ messages in thread
From: Edd Barrett @ 2007-09-17 15:36 UTC (permalink / raw)
  To: ntg-context

Hi there,

I am new here, so greetings. My name is Edd and I am experimenting
with context as a replacement for pdflatex when I do my dissertation
next year.

I am using texlive 2007 on OpenBSD which includes context.

I am probably now going to ask some really dumb questions.. Here goes.

---
A) I am trying to get a logo to appear in the top left of every page.
I have already discovered that I can include a graphic like so:

\externalfigure[shift]
This works just fine

However if I try to define a logo like so:
\definelogo[logo][top][left]
				[command={\externalfigure[shift]}, state=start]

I am presented with this error:
layout          : calculating logospace
 <./shift.png>
figures         : dimensions of shift are determined externally
(./template.tuo
! Undefined control sequence.
l.11 \t
       hisissectionseparator{-}

Specifying a height and width does not help either.

---

B) Is there an equivilent to the RCS package for latex. Basically it
parses version control tags from CVS/RCS.

---

C) Is there a book on context (apart from the PDF on the main
website). What other documentation exists. I have already found
contextgarden and that has proven very useful.

Thanks

-- 
Best Regards

Edd

---------------------------------------------------
http://students.dec.bournemouth.ac.uk/ebarrett
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Logos in context / Miscellaneous questions
  2007-09-17 15:36 Logos in context / Miscellaneous questions Edd Barrett
@ 2007-09-17 17:10 ` Hans Hagen
  2007-09-17 18:46 ` Aditya Mahajan
  1 sibling, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2007-09-17 17:10 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Edd Barrett wrote:

> ! Undefined control sequence.
> l.11 \t
>        hisissectionseparator{-}

weird error

try layers instead of logos (see wiki), more powerfull and easier to use

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.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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Logos in context / Miscellaneous questions
  2007-09-17 15:36 Logos in context / Miscellaneous questions Edd Barrett
  2007-09-17 17:10 ` Hans Hagen
@ 2007-09-17 18:46 ` Aditya Mahajan
  2007-09-18  8:53   ` Edd Barrett
  1 sibling, 1 reply; 5+ messages in thread
From: Aditya Mahajan @ 2007-09-17 18:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Mon, 17 Sep 2007, Edd Barrett wrote:
>
> B) Is there an equivilent to the RCS package for latex. Basically it
> parses version control tags from CVS/RCS.

There are a couple of RCS packages for LaTeX. Can you elaborate on 
what functionality you need. Most of it is pretty straightforward to 
port to ConTeXt.

> C) Is there a book on context (apart from the PDF on the main
> website).

There are few manuals for specific topics also, which are availabe 
from Prama-ade's website.

> What other documentation exists.

There are a few MyWays, which document features that are not mentioned 
in the manuals. There are also articles in MAPS, Practex journal and 
Tugboat, but most of them are about new or advanced features.

Aditya

___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Logos in context / Miscellaneous questions
  2007-09-17 18:46 ` Aditya Mahajan
@ 2007-09-18  8:53   ` Edd Barrett
  2007-09-20 23:15     ` Version control tags in context (was Logos in context / Miscellaneous questions) Aditya Mahajan
  0 siblings, 1 reply; 5+ messages in thread
From: Edd Barrett @ 2007-09-18  8:53 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

On 17/09/2007, Aditya Mahajan <adityam@umich.edu> wrote:
> On Mon, 17 Sep 2007, Edd Barrett wrote:
> >
> > B) Is there an equivilent to the RCS package for latex. Basically it
> > parses version control tags from CVS/RCS.
>
> There are a couple of RCS packages for LaTeX. Can you elaborate on
> what functionality you need. Most of it is pretty straightforward to
> port to ConTeXt.

I used to use it to insert tags without all the crud around it. So for
example a revision  id directly from CVS looks like this "$Revision:
1.4$" (no quotes) and I used to use \RCSRevision which would expand to
just "1.4". It's probably quote simple, but would require research (I
have but merely scratched the surface of TeX/Context).

>
> > C) Is there a book on context (apart from the PDF on the main
> > website).
>
> There are few manuals for specific topics also, which are availabe
> from Prama-ade's website.

Thanks. I'll have a gander.

>
> > What other documentation exists.
>
> There are a few MyWays, which document features that are not mentioned
> in the manuals. There are also articles in MAPS, Practex journal and
> Tugboat, but most of them are about new or advanced features.

Yes, this is how I found out about context, via an article in TUGBoat.

>
> Aditya
>
> ___________________________________________________________________________________
> 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  : https://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________
>


-- 
Best Regards

Edd

---------------------------------------------------
http://students.dec.bournemouth.ac.uk/ebarrett
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Version control tags in context (was Logos in context / Miscellaneous questions)
  2007-09-18  8:53   ` Edd Barrett
@ 2007-09-20 23:15     ` Aditya Mahajan
  0 siblings, 0 replies; 5+ messages in thread
From: Aditya Mahajan @ 2007-09-20 23:15 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Tue, 18 Sep 2007, Edd Barrett wrote:

> Hi,
>
> On 17/09/2007, Aditya Mahajan <adityam@umich.edu> wrote:
>> On Mon, 17 Sep 2007, Edd Barrett wrote:
>>>
>>> B) Is there an equivilent to the RCS package for latex. Basically it
>>> parses version control tags from CVS/RCS.
>>
>> There are a couple of RCS packages for LaTeX. Can you elaborate on
>> what functionality you need. Most of it is pretty straightforward to
>> port to ConTeXt.
>
> I used to use it to insert tags without all the crud around it. So for
> example a revision  id directly from CVS looks like this "$Revision:
> 1.4$" (no quotes) and I used to use \RCSRevision which would expand to
> just "1.4". It's probably quote simple, but would require research (I
> have but merely scratched the surface of TeX/Context).

Here is a very preliminary version.

\def\defineVERSION
   {\dosingleargument\dodefineVERSION}

\def\dodefineVERSION[#1]%
   {\dododefineVERSION#1}

\def\dododefineVERSION$#1: #2$%
   {\setvalue{VERSION:#1}{#2}}

\def\getVERSION#1{\getvalue{VERSION:#1}}


\defineVERSION[$Revision: 1.4$]

\defineVERSION
 	[$File: something$]

\starttext
This file, \getVERSION{File}, is at version \getVERSION{Revision}
\stoptext


I changed the interface to make it more ConTeXtish. AFAIU version 
control, this should work with RCS, CVS, and subversion. It is not too 
hard to extend this to $Data:$ and $Id:$.

Aditya
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

end of thread, other threads:[~2007-09-20 23:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-17 15:36 Logos in context / Miscellaneous questions Edd Barrett
2007-09-17 17:10 ` Hans Hagen
2007-09-17 18:46 ` Aditya Mahajan
2007-09-18  8:53   ` Edd Barrett
2007-09-20 23:15     ` Version control tags in context (was Logos in context / Miscellaneous questions) Aditya Mahajan

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