Re: [NTG-context] marginal heads as standard option?

2016-10-26 Thread Hans Hagen
" key that automatically places the head on the margin? I mean, not only the number, but the whole title. Probably this option should allow the user to set head in the inner, outer, left and right margins. I know that it should be possible with an extra command, but consider that "r

[NTG-context] marginal heads as standard option?

2016-10-25 Thread Pablo Rodriguez
Hans, I have the following sample: \setuphead[section][alternative=margin] \starttext \section{afeasdf} \input knuth \section{afeasfdf} \input zapf \stoptext Would it be possible to have value to the "alternative" key that automatically places the head on

Re: [NTG-context] Mysterious overfull box

2016-10-22 Thread Henri Menke
Pff, just use \startalignment[flushright,broad]. Sorry for making noise. On 10/22/2016 02:41 PM, Henri Menke wrote: > Dear list, > > I want to typeset a letter head flush right. Therefore I used the > \start...\stopalignment with the option flushright. > > \starttext

[NTG-context] Mysterious overfull box

2016-10-22 Thread Henri Menke
Dear list, I want to typeset a letter head flush right. Therefore I used the \start...\stopalignment with the option flushright. \starttext \startalignment[flushright] Why is this hbox underfull? \stopalignment \stoptext However, this gives me Underfull \hbox (badness 1) in paragraph

Re: [NTG-context] stoptabulate undefined control sequence when used with placetable

2016-09-28 Thread Jan U. Hasecke
Am 28.09.2016 um 08:58 schrieb Wolfgang Schuster: > It’s a tabulate bug: > http://www.mail-archive.com/ntg-context%40ntg.nl/msg83290.html Argh, there was a voice in my head telling me that I've seen something about this. I should have browsed through my mails before making noise here. So

[NTG-context] Detecting content out of print/page area ?

2016-08-18 Thread josephcanedo
(partially or even worse totally) the print/page area. If not, could the approach of using a lua function to inspect nodes after shipouts task could possibly work (although not very easy to implement maybe) : local report_check = logs.reporter("user", "check") function user

[NTG-context] \currentheadnumber does not work

2016-07-09 Thread Fabrice Couvreur
Hello, In this command, I have two problems : - \currentheadnumber does not work - the chapter number appears in black thank you, Fabrice \setuppagenumbering[location=footer] \startuseMPgraphic{head} pickup pencircle scaled 1mm ; drawoptions(withcolor lightgray) ; fill unitsquare scaled

Re: [NTG-context] Equivalent in ConTeXt mkiv for LaTeX's picture environment?

2016-06-26 Thread Wolfgang Schuster
figure[cow][width=\textwidth]} \position(1.5,2){\color[green]{HEAD}} \position(10,6.5){\color[red]{UDDER}} \stoppositioning \stoptext Wolfgang ___ If your question is of interest to others as well, please add an

Re: [NTG-context] different section head for appendices

2016-06-24 Thread Wolfgang Schuster
Pablo Rodriguez 24. Juni 2016 um 17:38 Dear list, I have the following command: \setuphead[section][sectionsegments={chapter:section}] Is there a way to have a different numbering scheme for the appendix? I thought that the following command might work:

[NTG-context] different section head for appendices

2016-06-24 Thread Pablo Rodriguez
Dear list, I have the following command: \setuphead[section][sectionsegments={chapter:section}] Is there a way to have a different numbering scheme for the appendix? I thought that the following command might work: \setuphead[appendix:section][sectionsegments={section}] Many thanks for

[NTG-context] [NTG-ConTeXt] Wrong order of sections and subsections

2016-06-18 Thread Marcus Vinicius Mesquita
Dear List In the wiki, http://wiki.contextgarden.net/Titles, there is a MWE of how to flush section head data without typesetting it in the text. But then \placelist gives a wrong order of sections and subsections: 1 First section 1.1 First subsection 2 Second section 1.2 Second

Re: [NTG-context] Orphans and widows for specific paragraph groups

2016-06-17 Thread Aditya Mahajan
uccess with the MWE I posted earlier. Try as a might, I cannot seem to keep the paragraph head "{\ss\tfc English (Grade 12)}" and the hairline together. I can, however, keep the hairline and the following lorem text together, but I need all three elements to float as a group: the paragraph

Re: [NTG-context] Orphans and widows for specific paragraph groups

2016-06-17 Thread Wolfgang Schuster
cannot seem to keep the paragraph head "{\ss\tfc English (Grade 12)}" and the hairline together. I can, however, keep the hairline and the following lorem text together, but I need all three elements to float as a group: the paragraph header, hairline, and paragraph body. Would

