Re: [NTG-context] starting a chapter on odd page

2016-05-11 Thread Marco Patzer
On Wed, 11 May 2016 18:02:00 +0200
Wolfgang Schuster  wrote:

> > Marco Patzer 
> > 11. Mai 2016 um 13:59
> > On Wed, 11 May 2016 13:19:41 +0200
> >
> > I don't know what the actual difference is. According to the source
> > it has something to do with floats.  
> The 'right' option works only for doublesided documents while 'odd' 
> works also with singlesided documents.

That makes sense, indeed. Rarely doing singlesided docs here. Thanks
for clarification.

Marco
___
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] starting a chapter on odd page

2016-05-11 Thread Wolfgang Schuster

Marco Patzer 
11. Mai 2016 um 13:59
On Wed, 11 May 2016 13:19:41 +0200

I don't know what the actual difference is. According to the source
it has something to do with floats.
The 'right' option works only for doublesided documents while 'odd' 
works also with singlesided documents.


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
___

[NTG-context] grid and heading distance

2016-05-11 Thread Csikos Bela
Hello context users:

I would like to use grid layout in my document. It works well but the distance 
between headings (section, subsection etc) and the following normal text 
becomes too big. How can I decrease this distance to normal, similar to 
non-grid layout? Here is an example:

\usemodule[ipsum]
\defineipsum[he][file=lipsum.txt,alternative=lines,n=1]
\defineipsum[pa][file=lipsum.txt,alternative=paragraph,n=3]
\defineipsum[pb][file=lipsum.txt,alternative=paragraph,n=4]

\setuplayout[grid=yes]
\setupinterlinespace[4.2ex]

\starttext

\chapter{\ipsum[he]}

\ipsum[pa]

\section{\ipsum[he]}

\ipsum[pb]

\subsection{\ipsum[he]}

\ipsum[pb]

\section{\ipsum[he]}

\ipsum[pb]

\section{\ipsum[he]}

\ipsum[pb]

\section{\ipsum[he]}

\ipsum[pb]

\stoptext

I attach lipsum.txt file. If I compile the document without grid layout the 
distance between heading and text is correct, but with grid layout it is too 
much, it could be one or two "line-heights" less.

I use ConTeXt  ver: 2016.05.10 23:43 MKIV beta  fmt: 2016.5.11  int: 
english/english.

Thanks in advance,

bcsikos

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris faucibus felis 
magna. Phasellus pharetra lorem neque, a viverra mauris volutpat vel. Quisque 
vitae velit eu ipsum euismod faucibus. Quisque lorem massa, consectetur nec 
odio non, tempor fringilla nibh. Donec tempus enim non diam suscipit, ac tempus 
ligula vulputate. Cras aliquam maximus lorem, ullamcorper consequat odio 
vestibulum nec. Fusce varius velit diam, nec suscipit risus rutrum sit amet. 
Integer eu erat in ligula consequat efficitur ac non est. In eget urna massa. 
Nam dignissim augue justo, vel interdum elit varius a.

Duis venenatis aliquam lorem, quis pellentesque neque ultricies vel. Aenean 
rutrum sem a augue faucibus, sed lobortis sem tincidunt. Nunc non metus 
ultricies, semper turpis eu, volutpat arcu. Duis dignissim odio sed lacus 
vulputate, eget pulvinar arcu consectetur. Nunc molestie neque felis, consequat 
porta libero venenatis vel. Duis pharetra leo at lorem ornare, vitae vehicula 
ipsum vestibulum. Mauris aliquam tristique velit. Nunc vitae porttitor urna. 
Nunc facilisis ultricies neque, quis rutrum justo efficitur a. Sed et libero at 
tortor congue volutpat vel quis purus.

Pellentesque commodo tincidunt dolor ac viverra. Etiam non augue in lectus 
mollis volutpat. Nullam ut nisl velit. Duis non sem ac lorem vehicula 
imperdiet. Donec eu dolor quis lectus commodo venenatis eu nec nulla. Quisque 
euismod euismod lacus nec faucibus. Vivamus vel ante condimentum, malesuada 
massa a, placerat tellus. Curabitur dictum vitae urna non dictum. Donec tempus 
ante ut lacinia mattis. Integer mattis turpis ut aliquam eleifend. Vivamus 
pulvinar sed enim eu rutrum. Proin a libero lacus. Vivamus tempus risus 
imperdiet, rhoncus urna non, sollicitudin elit. Nullam tempus nisl nec enim 
vulputate pulvinar.

