[NTG-context] Learning layers: setlayer vs. setlayerframed

2011-10-26 Thread Mari Voipio
Hello!

Based on a discussion with Hans at the ConTeXt meeting I'm starting to
migrate my book covers from CorelDraw to ConTeXt using layers.

After a bit of experimenting I managed to achieve my first layer, but
looking at the examples on the wiki page, I'm wondering: what's the
difference between \setlayer and \setlayerframed.

Is the latter a subset of the first and possibly equal to

\setlayer   [name]  % name of the layer
{\framed[...=...,...=...]{LAYER}}  % the actual contents of the layer

or something else?

And which one should I use, anyway? I need to put a bit of text and a
bit of graphics onto the pages, but nothing complicated, just boxes.
But as I'm starting from zero, it would be nice to know what's the
smartest way of doing it (on the moment).

I'm running the newest or at least almost newest beta of ConTeXt and
can update if needed.


Thanks,

Mari
___
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
___


Re: [NTG-context] Learning layers: setlayer vs. setlayerframed

2011-10-26 Thread Wolfgang Schuster

Am 26.10.2011 um 09:42 schrieb Mari Voipio:

 Hello!
 
 Based on a discussion with Hans at the ConTeXt meeting I'm starting to
 migrate my book covers from CorelDraw to ConTeXt using layers.
 
 After a bit of experimenting I managed to achieve my first layer, but
 looking at the examples on the wiki page, I'm wondering: what's the
 difference between \setlayer and \setlayerframed.
 
 Is the latter a subset of the first and possibly equal to
 
 \setlayer [name]  % name of the layer
 {\framed[...=...,...=...]{LAYER}}  % the actual contents of the layer
 
 or something else?

Yes, this is more or less the definition of \setlayerframed.

 And which one should I use, anyway? I need to put a bit of text and a
 bit of graphics onto the pages, but nothing complicated, just boxes.
 But as I'm starting from zero, it would be nice to know what's the
 smartest way of doing it (on the moment).

For the graphics you can use \setlayer but \setlayerframed is better when
you a longer text which should be broken into lines.

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
___


Re: [NTG-context] Some more ToC questions

2011-10-26 Thread Wolfgang Schuster

Am 26.10.2011 um 05:41 schrieb Alasdair McAndrew:

 Thanks to the great expertise of folk on this mailgroup, I have my chapter 
 headings set so that each one comes out as
 
 Chapter n
 Name of Chapter
 
 However, I have a few more questions.  First: if I use completecontent to 
 display the contents, how can I have the Contents title display without my 
 Chapter line?  That is, is there a way of turning off my chapter command 
 temporarily?  (I've found that title doesn't work here: If I use 
 \title{Contents} \placecontent I still get a Chapter line.)
 
 Second: I'm writing out a book of student notes, and each chapter ends with a 
 set of exercises.  I'd like these exercises to be typeset as unnumbered 
 sections (subjects), and appear so in the ToC.  Like:
 
 4.4  Second last section
 4.5  Last section
 Exercises
 
 What is the best way of doing this (MkII)?  I've tried
 
 \definehead[exercise][section]
 \setuphead[exercise][number=no]
 \setuplist[exercise][headnumber=no]
 
 but that doesn't work on its own, and when paired with 
 \definecombinedlist[content][exercise,chapter,section] wipes out the contents 
 completely.
 
 Any advice (or even pointers to a web page) would be most welcome.