Re: [NTG-context] Orphans and widows for specific paragraph groups

2016-06-17 Thread Pavneet Arora
I tried to use Aditya's suggestion (which was for Natural Tables) to keep paragraphs on the same page: \noindent{\blank[samepage]} but I don't seem to have much success with the MWE I posted earlier. Try as a might, I cannot seem to keep the paragraph head "{\ss\tfc English (Gra

Re: [NTG-context] [OT] Full-width justification (xkcd)

2016-05-09 Thread Hans Hagen
reply. And it is a nice teaching opportunity, so we plan to get back on this topic during the upcoming ConTeXt meeting in Kalenberg. Luigi: metapost ,head-body-tail or tail-body-head for the filler, lenght of the snake node programming...not bad. I could be useful when one has numbers, and wants to be

Re: [NTG-context] [OT] Full-width justification (xkcd)

2016-05-09 Thread Taco Hoekwater
ty, so we plan to get back on this topic during the upcoming ConTeXt meeting in Kalenberg. > Luigi: > metapost ,head-body-tail or tail-body-head for the filler, lenght of the snake > node programming...not bad. > I could be useful when one has numbers, and wants to be sure that nobody >

Re: [NTG-context] [OT] Full-width justification (xkcd)

2016-05-09 Thread luigi scarso
;> > >> > >> PS: I guess that ConTeXt still lacks support for fillers and > >> > >> \startalign[snakes] > >> ... > >> \stopalign > > > > > > not to hard to implement but also not that high my list to demo it > > Wasn't in obv

Re: [NTG-context] RTL \definedescriptions

2016-05-01 Thread Mohammad Hossein Bateni
he wiki, apparently the stable version from texlive 2015, > does certain things differently. When using alternative=serried, the last > line of the paragraph has incorrect alignment. This is not the case in the > beta version. > > On the other hand, with bidi algorithm turned on, the

Re: [NTG-context] RTL \definedescriptions

2016-05-01 Thread Mohammad Hossein Bateni
alignment. This is not the case in the beta version. On the other hand, with bidi algorithm turned on, the wiki context places the head on the right if I use alternative=top, only when the text is in Persian. In the beta, the situation is more stable but incorrect: it places the head on the left-hand side no m

[NTG-context] RTL \definedescriptions

2016-04-28 Thread Mohammad Hossein Bateni
parameters in the LTR setting and then the same come in the RTL environment. In the following I use alt instead of alternative. Here are the issues I noticed: 1) Why isn't the head text consistently mirrored in the RTL environment? It happens only in alt=serried. 2) Option hang=2 produces a strange

Re: [NTG-context] Move textrule closer to head

2016-04-13 Thread Tom Harrop
On 13/04/16 18:47, Pablo Rodriguez wrote: Hi Tom, how about another rule? (From http://wiki.contextgarden.net/Titles#Titling_Style.) \setuphead[subsubsection] [after=\hrule\blank] I hope it helps, Pablo Ahh, it's perfect. I missed that page of the wiki! Thank you.

Re: [NTG-context] Move textrule closer to head

2016-04-13 Thread Pablo Rodriguez
On 04/13/2016 06:10 PM, Tom Harrop wrote: > Hello, > > I'm a ConTeXt beginner. I'm working on a document where I would like a > textrule under my subsubsection headings. If I use after=\textrule, the > placement of the textrule is too far from the heading, and I haven't > found a way to move

[NTG-context] Move textrule closer to head

2016-04-13 Thread Tom Harrop
Hello, I'm a ConTeXt beginner. I'm working on a document where I would like a textrule under my subsubsection headings. If I use after=\textrule, the placement of the textrule is too far from the heading, and I haven't found a way to move it closer to the heading either with \setuphead or

Re: [NTG-context] RTL section heads

2016-04-13 Thread Hans Hagen
rset[dashsep][-,-,-,-] \setuphead[section][sectionseparatorset=dashsep] On Mon, Apr 11, 2016 at 10:46 AM, Hans Hagen <pra...@wxs.nl> wrote: On 4/11/2016 4:25 AM, Mohammad Hossein Bateni wrote: Hans & Wolfgang, Do you have suggestions here? How can I get the behavior I want for the section

Re: [NTG-context] RTL section heads

2016-04-12 Thread Mohammad Hossein Bateni
tpersiandecimals][\leftpersiandecimals] > > \setuphead[chapter,title,section,subject] > [conversion=leftpersiandecimals,numberstyle=\righttoleft] > > > > \defineseparatorset[dashsep][-,-,-,-] > > \setuphead[section][sectionseparatorset=dashsep] > > > > On