Donec elementum, neque quis maximus porta, sem urna luctus risus, nec 
consectetur sapien enim non arcu. Duis quis varius lorem. Pellentesque id 
egestas nunc, at egestas neque. Pellentesque habitant morbi tristique senectus 
et netus et malesuada fames ac turpis egestas. Curabitur sit amet tellus vel 
urna efficitur maximus. Donec aliquam efficitur mauris, ac efficitur massa 
lacinia nec. Vestibulum blandit massa eget sapien cursus, tincidunt tristique 
diam aliquet. Aliquam ac nisi lorem. Fusce elementum, mi nec congue pulvinar, 
risus arcu vestibulum ligula, id pharetra sem ex mattis erat. In tincidunt, 
tellus vel interdum tincidunt, diam lectus commodo ante, sit amet tristique 
nulla mi ut tortor.

Proin mauris neque, dapibus id pretium quis, malesuada sit amet arcu. Morbi 
sagittis purus dui, quis auctor urna ornare viverra. Curabitur blandit nisl 
quis rhoncus pharetra. In maximus dignissim venenatis. Maecenas mollis libero 
sit amet quam viverra, viverra cursus erat egestas. Proin convallis interdum 
ipsum in vehicula. Aliquam tempus velit nec ullamcorper laoreet. Nunc vitae 
urna at diam iaculis malesuada id vitae elit. Nulla faucibus lacus vel libero 
venenatis vulputate.

Morbi in enim nec ante hendrerit commodo eget id lectus. Donec id felis eget 
tellus varius pellentesque. Nunc at viverra purus. Quisque magna libero, 
aliquet sit amet faucibus eget, pulvinar in nibh. Quisque fringilla tincidunt 
efficitur. Nulla tincidunt purus sit amet volutpat varius. Class aptent taciti 
sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. 
Praesent a efficitur eros, ac consequat erat. Morbi suscipit dolor id sem 
elementum cursus. Vivamus tellus sapien, pharetra vel malesuada quis, tempor at 
lorem. Nunc maximus interdum arcu, id placerat leo imperdiet sit amet. 
Vestibulum scelerisque diam tincidunt ante pulvinar, ut interdum risus egestas.

Etiam neque lectus, pulvinar quis elit rutrum, blandit sollicitudin dolor. 
Nullam vitae mollis odio. Cras pharetra facilisis dolor, et lacinia velit 
ornare vel. Integer nec sem tristique, blandit m

Re: [NTG-context] starting a chapter on odd page

2016-05-11 Thread Marco Patzer
On Wed, 11 May 2016 13:19:41 +0200
Andrea Valle  wrote:

> Thanks marco, should I rather use
> 
> 
> \definepagebreak
>  [chapterpagebreak]
>  [yes, odd]

I don't know what the actual difference is. According to the source
it has something to do with floats.

Marco
___
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] starting a chapter on odd page

2016-05-11 Thread Wolfgang Schuster

Andrea Valle 
11. Mai 2016 um 12:38
Dear all,

in the book I’m finishing I’m using a structure like this

\starttext

\input c_preface.tex

\input c_chapter1.tex

[etc]

\stoptext


where each .tex file contains

\startchapter[various options]
\section{First section}
etc
\stopchapter

The publisher is asking me to start each chapter on a odd page. Can I 
do it by setting some options?


Chapters start by default on right pages when you enable doublesided 
documents.


\setuppagenumbering[alternative=doublesided] % doublesided with mirrored 
page layout
%\setuppagenumbering[alternative={singlesided,doublesided}] % 
doublesided with same layout for left/right pages


\starttext
\dorecurse{3}{\chapter{Chapter}}
\stoptext

\starttext

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] starting a chapter on odd page

2016-05-11 Thread Andrea Valle
Thanks marco, should I rather use


\definepagebreak
 [chapterpagebreak]
 [yes, odd]

?

-a-
--
Andrea Valle
--
CIRMA - StudiUm
Università degli Studi di Torino
--> http://www.cirma.unito.it/andrea/
--> http://www.fonurgia.unito.it/andrea/
--> http://www.flickr.com/photos/vanderaalle/sets/
--> http://vimeo.com/vanderaalle
--> andrea.va...@unito.it
--

"This is a very complicated case, Maude. You know, a lotta ins, a lotta outs, a 
lotta what-have-yous." 
(Jeffrey 'The Dude' Lebowski)

