[NTG-context] Problems with headers using margintext alternative

2017-07-23 Thread Rik Kabel
margin and beyond the page frame. \setuppapersize [letter] [letter,oversized] \setuplayout [location={middle,middle}] \showframe \setuphead [chapter] [number=no, alternative=inmargin] \setuphead [section

Re: [NTG-context] t-vim module: math in "normal" code and background color

2017-07-18 Thread Gerion Entrup
t familiar enough with TeX or ConTeXt to get the TeX part to work, so the escapechar '°' is hardcoded at the moment. If you like the patch, this has to be fixed. Another problem, as you see in the above example, is, that vim interprets the second ')' in the startcpp section as c

Re: [NTG-context] \xmlfirst broken?

2017-07-17 Thread Hans Hagen
title a paragraph of text another paragraph of text And then we have a ConTeXt document: \startxmlsetups xml:demo:base \xmlsetsetup{#1}{*}{-} \xmlsetsetup{#1}{document|section|p}{xml:demo:*} \stopxmlsetups \xmlregisterdocumentsetup{demo}{xml:demo:base

[NTG-context] \xmlfirst broken?

2017-07-16 Thread Henri Menke
  another paragraph of text   And then we have a ConTeXt document: \startxmlsetups xml:demo:base   \xmlsetsetup{#1}{*}{-}   \xmlsetsetup{#1}{document|section|p}{xml:demo:*} \stopxmlsetups \xmlregisterdocumentsetup{demo}{xml:demo:base} \startxmlsetups xml:demo:document   \starttitle[title

Re: [NTG-context] confusing columns balancing results

2017-07-14 Thread Rik Kabel
[section][ align=normal, style=\tfa\ss, before={\blank}, after={\blank[2pt]}] No problems here with latest beta. Post a full MWE which reproduces the problem instead of snippets. \setuppapersize[A4, landscape] \setupbodyfont[8pt] \language[fr] \setupcolumns[ n=5

Re: [NTG-context] confusing columns balancing results

2017-07-13 Thread Henri Menke
  width=fit, >     rightmargindistance=0cm, >     rightmargin=0cm] >  \setuplayout[WithoutMarginnotes] > > \setuphead[section][ >     align=normal, >     style=\tfa\ss, >     before={\blank}, >     after={\blank[2pt]}] > > No problems here with latest beta

[NTG-context] confusing columns balancing results

2017-07-13 Thread Floris van Manen
, cutspace=0cm, leftmargin=0cm, leftmargindistance=0.4cm, width=fit, rightmargindistance=0cm, rightmargin=0cm] \setuplayout[WithoutMarginnotes] \setuphead[section][ align=normal, style=\tfa\ss, before={\blank}, after={\blank[2pt]}] When using balance=no the

Re: [NTG-context] next beta

2017-06-13 Thread Hans Hagen
On 6/13/2017 8:06 AM, Aditya Mahajan wrote: On Mon, 12 Jun 2017, Hans Hagen wrote: i.e. (poor mans) multiline display math Interesting. An important reference for automatic breaking of multiline display are the notes of Michael J Downes included in the documentation of breqn: see section

Re: [NTG-context] next beta

2017-06-12 Thread Aditya Mahajan
On Mon, 12 Jun 2017, Hans Hagen wrote: i.e. (poor mans) multiline display math Interesting. An important reference for automatic breaking of multiline display are the notes of Michael J Downes included in the documentation of breqn: see section 14 (page 16) of http

Re: [NTG-context] overrule italics

2017-06-04 Thread Hans Hagen
On 6/2/2017 2:45 PM, Florian Grammel wrote: I have a long text with section headers partly in italics and/or emphasis. I'd like to setup the formatting in a way that overrules these. \setuphead[section][style=\tfb\up] In LaTeX there would be \upshape/\textup -- is there an equivale

Re: [NTG-context] overrule italics

2017-06-02 Thread Florian Grammel
> >> I have a long text with section headers partly in italics and/or emphasis. >> I'd like to setup the formatting in a way that overrules these. >> >> \setuphead[section][style=\tfb\up] >> >> In LaTeX there would be \upshape/\textup -- is there an

Re: [NTG-context] overrule italics

2017-06-02 Thread Henning Hraban Ramm
Am 2017-06-02 um 12:54 schrieb Florian Grammel : > I have a long text with section headers partly in italics and/or emphasis. > I'd like to setup the formatting in a way that overrules these. > > \setuphead[section][style=\tfb\up] > > In LaTeX there would be \upshape

[NTG-context] overrule italics

2017-06-02 Thread Florian Grammel
I have a long text with section headers partly in italics and/or emphasis. I'd like to setup the formatting in a way that overrules these. \setuphead[section][style=\tfb\up] In LaTeX there would be \upshape/\textup -- is there an equivalent in ConTeXt? Thanks in advance! Fl

[NTG-context] Missing Chapter Numbers

2017-05-19 Thread Thangalin
\setuphead[chapter][number=yes,] \setuphead[section][number=no,] \setuphead[subsection][placehead=hidden,] \definehead[scenesubsection][subsection] \starttext \dorecurse{5}{ \chapter{Chapter Name} \section{Section Name} \startscenesubsection \input tufte

Re: [NTG-context] Table of content in presentation example

2017-05-13 Thread Hans Hagen
On 5/12/2017 10:08 PM, cryo shock wrote: \placecontent \placelist[chapter,section][criterium=all] by default you get a local one (you can also ask for one level up and so) - Hans

Re: [NTG-context] Table of content in presentation example

2017-05-12 Thread cryo shock
stian > > 2017-05-12 22:16 GMT+02:00 cryo shock : > >> I forgot to add that I also tried a modified \setuplist: >> >> \setuplist[subject][width=2cm,margin=2cm] >> and >> \setuplist[subject][margin=2cm] >> >> I also added the following line to the

Re: [NTG-context] Table of content in presentation example

2017-05-12 Thread cryo shock
in=2cm] > > I also added the following line to the component: > > \setupcombinedlist[content][list={chapter,subject, > subsubject,section,subsection,slide}] > > Yet the Toc page stays blank... > > 2017-05-12 22:08 GMT+02:00 cryo shock : > >> Hi guys, I downloaded a sample presen

Re: [NTG-context] Table of content in presentation example

2017-05-12 Thread cryo shock
I forgot to add that I also tried a modified \setuplist: \setuplist[subject][width=2cm,margin=2cm] and \setuplist[subject][margin=2cm] I also added the following line to the component: \setupcombinedlist[content][list={chapter,subject,subsubject,section,subsection,slide}] Yet the Toc page

Re: [NTG-context] Module for Markdown: any volunteer to make a ConTeXt interface?

2017-05-06 Thread Vít Novotný
lt-getopt are unnecessary. The `m-markdown.lua` seems like a heavily stripped-down version of lunamark. Most importantly, the parser seems to recognize no syntax extensions, so only Gruber's vanilla Markdown is supported. P.S.: Witiko/markdown already has a ConTeXt interface (see `texdoc markd

[NTG-context] getting the glyph of a character

2017-05-01 Thread Jeong Dal
;ll do some testing. > > In case I forget, please remind me about this after the 4th May. We > currently have as good as no internet connectivity and I would hate to > break the server while experimenting and then being unable to do > anything afterwards. > > Mojca &g

Re: [NTG-context] High-level command for translated names

2017-04-30 Thread Wolfgang Schuster
Henri Menke <mailto:henrime...@gmail.com> 30. April 2017 um 11:38 Dear list, Inspired by this question on TeX.SX https://tex.stackexchange.com/questions/367433 How can I get the translated names for chapter and section depending on the currently active language. I know they are th

Re: [NTG-context] High-level command for translated names

2017-04-30 Thread Henri Menke
On 04/30/2017 09:41 PM, Wolfgang Schuster wrote: > >> Henri Menke <mailto:henrime...@gmail.com> >> 30. April 2017 um 11:38 >> Dear list, >> >> Inspired by this question on TeX.SX >> https://tex.stackexchange.com/questions/367433 >> >> H

Re: [NTG-context] High-level command for translated names

2017-04-30 Thread Wolfgang Schuster
Henri Menke <mailto:henrime...@gmail.com> 30. April 2017 um 11:38 Dear list, Inspired by this question on TeX.SX https://tex.stackexchange.com/questions/367433 How can I get the translated names for chapter and section depending on the currently active language. I know they are th

[NTG-context] High-level command for translated names

2017-04-30 Thread Henri Menke
Dear list, Inspired by this question on TeX.SX https://tex.stackexchange.com/questions/367433 How can I get the translated names for chapter and section depending on the currently active language. I know they are there in lang-txt.lua, but cannot be accessed via \labeltext. One can access

Re: [NTG-context] \hyphenation command in TL 16

2017-04-16 Thread Florian Grammel
S > Please compare > > \setuphead[section][style={\WORDS}] > \section{this is bit of a problem problem problem problem problem problem > problem problems} > > on the standalone (last word in the margin) to TL16 (properly hyphenated) > > Can this be fixed? > > Best > Flori

[NTG-context] \xmldoifelse false condition

2017-04-14 Thread Gerard Keiser
I am trying to select specific elements from an XML document to make anthologies, and still retain the original numbering, by using \xmldoifelse; if the node matches, it is printed, and if it is not, the head number is incremented, to get something like this: 1 First Section (first match

Re: [NTG-context] \hyphenation command in TL 16

2017-04-13 Thread Florian Grammel
ok, thanks; so I’ll need to get some things to work in the standalone then… For one ver: 2017.04.08 12:00 doesn’t seem to hyphenate in \WORDS Please compare \setuphead[section][style={\WORDS}] \section{this is bit of a problem problem problem problem problem problem problem problems} on the

[NTG-context] float pages again

2017-04-05 Thread Florian Grammel
,bottom,page}] \starttext \section{First Section} \input zapf \placefigure {Blah} {\externalfigure[figurename][width=5.0in, height=3.0in]} \placefigure {Blah} {\externalfigure[figurename][width=5.0in, height=3.5in]} \placefigure {Blah} {\externalfigure[figurename][width=5.0in, height=3.5in]} \place

Re: [NTG-context] Aligning subsection head with following paragraph in tagged pdf output

2017-04-02 Thread Todd DeVries
h. I'm not sure what are the differences between \bpar and \startparagraph, so have used the later construction for the second paragraph in the subsection. \setuppapersize[letter] \setuptagging[state=start] \setuphead[chapter][style=\bf, number=no, align=middle] \setuphead[section][st

Re: [NTG-context] Aligning subsection head with following paragraph in tagged pdf output

2017-04-02 Thread Wolfgang Schuster
o jump by structural elements (heading to heading, paragraph to paragraph. In a perfect world one could have it both ways: a structural element like a section, but placed inline as though it were just another layout token. The audio using tagged structure indicates a topic change, while those using the

Re: [NTG-context] Aligning subsection head with following paragraph in tagged pdf output

2017-04-01 Thread Todd DeVries
paragraph. This idea holds true both in source text and in the pdf output. Properly tagged pdf documents allow one to jump by structural elements (heading to heading, paragraph to paragraph. In a perfect world one could have it both ways: a structural element like a section, but placed inline as

[NTG-context] Greek word sorting

2017-04-01 Thread Pablo Rodriguez
} \grcindx{δὲ} \grcindx{δέ} \grcindx{δ’} \grcindx{σ} \grcindx{ς} \grcindx{Παυσανίας} \grcindx{Παυσανίας} \section{Improved} \placeindex \section{Default} \placeregister[indexgr] \stoptext Just for the sake of testing, I added the following sorting language to sort-lang.lua: 8

Re: [NTG-context] Aligning subsection head with following paragraph in tagged pdf output

2017-04-01 Thread Pablo Rodriguez
On 04/01/2017 05:32 PM, Rik Kabel wrote: > On 2017-04-01 00:10, Todd DeVries wrote: >> Thanks for your assistance. Was unaware of using the setupheads >> command incorrectly. Good information to have. I am still not >> able to produce an automatic period (.) at the end of

Re: [NTG-context] Aligning subsection head with following paragraph in tagged pdf output

2017-04-01 Thread Rik Kabel
On 2017-04-01 00:10, Todd DeVries wrote: Thanks for your assistance. Was unaware of using the setupheads command incorrectly. Good information to have. I am still not able to produce an automatic period (.) at the end of the section title using the after keyword. is this correct? Seems to

Re: [NTG-context] bug getting part for \setupheadertexts?

2017-04-01 Thread Pablo Rodriguez
On 04/01/2017 10:33 AM, Pablo Rodriguez wrote: > Dear list, > > as Hraban already reported, there might be a bug in: > > \setupheadertexts[section][chapter][part][section] > > \starttext > \dorecurse{10}{\part{Part} > \chapter{Chapter} >

[NTG-context] bug getting part for \setupheadertexts?

2017-04-01 Thread Pablo Rodriguez
Dear list, as Hraban already reported, there might be a bug in: \setupheadertexts[section][chapter][part][section] \starttext \dorecurse{10}{\part{Part} \chapter{Chapter} \dorecurse{5}{\section{Section}\page}} \stoptext Replacing [part] with [\getmarking{part

Re: [NTG-context] Aligning subsection head with following paragraph in tagged pdf output

2017-03-31 Thread Todd DeVries
Thanks for your assistance. Was unaware of using the setupheads command incorrectly. Good information to have. I am still not able to produce an automatic period (.) at the end of the section title using the after keyword. is this correct? On Friday, March 31, 2017, 7:01:28 PM, Rik writes

Re: [NTG-context] Aligning subsection head with following paragraph in tagged pdf output

2017-03-31 Thread Rik Kabel
On 2017-03-31 19:05, Todd DeVries wrote: Hello, I would like to align a subsection heading with the following paragraph. For example: Subsectiontext. The data presented in this section will ... What I get is: Subsection Text The data presented in this section will ... What recipe should be

[NTG-context] Aligning subsection head with following paragraph in tagged pdf output

2017-03-31 Thread Todd DeVries
Hello, I would like to align a subsection heading with the following paragraph. For example: Subsectiontext. The data presented in this section will ... What I get is: Subsection Text The data presented in this section will ... What recipe should be used with the \setupheads command to

Re: [NTG-context] two suggestions for \setuphead

2017-03-26 Thread Pablo Rodriguez
und an issue. Alignment in margindata doesn’t work: \showframe \definemargindata[outerhead][outer] \setupmargindata[outerhead][align=center] \setuppagenumbering [alternative=doublesided] \setuphead [section] [alternative=inmargin, align=center,

Re: [NTG-context] two suggestions for \setuphead

2017-03-26 Thread Hans Hagen
titles and numbers (separately): \showframe %~ \setuphead[section][alternative=inmargin, align=center] \setuphead[section][alternative=inmargin] \setuphead[subsection][alternative=margin] \setuppagenumbering[alternative=doublesided] \starttext \dorecurse{5}{\section

Re: [NTG-context] two suggestions for \setuphead

2017-03-23 Thread Pablo Rodriguez
sals. The first one is about aligning titles and numbers (separately): \showframe %~ \setuphead[section][alternative=inmargin, align=center] \setuphead[section][alternative=inmargin] \setuphead[subsection][alternative=margin] \setuppagenumbering[alternative=doublesided]

Re: [NTG-context] two suggestions for \setuphead

2017-03-22 Thread Hans Hagen
On 3/15/2017 8:59 PM, Pablo Rodriguez wrote: Hans, here is my minimal sample: \showframe \starttext \setuphead[section][alternative=margin] \section{This is a title} \stoptext After having to adapt a special page design for a friend, I realized that reverse would be an

[NTG-context] two suggestions for \setuphead

2017-03-15 Thread Pablo Rodriguez
Hans, here is my minimal sample: \showframe \starttext \setuphead[section][alternative=margin] \section{This is a title} \stoptext After having to adapt a special page design for a friend, I realized that reverse would be an even greater value for the alternative option in

Re: [NTG-context] display current section number in \writestatus

2017-03-09 Thread Rik Kabel
On 2017-03-09 16:20, Hans Hagen wrote: On 3/9/2017 4:39 AM, Rik Kabel wrote: ConTeXters, What is the best way to get the current section number in a basic format (pt.ch.s.ss... as displayed in the log in structure sectioning entries) for display in a custom log entry (via \writestatus)? I have

Re: [NTG-context] display current section number in \writestatus

2017-03-09 Thread Hans Hagen
On 3/9/2017 4:39 AM, Rik Kabel wrote: ConTeXters, What is the best way to get the current section number in a basic format (pt.ch.s.ss... as displayed in the log in structure sectioning entries) for display in a custom log entry (via \writestatus)? I have tried \fullheadnumber and such, but

[NTG-context] display current section number in \writestatus

2017-03-08 Thread Rik Kabel
ConTeXters, What is the best way to get the current section number in a basic format (pt.ch.s.ss... as displayed in the log in structure sectioning entries) for display in a custom log entry (via \writestatus)? I have tried \fullheadnumber and such, but cannot find something appropriate

Re: [NTG-context] list items not broken in lines

2017-03-06 Thread Pablo Rodriguez
On 03/06/2017 09:45 PM, Henning Hraban Ramm wrote: > Am 2017-03-06 um 21:23 schrieb Pablo Rodriguez: >> [...] >> I’m afraid I wasn’t clear. This is required for: >> >>\placelist[section][alternative=d]. >> >> I’m afraid it doesn’t work there. > >

Re: [NTG-context] list items not broken in lines

2017-03-06 Thread Henning Hraban Ramm
Am 2017-03-06 um 21:23 schrieb Pablo Rodriguez : > On 03/06/2017 09:01 PM, Henning Hraban Ramm wrote: >> Am 2017-03-06 um 19:04 schrieb Pablo Rodriguez: >>> I would like to avoid line breaks in section items. Which would be the >>> right way of doing it? >>>

Re: [NTG-context] list items not broken in lines

2017-03-06 Thread Pablo Rodriguez
On 03/06/2017 09:01 PM, Henning Hraban Ramm wrote: > Am 2017-03-06 um 19:04 schrieb Pablo Rodriguez: >> I would like to avoid line breaks in section items. Which would be the >> right way of doing it? >> >> This would be similar (I think) to know how to get the "{t

Re: [NTG-context] list items not broken in lines

2017-03-06 Thread Henning Hraban Ramm
Am 2017-03-06 um 19:04 schrieb Pablo Rodriguez : > I would like to avoid line breaks in section items. Which would be the > right way of doing it? > > This would be similar (I think) to know how to get the "{this is a > expression}" with no line break inside (and not

[NTG-context] list items not broken in lines

2017-03-06 Thread Pablo Rodriguez
Dear list, I have the following sample: \setupinteraction[state=start, color=, style=, contrastcolor=] \enabledirectives[references.border] \startsetups[placelist:section] \startalign[center] \setupinterlinespace[line=2.8ex] \placelist[section

Re: [NTG-context] xml in lua: how to say "ancestor"?

2017-03-04 Thread Hans Hagen
On 3/3/2017 5:47 PM, Thomas A. Schmitz wrote: On 25.02.2017 21:49, Hans Hagen wrote: xml.attribute(e,"..[tag()='section' or tag()='chapter']","title") with an optional default (there is also p = xml.parent(e) and then you can access p.at.title .. so th

Re: [NTG-context] xml in lua: how to say "ancestor"?

2017-03-03 Thread Thomas A. Schmitz
On 25.02.2017 21:49, Hans Hagen wrote: xml.attribute(e,"..[tag()='section' or tag()='chapter']","title") with an optional default (there is also p = xml.parent(e) and then you can access p.at.title .. so there are several ways( Hans I am sorry it too

Re: [NTG-context] xml in lua: how to say "ancestor"?

2017-02-25 Thread Thomas A. Schmitz
On 02/25/2017 09:49 PM, Hans Hagen wrote: xml.attribute(e,"..[tag()='section' or tag()='chapter']","title") with an optional default (there is also p = xml.parent(e) and then you can access p.at.title .. so there are several ways( Excellent, I c

Re: [NTG-context] xml in lua: how to say "ancestor"?

2017-02-25 Thread Hans Hagen
On 2/25/2017 9:35 PM, Thomas A. Schmitz wrote: On 02/25/2017 09:10 PM, Hans Hagen wrote: then you can just use xml.attribute (or lxml.attribute) Yes, exactly: how does something like \xmlattribute{#1}{..[tag()='section' or tag()='chapter']}{title} transla

Re: [NTG-context] xml in lua: how to say "ancestor"?

2017-02-25 Thread Thomas A. Schmitz
On 02/25/2017 09:10 PM, Hans Hagen wrote: then you can just use xml.attribute (or lxml.attribute) Yes, exactly: how does something like \xmlattribute{#1}{..[tag()='section' or tag()='chapter']}{title} translate into lua? such as xml.attribute(e, "../../chapte

Re: [NTG-context] xml in lua: how to say "ancestor"?

2017-02-25 Thread Hans Hagen
xml:chapter \blank[2*big] CHAPTER: \xmlattribute{#1}{.}{title}\blank \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:section \blank SECTION: \xmlattribute{#1}{.}{title} \blank\relax (previous:\xmlattribute{#1}{..[tag()='chapter']}{title}) \blank \xmlflush{#1} \sto

Re: [NTG-context] xml in lua: how to say "ancestor"?

2017-02-25 Thread Thomas A. Schmitz
\startxmlsetups xml:section \blank SECTION: \xmlattribute{#1}{.}{title} \blank\relax (previous:\xmlattribute{#1}{..[tag()='chapter']}{title}) \blank \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:subsection \blank SUBSECTION: \xmlattribute{#1}{.}{title} \blank\relax

Re: [NTG-context] xml in lua: how to say "ancestor"?

2017-02-25 Thread Hans Hagen
nk \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:section \blank SECTION: \xmlattribute{#1}{.}{title} \blank\relax (previous:\xmlattribute{#1}{..[tag()='chapter']}{title}) \blank \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:subsection \blank SUBSECTION: \xmlattribute{#1}{.}

[NTG-context] controlling title head distances when grid is enabled

2017-02-23 Thread Csikos Bela
Dear context users: I would like to typeset my documents to gridlines. If grid is enabled, the distances between titles (section, subsection,subsubsection heads) and text are too big. Here's an example: \setuplayout[grid=yes] \showgrid \starttext \section{Section One} \input tufte \subse

[NTG-context] Section 1.2)-3

2017-02-16 Thread Procházka Lukáš Ing .
Hello, how to \setuphead to produce numbers like "1.2)-3"? \setuphead[section][] \setuphead[subsection][] \setuphead[subsubsection][] \section{Sec} % To give "1. Sec" \subsection{SSec} % To give "1.1) SSec" \subsubsection{SSSec} % To give "1.1)-1

Re: [NTG-context] Comical error..

2017-02-12 Thread josephcanedo
esized] \setuphead[section] [style=\bfmediumsized] \setuphead[subsection][style=\bfsmallsized] \chapter {Whatever $x-1$} \section {Whatever $x-1$} \subsection{Whatever $x-1$} \input ward \blank Whatever $x-1$ \blank {\itmediumsized This is italic medium sized. $\cos(x) = {\rm Re}(\exp({\

Re: [NTG-context] Comical error..

2017-02-11 Thread John Culleton
] \setuphead[section] [style=\bfmediumsized] \setuphead[subsection][style=\bfsmallsized] \chapter {Whatever $x-1$} \section {Whatever $x-1$} \subsection{Whatever $x-1$} \input ward \blank Whatever $x-1$ \blank {\itmediumsized This is italic medium sized. $\cos(x) = {\rm Re}(\exp({\rm i}x

Re: [NTG-context] \startlines not working in footnotes

2017-01-31 Thread Alan Bowen
t: > \startlines > a > b > c > d > \stoplines > And some more text.} > > \stoptext > > produces > a b c d > (a single line). Is this a wee bug or have I missed something? > > I am using the latest minimals. > > Alan > > Place that s

Re: [NTG-context] \startlines not working in footnotes

2017-01-31 Thread Rik
missed something? I am using the latest minimals. Alan Place that section into a buffer: \starttext Here is a footnote. \startbuffer[fn:abcd] \startlines a b c d \stoplines \stopbuffer \footnote{Some text: \getbuffer[fn:abcd] And some more

[NTG-context] Chapter-subtitle and a short version of a( long) chapter title to fit in the header

2017-01-10 Thread Robert Blackstone
section-title on the odd-numbered pages. The problem here is that some of the chapter titles are too long for this and they overlap the pagenumbers in the header. That is why I would need a shorter form of the chapter title and in some cases a main title and a subtitle. As far as I know, in the

Re: [NTG-context] Different column modes and NAW

2016-12-19 Thread Mikael P. Sundqvist
\setupbodyfont[9pt] \definecolumnset[example][n=2] \starttext \startcolumnset[example] \section{Test} \input tufte \startformula f(x)=f(0)+\int_0^x f'(t)\,dt \stopformula \input knuth \placefigure{Caption}{\blackrule[width=4cm,height=3cm]} \dorecurse{6}{\input knut

[NTG-context] Interrupt section numbering

2016-12-08 Thread Henning Hraban Ramm
Hi together, this should be straightforward, but I can’t find how to do it: I need to interrupt the automatical section numbering, because I need an order like 1 1.1 1.2 2 2.1 2.2 3a 3a.1 3a.2 3b 3b.1 4 4.1 etc. In enumerations I can use start and continue - but in sections? I could cope with

Re: [NTG-context] grid snapping problem

2016-12-07 Thread Csikos Bela
artsubsection and \stopsubsection comands, because I find the command pairs counterproductive in case of long text parts (part, section, subsection etc.). Thank you again, bcsikos >\setuplayout[grid=yes] >\showgrid > >\starttexdefinition caption:text #1 > \setuplocalinterlinespace[li

[NTG-context] interlinespace for \setuplist

2016-12-06 Thread Pablo Rodriguez
\setuplist[section][style=\scb, setups=interlinesp:section] \setuplist[subsection] [style=\itx, alternative=d, pagenumber=no, headnumber=no, setups=interlinesp:subsection] \starttext \completecontent \section{Zweites Hauptstück. Von der Deduction der reinen

Re: [NTG-context] Different text versions in columns?

2016-11-24 Thread Wolfgang Schuster
z | §2 Something | §2 Something different | | §2a Something new | §3 Further | §3 Further | ... | ... Any ideas how I can achieve that? Should I better forget about automatical numbering? With a few small changes in the section mechanism this is very easy. Wo

Re: [NTG-context] TwoColumns in two different languages, with alternate text on even and odd page.

2016-11-23 Thread Pablo Rodriguez
efault][em=italic] \setupinterlinespace[line=3ex] \setuplinenumbering[location=left, step=5, method=section, style=\tfxx, align=left, distance=1em, width=0.4em] \setuppagenumbering[alternative=doublesided,location=] \definelinenote[comment] \setupnote[comment][paragraph=yes, rule=off, split=verystrict, sc

Re: [NTG-context] bug in \directsetup?

2016-11-17 Thread Pablo Rodriguez
On 11/17/2016 09:29 PM, Hans Hagen wrote: > On 11/17/2016 8:53 PM, Pablo Rodriguez wrote: >> [...] >> I need the \directsetup to be able to set up a different interline space >> in the section list from TOC. I’m using latest beta from 2016.11.17 14:19. >> >> Ther

Re: [NTG-context] bug in \directsetup?

2016-11-17 Thread Hans Hagen
On 11/17/2016 8:53 PM, Pablo Rodriguez wrote: Dear list, I have the following sample: \setuppapersize[A6] \setupinteraction[state=start, focus=standard] \placebookmarks[chapter, section][chapter, section] \startsetups[placesect] \start \setupinterlinespace

[NTG-context] bug in \directsetup?

2016-11-17 Thread Pablo Rodriguez
Dear list, I have the following sample: \setuppapersize[A6] \setupinteraction[state=start, focus=standard] \placebookmarks[chapter, section][chapter, section] \startsetups[placesect] \start \setupinterlinespace [line=2.8ex] \placelist

Re: [NTG-context] Clickable question/answer numbers

2016-11-04 Thread Mikael P. Sundqvist
color=contrastcolor, style=, alternative=serried, width=fit, number=yes, prefix=yes, prefixsegments=chapter, way=bychapter, indentnext=no, indenting=yes, before={\testpage[2]\blank[big]}, after={\blank[big,samepage]}, ] \starttext \section{A section with questions} \startquestion[Q:test]{This is a title} This

Re: [NTG-context] Clickable question/answer numbers

2016-11-04 Thread Otared Kavian
o{Question}[A:#1]}] >\ifsecondargument > \startexercise[#1]{#2} >\else > \startexercise[#1] >\fi > \else >\setupenumeration[exercise][text=Question] >\startexercise > \fi > #3 > } > > \def\stopquestion{\stopexercise} >

Re: [NTG-context] Clickable question/answer numbers

2016-11-03 Thread Mikael P. Sundqvist
rtexercise[#1] \fi \else \setupenumeration[exercise][text=Question] \startexercise \fi #3 } \def\stopquestion{\stopexercise} \starttext \section{A section with questions} \startquestion[Q:test][This is a title] This is a question with title. \stopquestion \beginanswer \myans

Re: [NTG-context] Clickable question/answer numbers

2016-11-03 Thread Mikael P. Sundqvist
t;>> \hideblocks[answer] >>> >>> \def\myanswer[#1]{\inleft{\in[#1]\reference[A:#1]{\in[#1]}}} >>> >>> \define[1]\AnswerToQuestion{Question \goto{(see Solution)}[A:Q:#1]} >>> >>> >>> \define[1]\StartQuestion{\startquestion[refer

Re: [NTG-context] Clickable question/answer numbers

2016-11-03 Thread Hans Hagen
number=yes, prefix=yes, prefixsegments=section, ] \starttext \section{A section with questions} \StartQuestion{test} Prove that $(a +b)^2 = a^2 + 2ab + b^2$ for all $a,b\in{\Bbb R}$. \BeginAnswer{test} Indeed $(a+b)^2 = (a+b)(a+b) = a^2 + ab + ba +b^2 = a^2 + 2ab +

Re: [NTG-context] Clickable question/answer numbers

2016-11-02 Thread Mikael P. Sundqvist
1,title={\AnswerToQuestion{#1}}]} > > \define[1]\BeginAnswer{\beginanswer\myanswer[Q:#1]} > > \defineenumeration[question][ > text=, %Question, > headcolor=darkred, > title=yes, > titleleft=, > titleright={.}, > width=fit, > nu

Re: [NTG-context] Clickable question/answer numbers

2016-11-02 Thread Otared Kavian
{#1}}]} \define[1]\BeginAnswer{\beginanswer\myanswer[Q:#1]} \defineenumeration[question][ text=, %Question, headcolor=darkred, title=yes, titleleft=, titleright={.}, width=fit, number=yes, prefix=yes, prefixsegments=section

[NTG-context] interline space for \setuplist[alternative=d]

2016-11-02 Thread Pablo Rodriguez
Hans, I have the following sample: \setuppapersize[A6] \setupinteraction[state=start, focus=standard] \placebookmarks[chapter, section][chapter, section] \startsetups[lsect] \setupinterlinespace[line=28ex] \stopsetups \setuplist[section][style=\tfxx, alternative=d

Re: [NTG-context] Clickable question/answer numbers

2016-11-02 Thread Mikael P. Sundqvist
teraction[state=start,color=,contrastcolor=,style=] >> >> \defineblock[answer] >> \hideblocks[answer] >> >> \def\myanswer[#1]{\inleft{\in[#1]\reference[A:#1]{\in[#1]}}} >> >> \defineenumeration[question][ >> text=Question, >> headcolor=darkred,

Re: [NTG-context] Clickable question/answer numbers

2016-11-02 Thread Otared Kavian
yle=] > > \defineblock[answer] > \hideblocks[answer] > > \def\myanswer[#1]{\inleft{\in[#1]\reference[A:#1]{\in[#1]}}} > > \defineenumeration[question][ > text=Question, > headcolor=darkred, > width=fit, > number=yes, > prefix=yes, > prefixsegments=section, >

[NTG-context] Clickable question/answer numbers

2016-11-02 Thread Mikael P. Sundqvist
ate=start,color=,contrastcolor=,style=] \defineblock[answer] \hideblocks[answer] \def\myanswer[#1]{\inleft{\in[#1]\reference[A:#1]{\in[#1]}}} \defineenumeration[question][ text=Question, headcolor=darkred, width=fit, number=yes, prefix=yes, prefixsegments=section, ] \starttext \section{A section

Re: [NTG-context] Emacs24 + AucTeX + ConTeXt

2016-10-31 Thread Fabrice Couvreur
ux-64/bin/:$PATH" t) to your > .emacs and > (10) (setq ConTeXt-Mark-version "IV“) if you want > (11) Save file and restart Emacs > (12) Open a context file and try out > > > ALOHA, tobber > > > > > > > > > Am 30.10.2016 um 13:30 schrieb Fabrice C

Re: [NTG-context] Emacs24 + AucTeX + ConTeXt

2016-10-30 Thread Tobias Berndt
nTeXt-environment ConTeXt-etexshow > ConTeXt-find-matching-start ConTeXt-find-matching-stop > ConTeXt-insert-item ConTeXt-mark-environment > ConTeXt-mode ConTeXt-mode-command-menu > ConTeXt-mode-menu ConTeXt-section > ConTeXt-work-on-environment > > I added in .

Re: [NTG-context] Emacs24 + AucTeX + ConTeXt

2016-10-30 Thread Fabrice Couvreur
-menu ConTeXt-section ConTeXt-work-on-environment I added in .emacs (custom-set-variables '(ConTeXt-Mark-version "IV")) update auctex How ? Auctex installed with ELPA (setenv „PATH" „/home/fab/tex/texmf-linux-64/bin/:$PATH" t) I do not understand this symbol „

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

2016-10-26 Thread Hans Hagen
On 10/25/2016 9:06 PM, Pablo Rodriguez wrote: 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

[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] Text editors

2016-10-25 Thread Nicola
> Hi, > > You forgot my favorite editor: > > cat > file.tex Mandatory xkcd at this point: https://www.xkcd.com/378/ > More seriously I mostly use Vim. I don't know of other ConTeXt-aware editors apart from those already in the list, but in the other section I woul

Re: [NTG-context] font size switching

2016-10-20 Thread Csikos Bela
"Thomas A. Schmitz" írta: >On 10/17/2016 07:31 PM, Csikos Bela wrote: >> Do you mean it's better to use e.g. {\bf some text} then \bf{some text}? > >The latter is not valid syntax. You want to read the wiki section on >font switching: http://wiki.contextgarden.ne

Re: [NTG-context] font size switching

2016-10-17 Thread Thomas A. Schmitz
On 10/17/2016 07:31 PM, Csikos Bela wrote: Do you mean it's better to use e.g. {\bf some text} then \bf{some text}? The latter is not valid syntax. You want to read the wiki section on font switching: http://wiki.contextgarden.net/Font_Switching >x and xx are different font size

Re: [NTG-context] Footnotes in footnotes

2016-10-16 Thread Saša Janiška
ges > language 'en' is active open source > 2 > 3 > /home/gour/prj/hugo/footnotetst.tex fonts > preloading latin modern fonts (second stage) fonts > 'fallback modern-designsize rm 12pt' is loaded structure > sectioning > sect

[NTG-context] new beta

2016-10-12 Thread Hans Hagen
Hi, I uploaded a new beta. There is a new command \setextrafontkerns which is described in the fonts-mkiv manual section 8.12. probably not that useful but kind of fun. Hans - Hans

Re: [NTG-context] cannot update to latest beta

2016-10-11 Thread Mohammad Hossein Bateni
e easiest way for Hans to do > that is to upload a new version to the website, and whenever any version of > context is uploaded, the qrcs are uploaded as well. > > An easier and safer way to check for a new context release is to browse > through the 'download' section of the

Re: [NTG-context] modules.contextgarden.net update

2016-10-10 Thread Wolfgang Schuster
Hi Taco, can you send me a temporary password. Kind regards, Wolfgang Taco Hoekwater <mailto:t...@elvenkind.com> 10. Oktober 2016 um 15:46 Hi, Some of you will know already that the module author section of https://modules.contextgarden.net is functional again, as presented at the C

[NTG-context] modules.contextgarden.net update

2016-10-10 Thread Taco Hoekwater
Hi, Some of you will know already that the module author section of https://modules.contextgarden.net is functional again, as presented at the ConTeXt meeting last month. However, nobody can log in, because module authors now have a password (no more automatic wiki-connect). For new

<    10   11   12   13   14   15   16   17   18   19   >