Re: [NTG-context] RTL section heads

2016-04-12 Thread Otared Kavian
head[chapter,title,section,subject] > [conversion=leftpersiandecimals,numberstyle=\righttoleft] > > \defineseparatorset[dashsep][-,-,-,-] > \setuphead[section][sectionseparatorset=dashsep] > > On Mon, Apr 11, 2016 at 10:46 AM, Hans Hagen <pra...@wxs.nl> wrote: > On 4/11/2016 4:2

Re: [NTG-context] RTL section heads

2016-04-12 Thread Mohammad Hossein Bateni
l> wrote: > >> On 4/11/2016 4:25 AM, Mohammad Hossein Bateni wrote: >> >>> Hans & Wolfgang, >>> >>> Do you have suggestions here? How can I get the behavior I want for the >>> section head numbers? >>> >>> In fact, the following

Re: [NTG-context] docbook(5) to context conversion

2016-04-12 Thread Jan Tosovsky
k/docbook5 to context? ... > > > > > > > > * dbcontext - part of dblatex, abandoned ~10 years ago > > > > > > I used this way some time ago, but it required tweaks in > > > approx 10 xslt files to make it compatible with Context MkIV >

Re: [NTG-context] RTL section heads

2016-04-11 Thread Mohammad Hossein Bateni
=dashsep] On Mon, Apr 11, 2016 at 10:46 AM, Hans Hagen <pra...@wxs.nl> wrote: > On 4/11/2016 4:25 AM, Mohammad Hossein Bateni wrote: > >> Hans & Wolfgang, >> >> Do you have suggestions here? How can I get the behavior I want for the >> section head n

Re: [NTG-context] RTL section heads

2016-04-11 Thread Hans Hagen
On 4/11/2016 4:25 AM, Mohammad Hossein Bateni wrote: Hans & Wolfgang, Do you have suggestions here? How can I get the behavior I want for the section head numbers? In fact, the following may be quite relevant. \usemodule[simplefonts] \setmainfont[ALM Fixed][features=arabic,range=ar

Re: [NTG-context] RTL section heads

2016-04-10 Thread Mohammad Hossein Bateni
Hans & Wolfgang, Do you have suggestions here? How can I get the behavior I want for the section head numbers? In fact, the following may be quite relevant. \usemodule[simplefonts] \setmainfont[ALM Fixed][features=arabic,range=arabic] \setupdirections[bidi=global,method=default] \setupa

Re: [NTG-context] unwanted head behavior

2016-04-09 Thread Zhichu Chen
Dear Hans, On 04/07/2016 06:31 PM, Hans Hagen wrote: \def\currentsectioncountervalue {\clf_depthnumber\numexpr\thenamedheadlevel\currenthead\relax} %def\previoussectioncountervalue{\clf_depthnumber\numexpr\thenamedheadlevel\currenthead+\minusone\relax}

[NTG-context] RTL section heads

2016-04-08 Thread Mohammad Hossein Bateni
conversion[leftnumbers][\leftnumbers] \setuphead[chapter,title,section,subject] [conversion=leftnumbers] \starttext \placecontent \chapter{نمونه} \dorecurse{10}{\section{متن}} \stoptext I guess the solution is to get the entire section head number string (e.g., 1.10) to have RTL direction, however, each

Re: [NTG-context] unwanted head behavior

2016-04-07 Thread Hans Hagen
On 4/7/2016 8:28 AM, Zhichu Chen wrote: If I understand correctly, the "continue=yes" key prevents a new page generated by a lower-level structure, e.g., section, following a higher-level structure, e.g., chapter. Then why the checking is so complex in strc-sec.mkiv:

Re: [NTG-context] unwanted head behavior

2016-04-07 Thread Hans Hagen
On 4/7/2016 5:42 AM, Zhichu Chen wrote: Hi, I found the empty line is due to the definition of \strc_rendering_place_head_empty in strc-ren.mkiv: \unexpanded\def\strc_rendering_place_head_empty {\hbox \headreferenceattributes {\getheadsyncs}} The

Re: [NTG-context] unwanted head behavior

2016-04-07 Thread Hans Hagen
On 4/7/2016 8:28 AM, Zhichu Chen wrote: PS: irrelevant to my problem, but I just wish ConTeXt to be perfect. So: 1, line 1060, file strc-sec.mkiv: \global\setfalse\c_strc_rendering_continue shouldn't this line be "\global\setfalse\c_strc_rendering_continuous"? yes (but it's not used anywhere)

Re: [NTG-context] unwanted head behavior