> On 11 May 2016, at 13:02, Marco Patzer  wrote:
> 
> On Wed, 11 May 2016 12:38:17 +0200
> Andrea Valle  wrote:
> 
>> in the book I’m finishing I’m using a structure like this
>> 
>> \starttext
>> 
>> \input c_preface.tex
>> 
>> \input c_chapter1.tex
>> 
>> [etc]
>> 
>> \stoptext
>> 
>> 
>> where each .tex file contains
>> 
>> \startchapter[various options]
>> \section{First section}
>> etc
>> \stopchapter
>> 
>> The publisher is asking me to start each chapter on a odd page. Can I
>> do it by setting some options?
> 
> \definepagebreak
>  [chapterpagebreak]
>  [yes, right]
> 
> \setuphead
>  [chapter]
>  [page=chapterpagebreak]
> 
> Marco
> ___
> 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
___

Re: [NTG-context] starting a chapter on odd page

2016-05-11 Thread Marco Patzer
On Wed, 11 May 2016 12:38:17 +0200
Andrea Valle  wrote:

> in the book I’m finishing I’m using a structure like this
> 
> \starttext
> 
> \input c_preface.tex
> 
> \input c_chapter1.tex
> 
> [etc]
> 
> \stoptext
> 
> 
> where each .tex file contains
> 
> \startchapter[various options]
> \section{First section}
> etc
> \stopchapter
> 
> The publisher is asking me to start each chapter on a odd page. Can I
> do it by setting some options?

\definepagebreak
  [chapterpagebreak]
  [yes, right]

\setuphead
  [chapter]
  [page=chapterpagebreak]

Marco
___
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] [OT] Using ConTeXt to generate Minecraft maps (& asking for votes to get to NASA)

2016-05-11 Thread Mojca Miklavec
Hi,

TL;DR: please vote for eXoCraft at
https://2016.spaceappschallenge.org/vote

(We only need a few hundred votes to get to the final five: one vote
per person per day until the end of the week; the team with most votes
gets an invitation to NASA.)

-

Background:

It all started with a wonderful BachoTeX conference and users
frustrated by inaccurate maps and unable to find their huts after the
bonfire was over at 3 am.

http://www.gust.org.pl/bachotex/

So some people took the GPS, mapped the area and entered the data into
OpenStreetMaps.

Some years back I challenged Hans to let ConTeXt draw a nice map using
lua & xml & metapost combined.

Here's the result:
http://meeting.contextgarden.net/2014/programme.shtml
http://meeting.contextgarden.net/2014/talks/2014-09-12-mojca-maps/OpenStreetMaps_with_ConTeXt.pdf

Meanwhile we also came up with
http://www.gust.org.pl/bachotex/bachotex-promo/bachotex-site-color.png


This year we took the existing map-generating sources to the next
level. Since Hans' nephew is a great lover of MineCraft, we helped him
build the foundations for creating a geographically accurate BachoTeX
map in Minecraft while enjoying the wonderful conference.

Using ConTeXt of course!

(Preview is available here:
https://github.com/mojca/bachotex-maps/tree/master/minecraft/google-maps/bachotex,
but you need to clone the project first to view in offline and please
note that the map project is not finished yet.)


Now, this last step has only been possible due to some wonderful
team-mates and an event that happened one week before BachoTeX. This
was the team effort:

https://2016.spaceappschallenge.org/challenges/solar-system/open-world-generation-using-nasa-mars-and-vesta-data/projects/vesta-craft
https://www.youtube.com/watch?v=XmM1DqG4dTE

The project actually got us to the top-25 in the world and the winner
(based solely on the number of votes) gets a trip to NASA. I'm not
claiming that what we could learn and do in one day and a half is
super special, but we would be grateful for any votes ...

Thank you,
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] starting a chapter on odd page

2016-05-11 Thread Andrea Valle
Dear all, 

in the book I’m finishing I’m using a structure like this

\starttext

\input c_preface.tex

\input c_chapter1.tex

[etc]

\stoptext


where each .tex file contains

\startchapter[various options]
\section{First section}
etc
\stopchapter

The publisher is asking me to start each chapter on a odd page. Can I do it by 
setting some options?

Thanks!

-a-




--
Andrea Valle
--
CIRMA - StudiUm
Università degli Studi di Torino
--> http://www.cirma.unito.it/andrea/
--> http://www.fonurgia.unito.it/andrea/
--> http://www.flickr.com/photos/vanderaalle/sets/
--> http://vimeo.com/vanderaalle
--> andrea.va...@unito.it
--

"This is a very complicated case, Maude. You know, a lotta ins, a lotta outs, a 
lotta what-have-yous." 
(Jeffrey 'The Dude' Lebowski)

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