\defineheadplacement[MyChapter][vertical]{\vbox{#1\crlf#2}}

\setuplabeltext[chapter=Chapter ]

\setuphead[chapter][alternative=MyChapter]

\definehead[exercise][subject][incrementnumber=list]

\starttext

\title{Contents}

\placelist[chapter,section,exercise]

\chapter{Chapter}

\section{Section}

\exercise{Exercise}

\stoptext

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
___


Re: [NTG-context] Galleries with photos from ConTeXt meetings: any ideas?

2011-10-26 Thread Henning Hraban Ramm

Am 2011-10-25 um 19:36 schrieb Mojca Miklavec:


I have a few questions:
- Should photos from meetings be private or public? (The ones from
BachoTeX are public for example.)


It’s a privacy issue. I’d suggest public with unguessable URL, like  
Picasaweb albums, plus limited period.
So you can share it with all participants without password, but avoid  
searchable public display of people who don’t like it.
Additionally I’d suggest to keep a few selected pics on a really  
public site (like news), where every pictured person gave their model  
release.



- In either case I need suggestions about the best option to store
photos on new server. (Which software to run?)


Oh, there are a lot of good album applications - depends on your  
desired workflow.
E.g. if you’ve full access to a web server, you could use jAlbum  
(album-only app) or your photo management app (iPhoto, Picasa, ...) to  
generate HTML.
Or you use a service like Picasaweb (don’t know if Flickr knows semi- 
public albums).

Or you use an album module of some CMS.
Or you install a standalone album webapp (then chose a PHP or Ruby or  
Python or whatever based one...)



Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

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


Re: [NTG-context] Galleries with photos from ConTeXt meetings: any ideas?

2011-10-26 Thread Pontus Lurcock
On Tue 25 Oct 2011, Mojca Miklavec wrote:

 - In either case I need suggestions about the best option to store
 photos on new server. (Which software to run?)

I've been using Gallery ( http://gallery.menalto.com/ ) to host my
personal photos for years, and I've found it user-friendly, stable,
well-documented, and very flexible -- I haven't tried version 3 yet
but I haven't read anything negative about it.

As ever, Wikipedia has a useful checklist:
http://en.wikipedia.org/wiki/Photo_gallery_comparison

Hope this helps,

Pont
___
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
___


Re: [NTG-context] Galleries with photos from ConTeXt meetings: any ideas?

2011-10-26 Thread Mojca Miklavec
On Wed, Oct 26, 2011 at 20:47, Henning Hraban Ramm wrote:

 E.g. if you’ve full access to a web server

We do.

 you could use jAlbum (album-only app)

Thank you. I have not dealt with gallery software for ages, so this is
the first time that I hear about it.

 or your photo management app (iPhoto, Picasa, ...) to generate HTML.
 Or you use a service like Picasaweb (don’t know if Flickr knows semi-public
 albums).

I don't want Facebook to handle photos. And I'm not particularly fond
of Picassa and Flickr either. That is for people who don't want to pay
for their own server  care about maintainance to share just a few
nice photos.

iPhoto and Picasa are somewhat limited with OS and the person
uploading photos. I would prefer a web-based solution, so that a few
people can easily upload photos without having to care about their OS
and other technical details.

 Or you use an album module of some CMS.
 Or you install a standalone album webapp (then chose a PHP or Ruby or Python
 or whatever based one...)

I mostly asked because I bet that there are many people who tested
many solutions and know why one solution is worse than the other.

Requirements that come to my mind:
- ability to make protected albums (probably a strict requirement)
- ability to easily download a bunch of photos (it is not a strict
requirement, but I would like to let participants download photos in
full resolution without having to right-click hundred times)
- nice user interface for end user (pretty important)
- not too difficult to upload photos (less important since it only has
to be done once)
- ability to export in some way if we decide to change gallery
software at some point (not strict requirement)
- ability to manage permissions (to let just a few people upload photos)
- not too commercial/limiting licence (I don't care if it is
commercial software as long as it doesn't require me to pay a lot of
money if more than three people browse through album)

Mojca
___
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
___

[NTG-context] Wrong reference number

2011-10-26 Thread Andreas Harder
Hi all,

I'm not sure if this was introduced with the latest beta, but I just realized 
that the referencing numbers not right.

\starttext
  \chapter{First}
  
  \in{Figure}[fig:a] % should be 1.1
  \placefigure[here][fig:a]{}{}
  
  \in{Figure}[fig:b] % should be 1.2
  \placefigure[here][fig:b]{}{}
\stoptext


Regards
Andreas
___
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
___