2016-04-07 Thread Zhichu Chen
If I understand correctly, the "continue=yes" key prevents a new page generated by a lower-level structure, e.g., section, following a higher-level structure, e.g., chapter. Then why the checking is so complex in strc-sec.mkiv: ==

Re: [NTG-context] unwanted head behavior

2016-04-06 Thread Zhichu Chen
Hi, I found the empty line is due to the definition of \strc_rendering_place_head_empty in strc-ren.mkiv: \unexpanded\def\strc_rendering_place_head_empty {\hbox \headreferenceattributes {\getheadsyncs}} The definition in strc-sec.mkiv works fine

[NTG-context] unwanted head behavior

2016-04-04 Thread Zhichu Chen
Dear Hans and Wolfgang, The following code generates a pdf that I cannot understand. 1. Although "placehead" is set to "no," the \part macro still makes an empty line. 2. The first \chapter does not open a new page, but if we switch the first \title

Re: [NTG-context] Length range control of the last line of paragraph

2016-03-25 Thread Hans Hagen
line. One cannot expect to find good solutions when the solutionspace is too small. \startluacode function builders.paragraphs.constructors.methods.crap(head) local needed = 2 * tex.parindent if needed > 0 then local maximum = tex.hsize local cycles = 500 lo

Re: [NTG-context] docbook(5) to context conversion

2016-02-23 Thread Hans Hagen
time ago, but it required tweaks in approx 10 xslt files to make it compatible with Context MkIV Cool. Any chance you could post your amended xslt files to give a newbie a head start? it's probably not too complicated to implement a reasonable subset of docbook using the built in parser (i just

Re: [NTG-context] docbook(5) to context conversion

2016-02-23 Thread David Nebauer
xslt files to make it compatible with Context MkIV Cool. Any chance you could post your amended xslt files to give a newbie a head start? Some general tweaks were sent to the original author who promised merging them. He also mentioned planned update in the near future... Since

Re: [NTG-context] Vim snippets

2016-02-22 Thread Aditya Mahajan
la \\startalign".st.et."\\stopalign \\stopformula".si.ei " Stepping exec "Snippet Step \\StartStep ".st. "step".et."\\StopStep".si.ei " Slides exec "Snippet head \\starthead {".st."head".et."}\\startindented".st

Re: [NTG-context] rowdistance in xtables

2016-02-13 Thread Wolfgang Schuster
crease the height of the cells in the header. \starttext \startxtable%[frame=off] \startxtablehead \startxrow[boffset=1ex] \startxcell Head \stopxcell \stopxrow \stopxtablehead \startxtablebody \startxrow \star

Re: [NTG-context] which is the best/right element for elements in cover and title pages?

2016-01-25 Thread Otared Kavian
sc \TheAuthor}{\\}} > >\vfill >\PublishingDate >\vfill >\Publisher >\stoptitlepagemakeup > > I want to be abole to customize this. But I don’t know which is the > right element for those items. > > I mean, a head would be meanin

[NTG-context] which is the best/right element for elements in cover and title pages?

2016-01-25 Thread Pablo Rodriguez
\vfill \Publisher \stoptitlepagemakeup I want to be abole to customize this. But I don’t know which is the right element for those items. I mean, a head would be meaningless here for book title, subtitle, author, publisher and release date. They appear only once in the document. Which

Re: [NTG-context] Maybe simply, i don't know

2016-01-07 Thread Wolfgang Schuster
=empty] \setupheadertexts[1.1 second] \starttext \chapter{first} \dorecurse{10}{\input knuth } I have one question: why are the pagenumbers in the footer, iwanted them in the head. With this line \setuppagenumbering[location={footer,right},...] you told ConTeXt to put the pagenumber in the footer. Wo

Re: [NTG-context] Maybe simply, i don't know

2016-01-07 Thread Ursula Hermann
rttext \chapter{first} \dorecurse{10}{\input knuth } I have one question: why are the pagenumbers in the footer, iwanted them in the head. With this line \setuppagenumbering[location={footer,right},...] you told ConTeXt to put the pagenumber in the footer. Wo

Re: [NTG-context] Footnote rules for bidi document

2016-01-04 Thread Hans Hagen
efined in strc-not.mkvi <http://repo.or.cz/w/context.git/blob/HEAD:/tex/context/base/strc-not.mkvi> and still don't work with "% macros=mkvi" in the first line of the input file and when the file has extension mkvi. Is this some is

Re: [NTG-context] Footnote rules for bidi document

2016-01-03 Thread Hans Hagen
l2r] lefttoright text\afootnote{\input ward} \input tufte \stopalignment \stoptext I see these defined in strc-not.mkvi <http://repo.or.cz/w/context.git/blob/HEAD:/tex/context/base/strc-not.mkvi> and still don't work with "% macros=mkvi" in the first

