Re: [NTG-context] sections

2014-06-01 Thread Rik
] \starttext \startchapter[title={Start/Stop sectioning}] \startsection[title={Okay with text first}] Text here \starttabulate \FL \NC Knuth \NC \input{knuth} \NC\NR \stoptabulate \stopsection \startsection[title={Okay

[NTG-context] Margin heading problem, was Re: sections

2014-06-01 Thread Rik Kabel
%setupwhitespace [fix]% okay %% With non-zero interparagraph whitespace, the heading separates %% from the text \setupwhitespace [line]%bad \starttext \startchapter[title={Weisman}] \input weisman\par \input weisman \startsection[title={Thuan

[NTG-context] Bug in s-pre-60.mkiv module

2014-05-14 Thread Maggyero
\StopSteps % -- Hack \startsection[title=My frontmatter section] % -- Title displayed (the hack is not needed for this first section block, but I also use it here for symmetry with the next section blocks) \StartSteps \startitemize \item my item\FlushStep

[NTG-context] Head titles and section blocks bug in s-pre-60.tex module

2014-05-05 Thread Maggyero
] \starttext \startfrontmatter \startsection[title=My frontmatter section] % -- Title displayed: fine. \StartSteps \startitemize \item my item\FlushStep \item my item\FlushStep \item my item\FlushStep \stopitemize

Re: [NTG-context] Unwanted whitespace for tables and enumerations after \inmargin headings

2014-04-19 Thread Wolfgang Schuster
, distance=0pt, insidesection={\blank[overlay]}] \define[2]\SectionCommand {\inmargin{#1 – #2}} \setuplayout[backspace=4cm] \starttext \startsection[title={First}] \input ward \stopsection \startsection[title={Second}] \startitemize \item One \item Two \stopitemize \stopsection

Re: [NTG-context] Unwanted whitespace for tables and enumerations after \inmargin headings

2014-04-19 Thread Rik
On 2014-04-19 04:55, Wolfgang Schuster wrote: \setuphead [section] [alternative=text, command=\SectionCommand, distance=0pt, insidesection={\blank[overlay]}] \define[2]\SectionCommand {\inmargin{#1 -- #2}} \setuplayout[backspace=4cm] \starttext \startsection[title={First

[NTG-context] Unwanted whitespace with \startsection and in-margin headings

2014-04-17 Thread Rik Kabel
Following up on a related whitespace problem with descriptions and tables following in-margin headings -- I notice that \startsection behaves differently from \section when it comes to following whitespace for in-margin headings. This example demonstrates this: \setuplayout [backspace

[NTG-context] Problem with pdf output for FeedARead.com

2014-04-15 Thread Keith McKay
and copyright notice goes here. \setupcombinedlist[content][list={chapter,section,subsection}] \completecontent \page[empty] \setuppagenumbering[state=start,alternative=doublesided,location=footer] \startsection[title={Knuth}] \input knuth\par \stopsection \page \startsection[title={Zapf

[NTG-context] Bug: Overlapping Text

2014-04-01 Thread Thangalin
Hi, The second page of the following document has overlapping text in the second column (this has been as minimal as I can get): \setuphead[section][before={\testcolumn[4]},] \starttext \startmixedcolumns[align=right, balance=yes, grid=strut,] \dorecurse{5}{ \startsection \startitemize

Re: [NTG-context] Bugs in XML export (for ePub)

2014-03-11 Thread Henning Hraban Ramm
}] \startsection[title={Section One}] \input tufte \stopsection \startsection[title={Section Two}] \input knuth \stopsection \stopchapter \stoptext ——— gives ——— ?xml version='1.0' encoding='UTF-8' standalone='yes' ? !-- input filename : solo -- !-- processing date : Wed Mar 12 10:10:20

Re: [NTG-context] struggling with section headers

2014-03-10 Thread Henning Hraban Ramm
}, before={\blank}, after={}, interlinespace=12pt ] % dummy section with long, red title \def\Section{ \startsection[title={\definecolor[fakerulecolor][red]\fakewords{5}{20}\definecolor[fakerulecolor][black]}] \fakewords{20}{50}\par\fakewords{20}{50}\par\fakewords{20}{50}\par \stopsection

Re: [NTG-context] struggling with section headers

2014-03-10 Thread Thangalin
,nothyphenated}, tolerance=verytolerant, grid=line ] \definefont[SectionFont][Sans at 11pt] % fits within grid \setuphead[section][ page=no, style={\SectionFont}, before={\blank\testpage[3]}, after={}, interlinespace=12pt ] % dummy section with long, red title \def\Section{ \startsection

[NTG-context] Customize register format

2014-03-09 Thread Thangalin
, pagecommand=\PageCommand, distance=\zeropoint, before={\startitemize[packed,nowhite]}, ] \setuphead[section][aftersection=\page,] \starttext \startsection[title={Maguro}] Text \PhotographerIndexEntry{Kenji Fujimoto}{http://bit.ly/1fNWF0Y}{Maguro} \stopsection \startsection

[NTG-context] struggling with section headers

2014-03-07 Thread Henning Hraban Ramm
Hi again, I got a few different problems related to my section headers. I use \startsection[title={Something}] … \stopsection, but not \startparagraph, in case that matters. (Latest MkIV beta on OSX.) I need grid typesetting and use the same line spacing for body text and section headers

[NTG-context] Strange behaviour with columnar itemized text

2014-02-27 Thread Thangalin
={\testcolumn[3]},] \defineitemgroup[Instructions][inbetween={\blank[.25em]},] \starttext \startmixedcolumns[ align=right, balance=yes, grid=strut, ] \dorecurse{5}{ \startsection[title={Section},] \startInstructions \item{Preheat the oven to 400°F}\item{Put a few cups of salt in a gratin

Re: [NTG-context] Rearrange Table of Contents section page numbers

2014-02-01 Thread Wolfgang Schuster
[TOC] [renderingsetup=list:TOC] % Format the ToC style. \setupcombinedlist[content][ alternative=TOC, ] \starttext \completecontent \startchapter [title=alpha] \stopchapter \startsection[title=alphasec] \stopsection \startchapter

[NTG-context] Rearrange Table of Contents section page numbers

2014-01-31 Thread Thangalin
. \setupcombinedlist[content][ alternative=TOC, ] \starttext \completecontent \startchapter [title=alpha] \stopchapter \startsection[title=alphasec] \stopsection \startchapter [title=beta] \stopchapter \startsection[title=alphasec] \stopsection

[NTG-context] reference to structureuservariable

2014-01-20 Thread Peter Münster
Hi, How can I read a structureuservariable at the end of the section, when there are subsections? Example: --8---cut here---start-8--- \starttext \startsection[title=sec][foo=bar] % \edef\myFoo{\structureuservariable{foo}} % workaround \startsubsection

Re: [NTG-context] reference to structureuservariable

2014-01-20 Thread Wolfgang Schuster
---cut here---start-8--- \starttext \startsection[title=sec][foo=bar] % \edef\myFoo{\structureuservariable{foo}} % workaround \startsubsection[title=sub 1] sub 1 \stopsubsection \startsubsection[title=sub 2] sub 2 \stopsubsection \par foo is \structureuservariable

Re: [NTG-context] EPUB woes

2013-11-16 Thread Aditya Mahajan
that sorted out, I can try applying the lessons learned to my own documents. ConTeXt provides two types of exports. The first is an XML export. Consider a sample file: ~~~ {test.tex} \setupbackend[export=yes] \starttext \startsection[title={This is a test}] \startparagraph Some random text

Re: [NTG-context] Sectioning from 0?

2013-11-06 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... It works perfectly, thanks! Lukas On Tue, 05 Nov 2013 23:31:25 +0100, Wolfgang Schuster wolfgang.schus...@gmail.com wrote: Am 05.11.2013 um 13:22 schrieb Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz: Hello, I noticed now that: \starttext \startsection[ownnumber=0

Re: [NTG-context] Sectioning from 0?

2013-11-05 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I noticed now that: \starttext \startsection[ownnumber=0,title=A] bla \stopsection \startsection[title=B] bla \stopsection \stoptext gives: 0 A bla 2 B - 1 should be here instead of 2; automatically bla instead of: 0 A bla 1 B bla So my

Re: [NTG-context] Sectioning from 0?

2013-11-05 Thread Wolfgang Schuster
Am 05.11.2013 um 13:22 schrieb Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz: Hello, I noticed now that: \starttext \startsection[ownnumber=0,title=A] bla \stopsection \startsection[title=B] bla \stopsection \stoptext gives: 0 A bla 2

Re: [NTG-context] reference error

2013-11-04 Thread Hans Hagen
of references \starttext \startsection [title=Test 1, reference=ref 1] \stopsection \startsection [title=Test 2, reference={ref 2}]\stopsection \startsection [title=Test 3, reference= {ref 3}] \stopsection \startsection [title=Test 4, reference={ref 4

Re: [NTG-context] Breaks in TOC

2013-10-07 Thread H. Özoguz
http://www.ntg.nl/pipermail/ntg-context/2013/072485.html Wolfgang Thanks Wolfgang, so I guess the key I was looking for is list. But see what happens here: \starttext \completecontent \startsection[ title={Eine sehr, sehr lange Überschrift, die auf jeden Fall irgendeine Art von Formatierung

Re: [NTG-context] Sectioning from 0?

2013-10-06 Thread Lukáš Procházka
On Fri, 04 Oct 2013 16:53:58 +0200, Mari Voipio mari.voi...@iki.fi wrote: On Fri, Oct 4, 2013 at 5:11 PM, Peter Münster pmli...@free.fr wrote: \startsection[ownnumber=123, title=A] bla \stopsubsection ? That was a typo, I guess; it should have been: \startsubsection[ownnumber=123,title

Re: [NTG-context] Sectioning from 0?

2013-10-04 Thread Peter Münster
On Fri, Oct 04 2013, Procházka Lukáš Ing. - Pontex s. r. o. wrote: \subsection[ownnumber=0]{C} Maybe \start/stop-subsection would be better for this case... But how? Did you try this: \starttext \startsection[ownnumber=123, title=A] bla \stopsubsection \stoptext ? ;) -- Peter

Re: [NTG-context] Sectioning from 0?

2013-10-04 Thread Procházka Lukáš Ing . - Pontex s . r . o .
On Fri, 04 Oct 2013 16:11:10 +0200, Peter Münster pmli...@free.fr wrote: On Fri, Oct 04 2013, Procházka Lukáš Ing. - Pontex s. r. o. wrote: \subsection[ownnumber=0]{C} Maybe \start/stop-subsection would be better for this case... But how? Did you try this: \starttext \startsection

Re: [NTG-context] Sectioning from 0?

2013-10-04 Thread Mari Voipio
On Fri, Oct 4, 2013 at 5:11 PM, Peter Münster pmli...@free.fr wrote: \startsection[ownnumber=123, title=A] bla \stopsubsection ? (They should be a pair, shouldn't they? Just in case somebody tries to cut-and-paste the code...) Mari

Re: [NTG-context] Sectioning from 0?

2013-10-04 Thread Peter Münster
On Fri, Oct 04 2013, Mari Voipio wrote: \startsection[ownnumber=123, title=A] bla \stopsubsection (They should be a pair, shouldn't they? Why should we bother? It just works... ;-)) -- Peter

[NTG-context] ownnumber and incrementing

2013-10-04 Thread Peter Münster
Hi, After using ownnumber=N, how can I continue incrementing the sectionnumbers with (N + 1) please? Example: --8---cut here---start-8--- \starttext \startsection[title=number 1] bla \stopsection \startsection[title=number 5, ownnumber=5

[NTG-context] Breaks in TOC

2013-10-01 Thread H. Özoguz
Hi there, two questions about formatting the TOC or the titles in the TOC: 1. How to formate the titles different in the text and in the TOC respectively? I only mean line breaks. E.g., see this minexample: \starttext \completecontent \startsection[ title={Eine sehr, sehr lange

[NTG-context] Mixedcolumns maximum height for vertical rule: bug?

2013-09-24 Thread Thangalin
}, aftersection={\stopStyleColumns},] \def\StylePageNumber#1{% {\inframed[ frame=off, background=color, backgroundcolor=red, width=2em, height=2em, ]{#1}}} \setuppagenumbering[location=inright,command=\StylePageNumber,] \starttext\startchapter[title=Chapter] \startsection[title

[NTG-context] outer floats on doublesided pages

2013-09-10 Thread R. Ermers
,low,high}] \setupcaption[edgefigure][number=no] \useexternalfigure[cow][./cow.pdf] \starttext \startsection[title={insight},reference=insight] \placeedgefigure[][]{}{\framed[frame=off]{\externalfigure[cow][scale=150]}} When the first volume of Donald Knuth's The Art of Computer Programming

[NTG-context] outer floats on doublesided pages

2013-09-07 Thread R. Ermers
,none,low,high}] \setupcaption[edgefigure][number=no] \useexternalfigure[cow][./cow.pdf] \starttext \startsection[title={insight},reference=insight] \placeedgefigure[][]{}{\framed[frame=off]{\externalfigure[cow][scale=150]}} When the first volume of Donald Knuth's The Art of Computer Programming

Re: [NTG-context] Different counters for titles

2013-09-03 Thread Hans Hagen
a lot going on with section heading so having a copy of the same is non trivial as one should decide what gets copied (think of all kind of references). Here's a cheat: \starttext \placelist[chapter][criterium=all] \startchapter[ownnumber=1,title=chap 1] \startsection[title=sec 1]\input

Re: [NTG-context] How to redefine \section temporaly?

2013-09-03 Thread john Culleton
if there is a way to convert the \section command of the article files into \subsection in the book. Minimal not working (but supposed to explain my problem) example: %%% article.tex \startsection[title=A first point] ... \stopsection \startsection[title=A second point] ... \stopsection %%% book.tex

Re: [NTG-context] outer floats on doublesided pages

2013-09-03 Thread R. Ermers
] \definefloat[edgefigure][figure] \setupfloat [edgefigure] [leftmargindistance=-\outercombitotal, rightmargindistance=-\outercombitotal, default={outer,none,low,high}] \setupcaption[edgefigure][number=no] \useexternalfigure[cow][./cow.pdf] \starttext \startsection[title={insight

[NTG-context] Image width in a two-column layout

2013-09-02 Thread Thangalin
}, location=global, %wfactor=fit,] \setuphead[section][ after={\startStyleColumns}, aftersection={\stopStyleColumns},] \starttext \startbodymatter \setuppagenumbering[conversion=numbers] \setcounter[userpage][1] \startchapter[ title={Chapter}, reference=sec:chapter, ] \startsection

[NTG-context] How to redefine \section temporaly?

2013-08-31 Thread Romain Diss
in the book. Minimal not working (but supposed to explain my problem) example: %%% article.tex \startsection[title=A first point] ... \stopsection \startsection[title=A second point] ... \stopsection %%% book.tex % command to make the \section of the input articles become \subsection % commands

Re: [NTG-context] How to redefine \section temporaly?

2013-08-31 Thread Hans Hagen
of the article files into \subsection in the book. Minimal not working (but supposed to explain my problem) example: %%% article.tex \startsection[title=A first point] \stopsection \startsection[title=A second point] \stopsection %%% book.tex % command to make the \section of the input

[NTG-context] outer floats on doublesided pages

2013-08-30 Thread R. Ermers
={outer,none,low,high}] \setupcaption[edgefigure][number=no] \useexternalfigure[cow][./cow.pdf] \starttext \startsection[title={insight},reference=insight] \placeedgefigure[][]{}{\framed[frame=off]{\externalfigure[cow][scale=150]}} When the first volume of Donald Knuth's The Art of Computer

Re: [NTG-context] Get rid of LuaTeX warning on duplicate destination identifier

2013-08-29 Thread Hans Hagen
] \starttext \dorecurse{4} {\startsection[title={Section #1}] \dorecurse{3}{\input knuth \par} \stopsection \page} \placeoverviewpage \stoptext ___ If your question is of interest to others as well, please

[NTG-context] Problem with horizontal space in List of Figures

2013-08-25 Thread Robert Blackstone
=yes,alternative=c] \startchapter[title={Introduction}] \input knuth \startsection[title={This is a section}] \input ward \stopsection \startplacefigure[location=here,reference=,title={A1},group=,groupsuffix=.a] {\externalfigure[dummy][height=2cm]} \stopplacefigure Some text. \startplacefigure

[NTG-context] PDF-Toc text is wrong for new \start… commands

2013-07-16 Thread Steffen Kram
Hi all, I just converted my thesis from the old \chapter format to the new \startchapter … commands, to be more flexible when defining the titles for toc etc. If you're just giving a title, e.g. \startsection[ title={my fancy section} ] bla \stopsection then the title is correctly

Re: [NTG-context] PDF-Toc text is wrong for new \start… commands

2013-07-16 Thread Steffen Kram
A similar problem occurs, when using references: \startsection[ title={my fancy section}, ] \startsubsection[title={first subsection}] \in{see}[secsub] \stopsubsection \startsubsection[ title={second subsection}, reference=secsub ] foo \stopsubsection \stopsection

Re: [NTG-context] PDF-Toc text is wrong for new \start… commands

2013-07-16 Thread luigi scarso
On Tue, Jul 16, 2013 at 10:10 AM, Steffen Kram s...@kram.io wrote: Hi all, I just converted my thesis from the old \chapter format to the new \startchapter … commands, to be more flexible when defining the titles for toc etc. If you're just giving a title, e.g. \startsection[ title={my

Re: [NTG-context] PDF-Toc text is wrong for new \start? commands

2013-07-16 Thread Andres Conrado
Have you tried formatting it this way: \startsection [title={my fancy section}] bla \stopsection Breaking before closing or after opening the square braces has always given trouble to me. Andrés Conrado Montoya El Andi andresconr...@gmail.com http://chiquitico.org

Re: [NTG-context] Possible bug with new \start ... \stop way for title, chapter, subject, etc.?

2013-06-29 Thread Wolfgang Schuster
is a modified version of the older code which uses the new MkIV mechanism to create customized head layouts which gobbles also the space for \startsection. \defineheadalternative [head:inleftmargin] [alternative=horizontal, renderingsetup=head:inleftmargin] \startsetups[head:inleftmargin

[NTG-context] mixed columns

2013-06-25 Thread Peter Münster
Hi, I have several questions concerning mixed columns. Here at first a minimal example: --8---cut here---start-8--- \useURL[test][http://www.site.com/very/long/long/long/long/long/long/long/long/url] \def\Section#1{% \startsection[title=Title] \dorecurse

[NTG-context] bad column break

2013-06-21 Thread Peter Münster
Hi, IMO, ConTeXt should start a new column *before* the section title, not *after* it: --8---cut here---start-8--- \def\Section#1{% \startsection[title=Title] \dorecurse{#1}{\dorecurse{12}{bla }} \stopsection} \starttext \startcolumns[n=2] \Section{15

Re: [NTG-context] bad column break

2013-06-21 Thread Wolfgang Schuster
Am 21.06.2013 um 15:34 schrieb Peter Münster pmli...@free.fr: Hi, IMO, ConTeXt should start a new column *before* the section title, not *after* it: --8---cut here---start-8--- \def\Section#1{% \startsection[title=Title] \dorecurse{#1

[NTG-context] Documenting \startchapter etc.

2013-06-20 Thread Gareth Jones
the Wiki. My first real contribution is the page about the new MkIV sectioning commands (http://wiki.contextgarden.net/Command/startsection and http://wiki.contextgarden.net/Titles#New_MkIV_Sectioning). Since I’m new to this and Wiki-editing, I’d appreciate it if someone more knowledgeable could

Re: [NTG-context] Documenting \startchapter etc.

2013-06-20 Thread Hans Hagen
learning, I’m going to make an effort to update the Wiki. My first real contribution is the page about the new MkIV sectioning commands (http://wiki.contextgarden.net/Command/startsection and http://wiki.contextgarden.net/Titles#New_MkIV_Sectioning). Since I’m new to this and Wiki-editing, I’d

Re: [NTG-context] \definehighlight with style=command problem

2013-05-27 Thread Alan Bowen
] \starttext \setupbar[overstrike][**foregroundcolor=cyan,color=**blue] \startsection[title={{\green green} foo {\green green}}] foo \startbar[overstrike]bar\**stopbar test \Delete{test} test \Keep{test} test \Whatever{test} test \color[red]{test \Delete

[NTG-context] header variations how?

2013-04-16 Thread Meer, H. van der
] \starttext \startchapter[title=Test] From ConTeXt Reference Manual 18 october 2012 page 210\crlf \externalfigure[headers.jpg][width=0.8\textwidth] \startsection[title=enclosing section] \setupheads[alternative=normal] \subsection{Title alternative equals normal} \setupheads[alternative=inmargin

Re: [NTG-context] header variations how?

2013-04-16 Thread Meer, H. van der
[headers.jpg][width=0.8\textwidth] \startsection[title=enclosing section] \setupheads[alternative=normal] \subsection{Title alternative equals normal} \setupheads[alternative=inmargin] \subsection{Title alternative equals inmargin} \setupheads[alternative=middle] \subsubject{Title alternative equals

Re: [NTG-context] Resetting enumeration numbers

2013-04-05 Thread Otared Kavian
On 4 avr. 2013, at 23:13, Hans Hagen pra...@wxs.nl wrote: […] \defineenumeration[test] \setupenumeration[test][way=bysection] ^ This should rather be \setupenumerations[test][way=bysection] Best regards: OK \starttext \startsection[title=one

Re: [NTG-context] Resetting enumeration numbers

2013-04-05 Thread Willi Egger
] \setupenumeration[test][way=bysection] \starttext \startsection[title=one] \starttest alpha \stoptest \starttest beta \stoptest \stopsection \startsection[title=two] \starttest alpha \stoptest \starttest beta \stoptest \stopsection \stoptext

Re: [NTG-context] Resetting enumeration numbers

2013-04-05 Thread Willi Egger
\resetnumber[problem] for my \startproblem \stopproblem enumeration. \defineenumeration[test] \setupenumeration[test][way=bysection] \starttext \startsection[title=one] \starttest alpha \stoptest \starttest beta \stoptest \stopsection \startsection

Re: [NTG-context] Resetting enumeration numbers

2013-04-04 Thread Hans Hagen
On 4/4/2013 10:45 PM, Matthias Weber wrote: This might not be the best way to do it, but when I need it, I use \resetnumber[problem] for my \startproblem \stopproblem enumeration. \defineenumeration[test] \setupenumeration[test][way=bysection] \starttext \startsection[title=one

Re: [NTG-context] Resetting enumeration numbers

2013-04-04 Thread Hans Hagen
On 4/4/2013 10:45 PM, Matthias Weber wrote: This might not be the best way to do it, but when I need it, I use \resetnumber[problem] for my \startproblem \stopproblem enumeration. \defineenumeration[test] \setupenumeration[test][way=bysection] \starttext \startsection[title=one

[NTG-context] Including section number in reference broken

2013-03-17 Thread Steffen Wolfrum
] \setuphead [sectionconversionset=myset] \setuphead [subsection] [sectionsegments=subsection] \starttext \startsection [title=Foo] \startsubsection [title=Bar, reference=bar] \stopsubsection \in{subsection}[bar] \stopsection \stoptext

Re: [NTG-context] Include section number in reference

2013-03-16 Thread Steffen Wolfrum
] \setuphead [sectionconversionset=myset] \setuphead [subsection] [sectionsegments=subsection] \setupreferencestructureprefix[default][prefixsegments=1:*] \startsection [title=Foo] \startsubsection [title=Bar, reference=bar] \stopsubsection \in{subsection}[bar] \stopsection

Re: [NTG-context] Line break in header

2012-11-27 Thread Wolfgang Schuster
[][\headerframed{\getmarking[section]}] [][] A better solution is to provide a shorter text with the “marking” key from \startsection. Wolfgang ___ If your question is of interest to others as well, please add

Re: [NTG-context] Line break in header

2012-11-27 Thread luigi scarso
line break not possible.} \dorecurse{100}{\input knuth } \stoptext There is a macro to make a shortert title, but a shorter text with the “marking” key from \startsection is better, of course ___ If your question

Re: [NTG-context] Line break in header

2012-11-27 Thread Wolfgang Schuster
][frame=off,width=.45\textwidth,align=normal,offset=0pt,location=bottom] \setupheadertexts [][\headerframed{\getmarking[section]}] [][] There is a macro to make a shortert title, but a shorter text with the “marking” key from \startsection is better, of course No need for a macro, it’s available

[NTG-context] Line break in header

2012-11-27 Thread H. Özoguz
Am 27.11.2012 10:36, schrieb ntg-context-requ...@ntg.nl: A better solution is to provide a shorter text with the ?marking? key from \startsection. Thanks Wolfgang and Luigi, I did not know that, that is of course the easiest and best solution

Re: [NTG-context] Symbols

2012-11-21 Thread Hans Hagen
but nothing surprises me as these fonts have a history of instability.) (Copied from an upcoming font manual:) \startsection[title=Unicoding] Nowadays we will mostly use fonts that ship with a \UNICODE\ aware encoding. And in \CONTEXT, even if we use a \TYPEONE\ font, it gets mapped onto \UNICODE

Re: [NTG-context] Symbols

2012-11-21 Thread Willi Egger
font manual:) \startsection[title=Unicoding] Nowadays we will mostly use fonts that ship with a \UNICODE\ aware encoding. And in \CONTEXT, even if we use a \TYPEONE\ font, it gets mapped onto \UNICODE. However, there are some exceptions, for instance the Zapf Dingbats in \TYPEONE\ format

[NTG-context] Resetting numbers in section header

2012-11-13 Thread Otared Kavian
{Section 1} \input ward \startsection[title={Section 1 again},resetnumber=yes] % Here I want again the number 1 \input ward \stopsection \setuphead[section][number=yes] \section{Section 3} \input ward \startsection[title={Section with no number},number=no] % Here I don't want numbers \input ward

Re: [NTG-context] Resetting numbers in section header

2012-11-13 Thread luigi scarso
a look at the following example and give a hint? \starttext \section{Section 1} \input ward \startsection[title={Section 1 again},resetnumber=yes] % Here I want again the number 1 \input ward \stopsection \setuphead[section][number=yes] \section{Section 3} \input ward \startsection

Re: [NTG-context] Resetting numbers in section header

2012-11-13 Thread Otared Kavian
On 13 nov. 2012, at 11:48, luigi scarso luigi.sca...@gmail.com wrote: Hm , is it save to mix \section and \startsection ..\stopsection ? -- luigi Hi Luigi, Thanks for your attention, but the fact that \section and \start-\stop-section is used is of no importance regarding the way I

Re: [NTG-context] Resetting numbers in section header

2012-11-13 Thread luigi scarso
On Tue, Nov 13, 2012 at 1:12 PM, Otared Kavian ota...@gmail.com wrote: On 13 nov. 2012, at 11:48, luigi scarso luigi.sca...@gmail.com wrote: Hm , is it save to mix \section and \startsection ..\stopsection ? -- luigi Hi Luigi, Thanks for your attention, but the fact

Re: [NTG-context] Resetting numbers in section header

2012-11-13 Thread Otared Kavian
Thanks Luigi! Grazie mille… That's exactly what I was seeking! Best regards: OK On 13 nov. 2012, at 13:54, luigi scarso luigi.sca...@gmail.com wrote: […] Some help at http://wiki.contextgarden.net/Titles \starttext \startsection[title={Section 1 }] \input ward \stopsection

Re: [NTG-context] \chapter{} vs \startchapter..\stopchapter

2012-11-09 Thread luigi scarso
to using one method or the other? \startsection.. \stopsection: tagged pdf. See http://wiki.contextgarden.net/Epub Also \startchapter[title=mytitle1] ... \stopchapter Foo \startchapter[title=mytitle2] ... \stopchapter From a structural point of view, Foo is outside the chapters \chapter

Re: [NTG-context] Highlight current chapter in list

2012-11-09 Thread Sietse Brouwer
/definelistalternative. I have taken the lazy liberty of redirecting Command/currentlistentrylocation Command/structureheadlocation Command/currentlistentrynumber etc to that page for the now, so that they at least appear in the list of commands. --Sietse \starttext \startsection [title=alpha

Re: [NTG-context] \chapter{} vs \startchapter..\stopchapter

2012-11-09 Thread Bill Meahan
=mytitle, ownnumber=N ..] blah \stopchapter Is there any difference or advantage/disadvatage to using one method or the other? \startsection.. \stopsection: tagged pdf. See http://wiki.contextgarden.net/Epub I don't quite understand the difference between tagged pdf and what you get

Re: [NTG-context] \chapter{} vs \startchapter..\stopchapter

2012-11-09 Thread luigi scarso
there are two different ways of handling a chapter: The traditional \chapter{mytitle} \startchapter[title=mytitle, ownnumber=N ..] blah \stopchapter Is there any difference or advantage/disadvatage to using one method or the other? \startsection.. \stopsection: tagged pdf

Re: [NTG-context] setuphead and newline

2012-10-25 Thread Marco Patzer
] \headsetupspacing \startframedtext [offset=none, frame=off] \headnumbercontent\\ \headtextcontent \stopframedtext \stopsetups \setuphead [section] [alternative=mine] \starttext \startsection [title=FooBar] \stopsection \stoptext Marco

Re: [NTG-context] setuphead and newline

2012-10-25 Thread Wolfgang
] [renderingsetup=mine] \startsetups [mine] \headsetupspacing \startframedtext [offset=none, frame=off] \headnumbercontent\\ \headtextcontent \stopframedtext \stopsetups \setuphead [section] [alternative=mine] \starttext \startsection [title=FooBar] \stopsection \stoptext Marco

Re: [NTG-context] counter reseting at every heading

2012-10-01 Thread Wolfgang Schuster
but they are helpful when you want endnotes end the end of each chapter etc. When you have a simple structure in your document you can use \startsectionlevel instead of \startchapter, \startsection etc. for your headings because the command switches always to the next heading (chapter - section - subsection

Re: [NTG-context] Draft version of document

2012-08-08 Thread Sietse Brouwer
. Can you tell me if the below is correct? New feature 1: previously we could only do \startplacefigure[reference=fig:mill, title={A Mill}] or \startsection[reference=sec:sheep, title={The Sheep}] but now we can do \startplacefigure[reference=fig:mill, title={A Mill}][resource=mill] or \startsection

Re: [NTG-context] Draft version of document

2012-08-08 Thread Wolfgang Schuster
do \startplacefigure[reference=fig:mill, title={A Mill}] or \startsection[reference=sec:sheep, title={The Sheep}] but now we can do \startplacefigure[reference=fig:mill, title={A Mill}][resource=mill] or \startsection[reference=sec:sheep, title={The Sheep}][mykey=myvalue] Nothing is done

Re: [NTG-context] Marking a textfragment for later reference

2012-08-06 Thread Robert Blackstone
with, for instance (See discussion on page xx)? Hi Robert, \starttext See \in{section}[sec:foo] on \at{page}[sec:foo] or the text on \at{page}[ref:a]. \page \startsection [title=Foo, reference=sec:foo] \stopsection \page Some text\reference[ref:a] \stoptext Thank you Marco. Another

Re: [NTG-context] Marking a textfragment for later reference

2012-08-05 Thread Marco Patzer
Hi Robert, \starttext See \in{section}[sec:foo] on \at{page}[sec:foo] or the text on \at{page}[ref:a]. \page \startsection [title=Foo, reference=sec:foo] \stopsection \page Some text\reference[ref:a] \stoptext Marco

[NTG-context] Local TOC after each chapter title (was: Re: Need help)

2012-07-18 Thread Marco
”, TOC is not centred, etc. I want a local TOC after each chapter title. How about this: \setuphead [chapter] [after=\placecontent] \starttext \startchapter [title=Foo] \startsection [title=First A] \input knuth \stopsection \startsection [title=First B] \input knuth

[NTG-context] two more bugs in latest

2012-07-10 Thread Thomas A. Schmitz
[sectionnumber]} -- \userpagenumber] \setuphead [section] [page=yes] \setupinteraction [state=start] \placebookmarks [section] [all] \starttext \startsection [title=First Section] \dorecurse{10}{\input knuth \par} \stopsection \startsection [title=Second Section] \dorecurse{10}{\input knuth \par

Re: [NTG-context] beta

2012-07-09 Thread Philipp Gesang
: ··· \setuphead [section] [ page=yes, header=sectiontext, ] \definetext [sectiontext] [header] [foo] [bar] \starttext \startsection[title=Foo] \input dawkins \stopsection \stoptext \endinput ··· But I

Re: [NTG-context] beta

2012-07-09 Thread Hans Hagen
example: ··· \setuphead [section] [ page=yes, header=sectiontext, ] \definetext [sectiontext] [header] [foo] [bar] \starttext \startsection[title=Foo] \input dawkins \stopsection \stoptext \endinput

Re: [NTG-context] clutter with \start and \stop

2012-07-05 Thread Rogers, Michael K
'if not first section then /sectionsection else section' and add if in_a_section then /section' when \stoptext is reached. Hm, consider this \section{One} \input knuth Text \section{Two} \input knuth and \startsection{One} \input knuth \stopsection Text \startsection{Two} \input knuth

Re: [NTG-context] clutter with \start and \stop

2012-07-05 Thread luigi scarso
\startsection the recommended method for the future and needed for XML output? XML documents should form a tree, so a structure like \startA % A \startB % B \stopA % /A \stopB % /B won't translate to XML. Grouping in TeX follows the same restrictions, and \start... and \stop... behave

Re: [NTG-context] clutter with \start and \stop

2012-07-04 Thread Hans Hagen
On 4-7-2012 00:51, Peter Münster wrote: Hi, Say I want Tufte in 2 columns and Knuth in 1 column: --8---cut here---start-8--- \starttext \startcolumns[n=2] \startsection[title=Tufte] \input tufte \stopsection \startsection[title=Tufte and Knuth

Re: [NTG-context] clutter with \start and \stop

2012-07-04 Thread Peter Münster
On Wed, Jul 04 2012, Hans Hagen wrote: no, mixing this way is asking for troubles, if not now, than maybe in the future just use \section Yes, but isn't \startsection the recommended method for the future and needed for XML output? -- Peter

Re: [NTG-context] clutter with \start and \stop

2012-07-04 Thread Hans Hagen
On 4-7-2012 22:29, Peter Münster wrote: On Wed, Jul 04 2012, Hans Hagen wrote: no, mixing this way is asking for troubles, if not now, than maybe in the future just use \section Yes, but isn't \startsection the recommended method for the future and needed for XML output? Indeed

Re: [NTG-context] clutter with \start and \stop

2012-07-04 Thread Rogers, Michael K
On Jul 4, 2012, at 1:29 PM, Peter Münster wrote: On Wed, Jul 04 2012, Hans Hagen wrote: no, mixing this way is asking for troubles, if not now, than maybe in the future just use \section Yes, but isn't \startsection the recommended method for the future and needed for XML output? XML

Re: [NTG-context] clutter with \start and \stop

2012-07-04 Thread luigi scarso
if in_a_section then /section' when \stoptext is reached. Hm, consider this \section{One} \input knuth Text \section{Two} \input knuth and \startsection{One} \input knuth \stopsection Text \startsection{Two} \input knuth \stopsection In the last one it's clear that Text is not in the section One

[NTG-context] clutter with \start and \stop

2012-07-03 Thread Peter Münster
Hi, Say I want Tufte in 2 columns and Knuth in 1 column: --8---cut here---start-8--- \starttext \startcolumns[n=2] \startsection[title=Tufte] \input tufte \stopsection \startsection[title=Tufte and Knuth] \input tufte \stopcolumns \input

Re: [NTG-context] itemize in two columns and pagebreaks

2012-06-29 Thread Marcin Borkowski
={}] \startitem \math{10} \stopitem \startitem \math{77} \stopitem \stopitemize \stopitem \stopexercises \stopchapter \startchapter[title={Kombinatoryczne gry symetryczne}] \stopchapter \startchapter[title={Przykładowe gry}] \startsection[title={Zakreśl do piÄ

Re: [NTG-context] extracting word count from a *.words file

2012-04-20 Thread Marco
{% \dosingleempty\dowordcount} \def\dowordcount[#1]{% \ctxlua{userdata.wordcount(#1)}} \starttext % Set up the word count \ctxlua{languages.words.threshold=2} \setupspellchecking [state=start, method=2] \setupspellchecking [list=foo] \startsection [title=Foo] Foo Bar \stopsection

<    1   2   3   4   5   6   7   >