Re: [NTG-context] Footnote rules for bidi document

2016-01-03 Thread Mohammad Hossein Bateni
t;> >> \startalignment[r2l] >> righttoleft text\afootnote{\input ward } >> \input tufte >> \stopalignment >> >> \startalignment[l2r] >> lefttoright text\afootnote{\input ward} >> \input tufte >> \stopalignment >&g

[NTG-context] Footnote rules for bidi document

2016-01-03 Thread Mohammad Hossein Bateni
ment[l2r] lefttoright text\afootnote{\input ward} \input tufte \stopalignment \stoptext I see these defined in strc-not.mkvi <http://repo.or.cz/w/context.git/blob/HEAD:/tex/context/base/strc-not.mkvi> and still don't work with "% macros=mkvi" in the first line of the input fi

Re: [NTG-context] Footnote rules for bidi document

2016-01-03 Thread Mohammad Hossein Bateni
ule=right] > > \startalignment[r2l] > righttoleft text\afootnote{\input ward } > \input tufte > \stopalignment > > \startalignment[l2r] > lefttoright text\afootnote{\input ward} > \input tufte > \stopalignment > > \stoptext > > I see these defined in strc

Re: [NTG-context] "Trial typesetting" in ConTeXt / lua ?

2015-11-19 Thread Hans Hagen
(...) local list = nodes.typesetters.tonodes(...) local head = nodes.processors.hpack_filter(list) local hbox = node.hpack(head) return hbox end end function userdata.typeset(text) node.write((nodes.typesetters.tohbox(text))) end

Re: [NTG-context] "Trial typesetting" in ConTeXt / lua ?

2015-11-19 Thread josephcanedo
has no ligatures/ no glyph > substitution/ kern use this ... \startluacode userdata = userdata or { } if not nodes.typesetters.tohbox then function nodes.typesetters.tohbox(...) local list = nodes.typesetters.tonodes(...) loca

Re: [NTG-context] "Trial typesetting" in ConTeXt / lua ?

2015-11-19 Thread Hans Hagen
itution/ kern use this ... \startluacode userdata = userdata or { } if not nodes.typesetters.tohbox then function nodes.typesetters.tohbox(...) local list = nodes.typesetters.tonodes(...) local head = nodes.processors.hpack_filter(list)

Re: [NTG-context] "Trial typesetting" in ConTeXt / lua ?

2015-11-18 Thread josephcanedo
lers.characters(head) function in ConTeXt (as it seems that > node.ligaturing(head) and node.kerning(head) do not seem to do anything). > > It seems to work fine (ligatures and font features) expect the kerning. > Does someone know how to perform the kerning as well ? I'm not sure

Re: [NTG-context] "Trial typesetting" in ConTeXt / lua ?

2015-11-17 Thread Hans Hagen
On 11/17/2015 9:15 AM, josephcan...@gmail.com wrote: Hello, I was wondering if someone could have some hints on this question, anyway, I found the function mknodes() from luaTeX wiki and nodes.handlers.characters(head) function in ConTeXt (as it seems that node.ligaturing(head) and node.kerning

Re: [NTG-context] "Trial typesetting" in ConTeXt / lua ?

2015-11-17 Thread josephcanedo
Hello, I was wondering if someone could have some hints on this question, anyway, I found the function mknodes() from luaTeX wiki and nodes.handlers.characters(head) function in ConTeXt (as it seems that node.ligaturing(head) and node.kerning(head) do not seem to do anything). It seems

Re: [NTG-context] "Trial typesetting" in ConTeXt / lua ?

2015-11-17 Thread josephcanedo
Just in case it is of interest (and assuming this won’t change in future versions), after digging again in lua code I replaced nodes.handlers.characters(head) with local proc = nodes.tasks.actions('processors') -- not sure finalizers tasks are needed ? head = proc(head) before passing

Re: [NTG-context] Question on how to simple numbered sections or other headings

2015-10-25 Thread josephcanedo
Yes, that’s correct. I guess command= attribute kind of replaces the “default” processing for the head ? Because when I use it the “align = center” does not seem to be taken in account. Thanks a lot Joseph Sent from Windows Mail From: Thomas A. Schmitz Sent: ‎Sunday‎, ‎October‎

[NTG-context] Fwd: \bTABLEheader used to work?

2015-10-18 Thread Henman
I found out that the command is \bTABLEhead and not \bTABLEheader, but I don't know why my saved example had ...header instead of head. Thanks. Forwarded Message Subject:\bTABLEheader used to work? Date: Sun, 18 Oct 2015 00:06:38 -0700 From: Henman <d

Re: [NTG-context] Section head without numbers, ToC with numbers

2015-10-04 Thread Aditya Mahajan
ents 1 First section 2 Second section (Untested): \setuphead[section][numbercommand=\gobbleoneargument] thanks for your answer! This comes close, but has the problem, that the section head is indented. \starttext \setuphead[section][numbercommand=\gobbleoneargument] \placelist[section] \section

Re: [NTG-context] Section head without numbers, ToC with numbers

2015-10-04 Thread Erik Margraf
t;>>> >>>> Table of Contents >>>> 1 First section >>>> 2 Second section >>>> >>>> >>>> (Untested): >>> >>> \setuphead[section][numbercommand=\gobbleoneargument] >>> >>> t

[NTG-context] Section head without numbers, ToC with numbers

2015-10-03 Thread Erik Margraf
Dear List, is it possible to achieve the following: First section Some Text Second section Some Text Table of Contents 1 First section 2 Second section I tried both: a) \setuphead[section][sectionnumber=no] b) \setupheads[sectionnumber=no] I also tried

Re: [NTG-context] Section head without numbers, ToC with numbers

2015-10-03 Thread Aditya Mahajan
On Sat, 3 Oct 2015, Erik Margraf wrote: Dear List, is it possible to achieve the following: First section Some Text Second section Some Text Table of Contents 1 First section 2 Second section (Untested): \setuphead[section][numbercommand=\gobbleoneargument] Aditya

Re: [NTG-context] \setupheadnumber and zero

2015-09-09 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... Great, thanks for the answer. Lukas On Tue, 08 Sep 2015 21:10:51 +0200, Wolfgang Schuster <schuster.wolfg...@gmail.com> wrote: Procházka Lukáš Ing. - Pontex s. r. o. <mailto:l...@pontex.cz> 29. August 2015 16:11 Hello, can a section head be generated with the numbe

Re: [NTG-context] \setupheadnumber and zero

2015-09-08 Thread Wolfgang Schuster
Procházka Lukáš Ing. - Pontex s. r. o. <mailto:l...@pontex.cz> 29. August 2015 16:11 Hello, can a section head be generated with the number 0 (or less)? Sometimes I need to prepend a section while keeping existing section head numbers... Example: \starttext \setupheadnumber[c

[NTG-context] \setupheadnumber and zero

2015-08-29 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, can a section head be generated with the number 0 (or less)? Sometimes I need to prepend a section while keeping existing section head numbers... Example: \starttext \setupheadnumber[chapter][-1] \chapter{Ch0} % Getting Ch0 instead of 0. Ch0? \chapter{Ch1} \stoptext

Re: [NTG-context] Expand a part of TOC

2015-08-24 Thread Hans Hagen
On 8/23/2015 10:17 AM, Eric Détrez wrote: hello Here is my problem : I wish to write a TOC at the beginning of each chapter (that I can do). But I want it to write every chapter and only the sections and subsections of the current chapter. Like, at the head of chapter 3 (the style

[NTG-context] Expand a part of TOC

2015-08-23 Thread Eric Détrez
hello Here is my problem : I wish to write a TOC at the beginning of each chapter (that I can do). But I want it to write every chapter and only the sections and subsections of the current chapter. Like, at the head of chapter 3 (the style is not relevant) Chapter 1

Re: [NTG-context] Colored descriptions

2015-08-03 Thread Eric Détrez
is description. But I want the head or/and the main text have colored background. Is it possible ? there was a similar discussion - see http://www.ntg.nl/pipermail/ntg-context/2015/081528.html Best regards, Lukas Thank you, I didn't fint it before. So I can't put a startxxx

Re: [NTG-context] Colored descriptions

2015-08-03 Thread Hans Hagen
On 8/3/2015 3:31 PM, Eric Détrez wrote: I wish to write a text where there are definitions, theorems, ... I wish to get a table of definitions at the end so I think the right tool is description. But I want the head or/and the main text have colored background. Is it possible ? I tried

Re: [NTG-context] footnotes when using RtL (Arabic)

2015-08-03 Thread tala...@fastmail.fm
linenotes to display the digits within individual numbers in the correct order (see below).However, when there is a line range in the linenote head, it is flipping the order of the page ranges. In the example PDF attached below, where it should read ١٥-١٦ (16-15, with the fifteen on the right and t

[NTG-context] Colored descriptions

2015-08-03 Thread Eric Détrez
I wish to write a text where there are definitions, theorems, ... I wish to get a table of definitions at the end so I think the right tool is description. But I want the head or/and the main text have colored background. Is it possible ? I tried inbetween=\startframedtext,after

Re: [NTG-context] r2l alignment and linenumbering conflict?

2015-08-03 Thread tala...@fastmail.fm
. See MWE below.With thanks,Talalp.s. The Wiki page on "Arabic and Hebrew" is out of date, instructing the use of\setcharactermirroring[1]which is clearly deprecated now in favour of \setupdirections[bidi=global]. I am happy to update the wiki page once I get my head around things. Does an

Re: [NTG-context] Colored descriptions

2015-08-03 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, On Mon, 03 Aug 2015 15:31:49 +0200, Eric Détrez i...@eric-detrez.fr wrote: I wish to write a text where there are definitions, theorems, ... I wish to get a table of definitions at the end so I think the right tool is description. But I want the head or/and the main text have colored

[NTG-context] Illegal parameter number in definition

2015-07-20 Thread juh
to typeset TEI-XML files from http://www.deutschestextarchiv.de (DTA) I ran into a problem with this XML from DTA: head hi rendition=#gZehenter Brief./hi /headlb/ phi rendition=#inS/hiie sind also mit mir darinn einig, und durch den Innhalt meiner I tried to map the rendition attribute to ConTeXt

Re: [NTG-context] Illegal parameter number in definition

2015-07-20 Thread Schmitz Thomas A.
in the future. ;-) To learn a bit more about ConTeXt I try to make an environment to typeset TEI-XML files from http://www.deutschestextarchiv.de (DTA) I ran into a problem with this XML from DTA: head hi rendition=#gZehenter Brief./hi /headlb/ phi rendition=#inS/hiie sind also mit mir darinn

[NTG-context] [Tools] ConTeXt Language Module for BBEdit, v1.0

2015-07-11 Thread Paul Mazaitis
involves a user-defined head command. For keyword support, the module loads the keyword set from the file context-keywords.txt in the Resources directory of the language module plugin. At the moment, this file is empty, and can be customized as needed (plain text, one keyword per line

Re: [NTG-context] How to implement a head like this?

2015-07-04 Thread 土卜皿
resume, I found the head like the attached file's very awesome, but I don't know how to implement it, or what elements I should use to do it? ​please any one help me, Thanks in advance! Best Regards Dillon Peng -- http://www.ousia.tk

Re: [NTG-context] How to implement a head like this?

2015-07-04 Thread Pablo Rodriguez
:00 土卜皿 pengcz.n...@gmail.com: hi, all I want to use context for writing my resume, I found the head like the attached file's very awesome, but I don't know how to implement it, or what elements I should use to do it? ​please any one help me, Thanks in advance

Re: [NTG-context] How to implement a head like this?

2015-07-04 Thread Hans Hagen
it a mp image as background Dillon 2015-07-03 22:32 GMT+08:00 土卜皿 pengcz.n...@gmail.com mailto:pengcz.n...@gmail.com: hi, all I want to use context for writing my resume, I found the head like the attached file's very awesome, but I don't know how to implement it, or what

[NTG-context] How to implement a head like this?

2015-07-03 Thread 土卜皿
hi, all I want to use context for writing my resume, I found the head like the attached file's very awesome, but I don't know how to implement it, or what elements I should use to do it? ​please any one help me, Thanks in advance! Best Regards Dillon Peng

Re: [NTG-context] How to implement a head like this?

2015-07-03 Thread 土卜皿
After reading something, I think the red area belonging to top area, but there is no definetop or like this, my understanding is right? Dillon 2015-07-03 22:32 GMT+08:00 土卜皿 pengcz.n...@gmail.com: hi, all I want to use context for writing my resume, I found the head like the attached

Re: [NTG-context] \setuphead[part] - special look

2015-06-29 Thread Procházka Lukáš Ing . - Pontex s . r . o .
it because Hans kept it only for backwards compatibility and \defineheadplacement is the better alternative. You can also use the same rendering (the content of the setups environment) for different head alternatives where you set the differences with the \defineheadalternative command. % HeadA

Re: [NTG-context] \setuphead[part] - special look

2015-06-23 Thread Wolfgang Schuster
shouldn't use it because Hans kept it only for backwards compatibility and \defineheadplacement is the better alternative. You can also use the same rendering (the content of the setups environment) for different head alternatives where you set the differences with the \defineheadalternative command

[NTG-context] Mode for footnote?

2015-06-23 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, there are many modes for various situations (http://wiki.contextgarden.net/Modes). Is there a mode to signal being inside a footnote? This would be handy for head definition: \definehead[paragraph][subsubsubject] \define\ShBlank{\doifnotmode{*footnote}{\blank}} \setuphead

Re: [NTG-context] \setuphead[part] - special look

2015-06-22 Thread Wolfgang Schuster
Procházka Lukáš Ing. - Pontex s. r. o. mailto:l...@pontex.cz 22. Juni 2015 09:35 Hello, I'm trying to \setuphead[part] to have the following features: 1. Part head to fill the whole page. 2. Part number and name to be placed (approx.) in the golden ratio of the page. 3. Page background

[NTG-context] \setuphead[part] - special look

2015-06-22 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I'm trying to \setuphead[part] to have the following features: 1. Part head to fill the whole page. 2. Part number and name to be placed (approx.) in the golden ratio of the page. 3. Page background (for the \part only!) to be colored, e.g. blue. \define[2]\MyPartCmd

Re: [NTG-context] Splitting a combination of figures (also a philosophical question)

2015-05-21 Thread Mojca Miklavec
\dontleavehmode\externalfigure[hacker] \stopxcell \stopxrow \stopxtable \stopplacefigure \stoptext Impressive. I'm still scratching my head because I don't understand the magic behind this trick (unless Hans and Wolfgang were reading my mind

Re: [NTG-context] Splitting a combination of figures (also a philosophical question)

2015-05-21 Thread Hans Hagen
\dontleavehmode\externalfigure[hacker] \stopxcell \stopxrow \stopxtable \stopplacefigure \stoptext Impressive. I'm still scratching my head because I don't understand the magic behind this trick (unless Hans and Wolfgang

[NTG-context] Placing margin notes on the left using Lua

2015-05-08 Thread Hannes Riebl
routine to distinguish odd and even pages? Thank you very much for any hints or help! Best regards Hannes Riebl make_notes = function(head) for line in node.traverse_id(node.id(hlist), head) do ... local glyph = node.new(glyph) glyph.font = font.current() glyph.lang

Re: [NTG-context] Keeping section and subsection together

2015-04-24 Thread Hans Hagen
} \subsection{Subsec} \input ward } \stoptext Is there a way to bind it with the next head (subsection) - so that 5 Sec, 5.1 Subsec (and at least one line of the following paragraph) would be together on one page? Hi Lukáš, add the following to the document preamble: \setuphead

Re: [NTG-context] Keeping section and subsection together

2015-04-24 Thread Procházka Lukáš Ing . - Pontex s . r . o .
\dorecurse{5}{ \section{Sec} \subsection{Subsec} \input ward } \stoptext Is there a way to bind it with the next head (subsection) - so that 5 Sec, 5.1 Subsec (and at least one line of the following paragraph) would be together on one page? Hi Lukáš, add the following

[NTG-context] Keeping section and subsection together

2015-04-23 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, the following sample generates section title 5 Sec as a last/solitary heading (section) on the page. \starttext \dorecurse{5}{ \section{Sec} \subsection{Subsec} \input ward } \stoptext Is there a way to bind it with the next head (subsection) - so that 5

Re: [NTG-context] Keeping section and subsection together

2015-04-23 Thread Pablo Rodriguez
} \stoptext Is there a way to bind it with the next head (subsection) - so that 5 Sec, 5.1 Subsec (and at least one line of the following paragraph) would be together on one page? Hi Lukáš, add the following to the document preamble: \setuphead[section][after={\blank[samepage,big

Re: [NTG-context] tagging heads and empty output

2015-04-10 Thread Idris Samawi Hamid ادريس سماوي حامد
2015 07:34:32 -0600, Idris Samawi Hamid ادريس سماوي حامد isha...@colostate.edu wrote: Dear gang, Two issues: 1. What is the proper way to tag heads in itemize? I do the next beta will provide item head=yes === div class=itemgroup itemize symbol-n level-1 div class=item

Re: [NTG-context] (hindi) font questions

2015-04-09 Thread Pablo Rodriguez
is 11pt Palatino, Lohit doesn't match too good, and a bold version would be nice for the chapter head. Hi Harald, as an alternative to the font proposed by Wolfgang (seems to be only available for Mac), FreeSerif may be an option (https://ftp.gnu.org/gnu/freefont/). I hope it helps, Pablo

Re: [NTG-context] (hindi) font questions

2015-04-09 Thread Wolfgang Schuster
I'm using Lohit-Devanagari. text font is 11pt Palatino, Lohit doesn't match too good, and a bold version would be nice for the chapter head. - font size: how do I define this font to get automatic/matching font sizes for both the chapter head and the title of contents ? right now I use

<    1   2   3   4   5   6   7   8   9   10   >