[NTG-context] conditional not working in \setuphead

2020-04-20 Thread Pablo Rodriguez
\xmlflush{#1} \stopxmlsetups \startxmlsetups xml:section \startsection[title={\xmlatt{#1}{id}}, beforesection={\doif{\xmlatt{#1}{id}}{\selectedtopic} {conditional}}] \xmlflush{#1} \doif{\xmlatt{#1}{id}}{\selectedtopic}{conditional} \stopsection

[NTG-context] Chapters, sections, usw

2020-02-24 Thread Jean-Pierre Delange
}] \startsection[title={Préambule}] \startsubsection[title={À qui s'adresse ce cours ?}] Ce {\em cours} de philosophie s'adresse d'abord aux élèves de classe de terminale des Lycées, motivés par le massif intimidant d'interrogations et de réflexions que la tradition européenne désigne par {\em

Re: [NTG-context] Quotation dash issues with semantic markup

2020-01-17 Thread Wolfgang Schuster
=\endash~, %    midsentence=~\endash, rightsentence=~\endash] \define\quotedash{\emdash\endash} %\setupbackend[export=yes] \starttext \startsection[title=Introduction] Any of you able to help me get my quotation dashes into line when automatically inserted by the semantic commands?  I'm sure

Re: [NTG-context] Quotation dash issues with semantic markup

2019-12-30 Thread Hans Hagen
=~\endash, rightsentence=~\endash] \define\quotedash{\emdash\endash} %\setupbackend[export=yes] \starttext \startsection[title=Introduction] Any of you able to help me get my quotation dashes into line when automatically inserted by the semantic commands? I'm sure a number of you look

[NTG-context] Suppress blank page in asymmetrical multicolumn layout

2019-12-06 Thread Thangalin
r={\column}, ] \setuphead[subsubsection][ after={\blank[small]}, ] \starttext \startsection[title={Section Title}] \startsubsection[title={Subtitle}] \dorecurse{2}{\input knuth} \dorecurse{2}{% \startsubsubsection[title={Subsubtitle}] \dorecurse{1}{\input ward} \dorecurse{2}{\input lorem}

Re: [NTG-context] Indenting number in TOC, particular numbering scheme, and other questions

2019-12-04 Thread Daniel Haid
]},before={\blank[big]},sectionstopper=.] \setuphead[subsection][sectionsegments=subsection] \setuphead[subsubsection][sectionsegments=subsubsection,sectionstopper=] \setuphead[subsubsubsection][sectionsegments=subsubsubsection] \starttext \startchapter[title={Chapter}] \startsection[title={Section

[NTG-context] Indenting number in TOC, particular numbering scheme, and other questions

2019-12-02 Thread Daniel Haid
on] \setuphead[subsubsubsubsubsubsection][sectionsegments=subsubsubsubsubsubsection] \setuphead[subsubsubsubsubsubsubsection][sectionsegments=subsubsubsubsubsubsubsection] \def\startA{\startchapter} \def\stopA{\stopchapter} \def\startI{\startsection} \def\stopI{\stopsection} \def\startS{\startsubsection}

Re: [NTG-context] How to sort list of sections?

2019-11-08 Thread Rik Kabel
]   \startsection[title={Beta}]  \input sapolsky \stopsection   \startsection[title={Alpha}] \input sapolsky \stopsection  \stopchapter  \startchapter[title=bar]   \placelist[section][criterium=local,order=title]   \startsection[title={Alpha}] \input sapolsky

Re: [NTG-context] How to sort list of sections?

2019-11-08 Thread Hans Hagen
     \placelist[section][criterium=local,order=title]      \startsection[title={Beta}]  \input sapolsky \stopsection      \startsection[title={Alpha}] \input sapolsky \stopsection      \startsection[title={Gamma}] \input sapolsky \stopsection \stopchapter \stoptext

Re: [NTG-context] How to sort list of sections?

2019-11-07 Thread jdh
r=no] > > \starttext > > \startchapter[title=foo] > > \placelist[section][criterium=local,order=title] > > \startsection[title={Beta}] \input sapolsky \stopsection > \startsection[title={Alpha}] \input sapolsky \stopsection > \startsecti

Re: [NTG-context] How to sort list of sections?

2019-11-07 Thread Kerry Sainsbury
section > > headings. > > Here's my attempt that does not work. > here's one that does ... > > \setuphead[section][number=no] > > \starttext > > \startchapter[title=foo] > > \placelist[section][criterium=local,order=title] > > \startsection[title={

Re: [NTG-context] How to sort list of sections?

2019-11-07 Thread Hans Hagen
... \setuphead[section][number=no] \starttext \startchapter[title=foo] \placelist[section][criterium=local,order=title] \startsection[title={Beta}] \input sapolsky \stopsection \startsection[title={Alpha}] \input sapolsky \stopsection \startsection[title={Gamma}] \input sapolsky

[NTG-context] How to sort list of sections?

2019-11-06 Thread Kerry Sainsbury
expect): \placelist[section] \blank placelistofsorts (doesn't render anything. My guess was wrong) \placelistofsorts[wahs] Sections start here: \startsection[title={Beta}] Hello \startsection[title={Alpha}] World \stoptext Thank you for your time. I really appreciate it. Kerry

Re: [NTG-context] List of Symbols/Abbreviations/Glosses with more then two entries

2019-10-11 Thread Thomas Welter
ddsym[t][t][unit={\sunit{second}}, description={Time}, group={latin}] } % Print the List of Symbols with \placelistofsymbols \def\placelistofsymbols{\loadsymbols\ctxlua{userdata.placelistofsymbols()}} \starttext \startfrontmatter \startsubject[title=Content] \placecontent \stopsubject \starts

Re: [NTG-context] Unexpected behavior of subsection labels

2019-10-06 Thread Wolfgang Schuster
[section] \hfill \llap{\userpagenumber} \stopsetups \startsetups[text left] \rlap{\userpagenumber} \hfill \sc \getmarking[chapter] \hfill \llap{} \stopsetups \startfrontmatter Hello \completecontent \stopfrontmatter \startbodymatter \startchapter[title=yay] \startsection[title=wow] \startsubsection

[NTG-context] Unexpected behavior of subsection labels

2019-10-06 Thread Jairo A. del Rio
[section] \hfill \llap{\userpagenumber} \stopsetups \startsetups[text left] \rlap{\userpagenumber} \hfill \sc \getmarking[chapter] \hfill \llap{} \stopsetups \startfrontmatter Hello \completecontent \stopfrontmatter \startbodymatter \startchapter[title=yay] \startsection[title=wow] \startsubsection[title

[NTG-context] Using \currentreferencenumber triggers “has a hidden number” in log file

2019-07-18 Thread Marco Patzer
\currentreferencenumber\emptyreference {Foo}{Bar}}%% } \setuphead [section] [number=no] \starttext \startsection [title=Foo, reference=sec:foo] \samplefile{knuth} \stopsection \foo[sec:foo] \stoptext Then check the log file for “has a hidden number”. 1) How to not trigger the log

Re: [NTG-context] Tagged blocks

2019-06-19 Thread Wolfgang Schuster
can't exclude tagged blocks but it's possible to extend the mechanism an apply a default tag to each block which will allow selective output. \startsection[title=Questions] \useblocks[question][criterium=chapter] \stopsection \startsection[title=Answers] \useblocks[answer][criterium=chapter

[NTG-context] Tagged blocks

2019-06-18 Thread Jan Willem Flamma
\beginanswer \startanswer Normal answer \stopanswer \endanswer \beginquestion[exam] \startquestion Exam question \stopquestion \endquestion \beginanswer[exam] \startanswer Exam answer \stopanswer \endanswer \startsection[title=Questions] \useblocks[question][criterium=chapter] \stopsection

Re: [NTG-context] bookmark expansion again

2019-05-27 Thread Wolfgang Schuster
] \starttext \section{\MyContent} \startsection[title=\MyContent, bookmark=\MyContent] \stopsection \stoptext I see that now PDF contents are prerolled by default (which I think it is a great idea [I hope it isn’t a bug]). But bookmarks alone (when aren’t prerolled. From strc

[NTG-context] bookmark expansion again

2019-05-27 Thread Pablo Rodriguez
Hi Hans, I have the following sample: \def\eap{expansion} \def\MyContent{Expanded \eap} %~ \enabledirectives[references.bookmarks.preroll] \setupinteraction[state=start, title={\MyContent}] \placebookmarks[section] \starttext \section{\MyContent} \startsection

[NTG-context] no bookmark prerollling in bookmark option

2019-05-23 Thread Pablo Rodriguez
Dear list, I have the following sample: \def\MyContent{This is expanded content} \enabledirectives[references.bookmarks.preroll] \setupinteraction[state=start, title={\MyContent}] \placebookmarks[section] \starttext \section{\MyContent} \startsection[title=\MyContent

Re: [NTG-context] XML export: basic questions

2019-05-22 Thread Hans Hagen
On 5/22/2019 10:30 PM, Procházka Lukáš Ing. wrote: Hello, suppose having "Main.mkiv": \setupbackend[export=yes] \starttext   \startsection[title={Sec},MyPar=MyVal]     \input knuth   \stopsection \stoptext Some questions concerning XML export: 1. Normally, with \se

[NTG-context] XML export: basic questions

2019-05-22 Thread Procházka Lukáš Ing .
Hello, suppose having "Main.mkiv": \setupbackend[export=yes] \starttext \startsection[title={Sec},MyPar=MyVal] \input knuth \stopsection \stoptext Some questions concerning XML export: 1. Normally, with \setupbackend[export=yes], Ctx creates "Main-exp

Re: [NTG-context] xmldoif, \startSECTION ... \stopSECTION and \setuphead

2019-05-16 Thread Pablo Rodriguez
On 5/16/19 8:45 PM, Wolfgang Schuster wrote: > Pablo Rodriguez schrieb am 16.05.2019 um 18:43: >> [...] >> After checking i-context, the options for the second pair of brackets are: >> >>KEY = VALUE >> >> Well, I think this is the standard case. Aren’t values inherited from >> \setuphead? What

Re: [NTG-context] xmldoif, \startSECTION ... \stopSECTION and \setuphead

2019-05-16 Thread Wolfgang Schuster
Pablo Rodriguez schrieb am 16.05.2019 um 18:43: Dear list, I have the following sample: \setuphead[chapter] [beforesection=\TeX, aftersection=\TeX] \starttext \startchapter[title=Chapter, beforesection=\ConTeXt, aftersection=\ConTeXt]

Re: [NTG-context] xmldoif, \startSECTION ... \stopSECTION and \setuphead

2019-05-16 Thread Pablo Rodriguez
On 5/16/19 6:43 PM, Pablo Rodriguez wrote: > [...] > What would be my approach to deal with "\xmldoif{#1}{.[@id='topic' and > contains(@class,'hidden')]}" in beforesection? > > I realize that "\definehead[specialchapter][chapter]" would be a > workaround, but I would like to find a more proper

[NTG-context] xmldoif, \startSECTION ... \stopSECTION and \setuphead

2019-05-16 Thread Pablo Rodriguez
Dear list, I have the following sample: \setuphead[chapter] [beforesection=\TeX, aftersection=\TeX] \starttext \startchapter[title=Chapter, beforesection=\ConTeXt, aftersection=\ConTeXt] This is my chapter. \stopchapter \stoptext

[NTG-context] Split up PDF a certain

2019-05-15 Thread Denis Maier
Hi, is there a way to split up a PDF a certain points, e.g. at every \startsection? (I am thinking of a way to produce both one PDF for a complete journal issue and for each individual articles. Or should I better use an external tool to post-process the resulting PDF?) Best, Denis

[NTG-context] Expanding text across two table cells

2019-04-08 Thread Todd DeVries
\project prj_cases \startsection[title=Counseling Progress Note, reference=DATE_clientcode] \placetable{Meeting Info} {\bTABLE \bTR \bTD \ptitle{Client Name}:~John Smith \eTD \bTD \ptitle{Billing code}:~90834 \eTD \eTR \bTR \bTD \ptitle{Date}:~April 8, 2019 \eTD \bTD \ptitle{Start \& stop time

Re: [NTG-context] Small pages and large framed texts

2019-03-21 Thread Willi Egger
poffset=10pt, > leftoffset=10pt, > location=paragraph, > frame=on] > > \startsetups [xml:setups:start] > \starttextbackground [SetupsParameter] > \stopsetups > > \startsetups [xml:setups:stop] > \stoptextbackground > \stopsetups > > \starttext > > \start

Re: [NTG-context] Small pages and large framed texts

2019-03-20 Thread Wolfgang Schuster
=paragraph, frame=on] \startsetups [xml:setups:start] \starttextbackground [SetupsParameter] \stopsetups \startsetups [xml:setups:stop] \stoptextbackground \stopsetups \starttext \startsection[title={Short Version of the Command}] \cmdshortsetup [setupframed] \cmdshortsetup

Re: [NTG-context] Small pages and large framed texts

2019-03-20 Thread Willi Egger
, that the framed pieces break over the page. \usemodule[x][set-11] \loadsetups[i-context] \setuppapersize[A6][A6] \setupbodyfont[pagella,rm,10pt] \starttext \startsection[title=hSort Version of the Command] \shortsetup{setupframed} \shortsetup{setupinteraction} \stopsection

Re: [NTG-context] Missing number, treated as zero

2019-02-15 Thread Saša Janiška
On Fri, 15 Feb 2019 13:59:46 +0100 Wolfgang Schuster wrote: > You need (note the “start”) > > \startsection[title={...}] > > when you use \stopsection. Ahh, I managed to try just those combination which do not work...feeling really embarrassed. :-( Thank you for being ki

Re: [NTG-context] Missing number, treated as zero

2019-02-15 Thread Gour
On Fri, 15 Feb 2019 13:59:20 +0100 Henning Hraban Ramm wrote: > You mixed up the syntax, > it’s either \section{Testing} or \startsection[title=Testing] Ahh, what a shame. :-( Sincerely, Gour -- For him who has conquered the mind, the mind is the best of friends; but for one who has

Re: [NTG-context] Missing number, treated as zero

2019-02-15 Thread Wolfgang Schuster
_syst_helpers_push_macro \endcsname \global \advance \lastname... l.4 \stopsection 1 \starttext 2 \section[title={Testing ConTeXt}] You need (note the “start”) \startsection[title={...}] when you use \stopsection. Wolf

Re: [NTG-context] Missing number, treated as zero

2019-02-15 Thread Henning Hraban Ramm
t’s either \section{Testing} or \startsection[title=Testing] Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD ___ If your question is of

[NTG-context] Documentation of change / Evolving documents

2019-01-19 Thread Axel Kielhorn
}{Allerletzter Fehler beseitigt.} Ende \startsection[title={History}] \placechange \stopsection \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl

Re: [NTG-context] indented headings possible?

2018-12-13 Thread Wolfgang Schuster
with \dontleavehmode\vbox{\advance\hsize-\leftskip\section{Section 1}}\par but that is horrible code. Is there any way to get the correct effect using \setuphead ? \setuphead [section] [aligntitle=yes] \showframe [text] [text] \starttext \startnarrower[left] \startsection[title

[NTG-context] Footnotes and endnotes

2018-11-17 Thread Axel Kielhorn
={(},right={)}] % How to style the footnotemark in the text? \setupnotation[endnote] [left={(},right={)}] \startsection[ reference=fußnoten, title={Fußnoten} ] \index{Fußnoten} \input ward\footnote{Eine normale Fußnote. Mit etwas Text, damit die Seite voll wird. \input ward} \input

Re: [NTG-context] German introduction to context

2018-11-06 Thread Jan U. Hasecke
Hi Axel, thanks a lot for this introduction. Am 02.11.18 um 10:07 schrieb Axel Kielhorn: > Hello! > > As promised I’ve uploaded my ConTeXt introduction to github. > You can find it at > https://github.com/AKielhorn/Context-Intro > > I used MkIV syntax for \startsection

Re: [NTG-context] German introduction to context

2018-11-02 Thread Axel Kielhorn
> Am 02.11.2018 um 12:28 schrieb Hans Hagen : > > On 11/2/2018 10:07 AM, Axel Kielhorn wrote: >> Hello! >> As promised I’ve uploaded my ConTeXt introduction to github. >> You can find it at >> https://github.com/AKielhorn/Context-Intro >> I used MkI

Re: [NTG-context] German introduction to context

2018-11-02 Thread Hans Hagen
On 11/2/2018 10:07 AM, Axel Kielhorn wrote: Hello! As promised I’ve uploaded my ConTeXt introduction to github. You can find it at https://github.com/AKielhorn/Context-Intro I used MkIV syntax for \startsection \stopsection but gave up on \startparagraph \stoparagraph. Is there a way to auto

Re: [NTG-context] German introduction to context

2018-11-02 Thread Axel Kielhorn
Hello! As promised I’ve uploaded my ConTeXt introduction to github. You can find it at https://github.com/AKielhorn/Context-Intro I used MkIV syntax for \startsection \stopsection but gave up on \startparagraph \stoparagraph. Is there a way to auto convert that or do I have to add

[NTG-context] Reset bibliography numbering

2018-10-24 Thread Martin Hasoň
][bib.buffer] \starttext \startsection[title=Section 1] \cite[a] \placelistofpublications \stopsection \startsection[title=Section 2] \cite[b] \cite[a] \cite[c] \placelistofpublications \stopsection \stoptext Actual output: Section 1 [1] 1 bib a Section 2 [2] [1] [3] 2 bib b 1 bib

[NTG-context] tagged elements in tables (TABLE, tabulate, xtable)

2018-09-29 Thread Rik Kabel
dolor sit amet, \ldots} \startbuffer[Demo] \startelement[Block] \startelement[Text] \DummyText \DummyText \DummyText \DummyText \stopelement \stopelement \stopbuffer \starttext \startchapter[title={One}] \startsection[title={OneDotOne}] \bTABLE

[NTG-context] prevent page break when using blocks

2018-09-27 Thread Jan Willem Flamma
Answer 3 \item Answer 4 \item Answer 5 \stopitemize \stopquestion \endquestion \beginanswer \startanswer B \stopanswer \endanswer \stopbuffer \dorecurse{30}{\getbuffer[question]} \startsection[title=Questions] \useblocks[question][criterium=chapter] \page \startsubsubsection[title=Answers

[NTG-context] Why do I have to enclose \rawcounter in braces in this MWE ?

2018-09-25 Thread Damien Thiriet
}] \startsection[title={Un premier chapitre}] voilà \stopsection \startsubsection[title={Un deuxième}] tak jest. \stopsubsection \stoptitle \stoptext Thanks, Damien Thiriet ___ If your question

Re: [NTG-context] xml in lua advice ?

2018-09-19 Thread mf
tags that should be > > processed, > > so just stripping it clean will not do. > > > > (this is not about \section as such, I just needed an example. > > \startsection > > would be more modern, but it would not help fix the issue ) > > it actually depends on

Re: [NTG-context] xml in lua advice ?

2018-09-19 Thread Hans Hagen
e The subtree in ’t’ could have embedded xml tags that should be processed, so just stripping it clean will not do. (this is not about \section as such, I just needed an example. \startsection would be more modern, but it would not help fix the issue ) it actually depends on what you do ... anyway

[NTG-context] xml in lua advice ?

2018-09-19 Thread Taco Hoekwater
xml tags that should be processed, so just stripping it clean will not do. (this is not about \section as such, I just needed an example. \startsection would be more modern, but it would not help fix the issue ) Thanks

Re: [NTG-context] Modes in tables

2018-09-07 Thread Jan Willem Flamma
xsegments=chapter, >> prefix=yes] >>\beginquestion >> \startquestion >> Calculate the hydrostatic pressure of the following fluid. >> \starttabulate[|lw(6cm)|lw(3cm)|\doifmode{BL}{p|}] >> \NC Well depth \NC 10100 ft

Re: [NTG-context] Modes in tables

2018-09-06 Thread Wolfgang Schuster
10100 ft\doifmode{BL}{\NC 3100 m} \NC \NR \NC Fluid density\NC 9.0 ppg \doifmode{BL}{\NC 1.08 kg/l} \NC \NR \stoptabulate \stopquestion \endquestion \beginanswer \startanswer 4726 psi\doifmode{BL}{ / 328 bar} \stopanswer \endanswer \startsection[title

[NTG-context] Modes in tables

2018-09-06 Thread Jan Willem Flamma
}{\NC 1.08 kg/l} \NC \NR \stoptabulate \stopquestion \endquestion \beginanswer \startanswer 4726 psi\doifmode{BL}{ / 328 bar} \stopanswer \endanswer \startsection[title=Questions] \useblocks[question] \startsubsubsection[title=Answers] \useblocks[answer

Re: [NTG-context] How to cite online websites (reloaded)

2018-09-03 Thread cryo shock
ps] > > \setupbtxlist[aps][ > > %alternative=, > > width=fit, > > distance=.5em, > > %distance=0pt, > > margin=0em, > > ] > > > > \starttext > > Hallo Welt! \cite[lnkHWelt] > > > > \startappendices > >

Re: [NTG-context] How to cite online websites (reloaded)

2018-09-02 Thread Alan Braslau
%alternative=, > width=fit, > distance=.5em, > %distance=0pt, > margin=0em, > ] > > \starttext > Hallo Welt! \cite[lnkHWelt] > > \startappendices > \startsection[title={Pubs},marking={}] > \placelistofpublications[method=dataset]

Re: [NTG-context] How to cite online websites (reloaded)

2018-09-02 Thread Lars
    \startsection[title={Pubs},marking={}]   \placelistofpublications[method=dataset]     \stopsection   \stopappendices \stoptext And that's in My_file.bib: @Misc{lnkHWelt,   Note = "zuletzt abgerufen am 5. Aug. 2018",   Url = "http://wiki.contextgarden.net; } What would be the mk

[NTG-context] Fwd: How to cite online websites (reloaded)

2018-09-02 Thread Lars
}     \\     Weiteres Zitat (\LINK{libA} S. 201 ff.).   \stopsubject   \startsection[title={Esgalation},marking={}]     Verweis hier: \LINK{libB}   \stopsection     \stopchapter   \stopbodymatter   % -   \startappendices

[NTG-context] Spurious breaks in export when blank line ends paragraph

2018-08-21 Thread Rik Kabel
\stopparagraph leads to spurious break elements in some circumstances, as shown in the following: \setupbackend [export=yes,xhtml=yes] \starttext \startsection[title=trailing blank line] \startparagraph   Xxx xxx xx x xx xxx xx xx

Re: [NTG-context] Set up a theorem style

2018-07-26 Thread Fabrice Couvreur
t;alternative=serried, >title=no, >prefix=yes, >prefixsegments=chapter, >way=bysection, >right=., >titlestyle=bold, >style=italic, > width=broad, > > ] > > \defineenumeration[theorem] >

Re: [NTG-context] Set up a theorem style

2018-07-25 Thread Aditya Mahajan
\starttext \startchapter[title={First Chapter}] \startsection[title={First Section}] \dorecurse{2}{ \starttheorem \input ward \stoptheorem} \stopsection \stopchapter \startchapter[title={Second Chapter}] \startsection[title={Second Section}] \dorecurse{2}{ \starttheorem \input ward \s

[NTG-context] Set up a theorem style

2018-07-25 Thread Fabrice Couvreur
t=Théorème, alternative=serried, title=no, prefix=yes, prefixsegments=chapter, way=bysection, right=., titlestyle=bold, style=italic, width=broad, ] \defineenumeration[theorem] \starttext \startchapter[title={First Chapter}] \startsection[title={Fir

Re: [NTG-context] Some questions about the presentation of a book

2018-07-21 Thread Fabrice Couvreur
[structure] > [n, R, n, n, n] > > \definestructureconversionset > [digits] > [n, n, n, n, n] > > \setupheads[sectionconversionset=structure] > > \setuplist[chapter][style=bold,width=5mm] > > \starttext > > \starttitle[title={\bf So

[NTG-context] Some questions about the presentation of a book

2018-07-20 Thread Fabrice Couvreur
\stoptitle \startchapter[title=First chapter] \startsection[title=Fist section] \startsubsection[title=First subsection] \dorecurse{10}{\fakewords{120}{120}\par} \stopsubsection \stopsection \stopchapter \startchapter[title=Second chapter] \startsection[title=Second section] \startsubsection[ti

[NTG-context] Epub broken

2018-07-04 Thread Rik Kabel
={Chapter title}] \startparagraph Chapter introduction. \stopparagraph \startsection[title={Section 1 title}] \startparagraph Section one text. \stopparagraph \stopsection \startsection[title={Section 2 title}] \startparagraph Section two text. \stopparagraph

Re: [NTG-context] referencing and stoppers

2018-06-30 Thread Idris Samawi Hamid ادريس سماوي حامد
ion / \startsection 2. Argument: reference type -> default == \in 3. Argument: settings which differ from \setuphead Many thanks, this is exactly what was needed! Your replies and pointers are appreciated and not taken for granted. Best wishes Idris Idris Samawi Hamid ادريس سماو

Re: [NTG-context] referencing and stoppers

2018-06-30 Thread Wolfgang Schuster
. \zerowidthspace. \setupreferencestructureprefix [section] [default] [prefixstopper={\symbol[none]}] %\setupreferencestructureprefix [section] [default] [prefixstopper=\zerowidthspace] 1. Argument: section name -> section == \section / \startsection 2. Argument: reference type -> d

Re: [NTG-context] Table of Contents sectioning numbers in margin + oddity

2018-06-25 Thread Wolfgang Schuster
edlist % \setuplist[] [content] [section] [level=section, alternative=c, criterium=local] \setuphead[section][alternative=inmargin] \setupitemize[1][inmargin][stopper=] \placecontent \starttext \startsection[title= First] \input ward \stopsection \startsection[title= Second] \startitemize[r] \sta

Re: [NTG-context] Table of Contents sectioning numbers in margin + oddity

2018-06-24 Thread Wolfgang Schuster
edlist % \setuplist[] [content] [section] [level=section, alternative=c, criterium=local] \setuphead[section][alternative=inmargin] \setupitemize[1][inmargin][stopper=] \placecontent \starttext \startsection[title= First] \input ward \stopsection \startsection[title= Second] \startitemize[r] \sta

[NTG-context] Table of Contents sectioning numbers in margin + oddity

2018-06-24 Thread Idris Samawi Hamid ادريس سماوي حامد
][alternative=inmargin] \setupitemize[1][inmargin][stopper=] \placecontent \starttext \startsection[title= First] \input ward \stopsection \startsection[title= Second] \startitemize[r] \startitem[] \input ward \stopitem \startitem[] \input ward \stopitem \stopitemize \stopsection \stoptext

[NTG-context] referenceprefix=+ not working

2018-05-22 Thread Henri Menke
=+] % when I put "test" it works \starttext \startsection[reference=test,title={Test}] \startplacefigure[reference=cow] \externalfigure[cow] \stopplacefigure \stopsection \in[test:cow] % ?? \stoptext _

Re: [NTG-context] structureuservariable

2018-03-31 Thread Henning Hraban Ramm
Am 2018-03-31 um 23:10 schrieb Hans Hagen <j.ha...@xs4all.nl>: > On 3/31/2018 10:57 PM, Henning Hraban Ramm wrote: >> Please consider: >> \starttext >> \startchapter[title=Test][author=Tufte] >> \input tufte\par >> Author: \structureuservariable{author} &g

Re: [NTG-context] structureuservariable

2018-03-31 Thread Hans Hagen
On 3/31/2018 10:57 PM, Henning Hraban Ramm wrote: Please consider: \starttext \startchapter[title=Test][author=Tufte] \input tufte\par Author: \structureuservariable{author} \startsection[title=Section] \input knuth\par Author: \structureuservariable{author} (empty!) \stopsection

[NTG-context] structureuservariable

2018-03-31 Thread Henning Hraban Ramm
Please consider: \starttext \startchapter[title=Test][author=Tufte] \input tufte\par Author: \structureuservariable{author} \startsection[title=Section] \input knuth\par Author: \structureuservariable{author} (empty!) \stopsection \stopchapter \stoptext i.e. the variable that I define

Re: [NTG-context] Bug in wrapped placefigure

2018-03-29 Thread Hans Hagen
(eyeballing it, I'd say it is \topskip).  Find MWE with workaround below. Found at https://tex.stackexchange.com/questions/423817 Cheers, Henri --- \setupwhitespace[big] \starttext \startsection[title=section]    \startmode[fix]  % Set default whitespace  \setupwhitespace[none

Re: [NTG-context] Bug in wrapped placefigure

2018-03-29 Thread Henri Menke
text > > (eyeballing it, I'd say it is \topskip).  Find MWE with workaround below. > > > > Found at https://tex.stackexchange.com/questions/423817 > > > > Cheers, Henri > > > > --- > > > > \setupwhitespace[big] > > > > \starttext

Re: [NTG-context] Bug in wrapped placefigure

2018-03-29 Thread Hans Hagen
://tex.stackexchange.com/questions/423817 Cheers, Henri --- \setupwhitespace[big] \starttext \startsection[title=section] \startmode[fix] % Set default whitespace \setupwhitespace[none] \stopmode \startplacefigure [location={right}, title={just a dummy figure

[NTG-context] Bug in wrapped placefigure

2018-03-29 Thread Henri Menke
--- \setupwhitespace[big] \starttext \startsection[title=section] \startmode[fix] % Set default whitespace \setupwhitespace[none] \stopmode \startplacefigure [location={right}, title={just a dummy figure}] \externalfigure[dummy][width=.5\textwidth] \stopplacefigure

Re: [NTG-context] Table of contents: style and subject

2018-03-04 Thread Idris Samawi Hamid ادريس سماوي حامد
ection,subsubsection] [alternative=c,style=bold] \setupcombinedlist[content] [list={subject,section,subsection,subsubsection}] % \placecontent % line 12 \placelist[content] % line 13 [subject,section,subsection,subsubsection] \stop \stoptitle \page \startsection[title={Section One},reference={

Re: [NTG-context] Table of contents: style and subject

2018-03-04 Thread Hans Hagen
ection,subsection,subsubsection]   [alternative=c,style=bold] \setupcombinedlist[content]   [list={subject,section,subsection,subsubsection}] \placecontent \placelist[content] [subject,section,subsection,subsubsection] \stop \stoptitle \page \startsection[title={Section One},reference={}] new page

Re: [NTG-context] Table of contents: style and subject

2018-03-04 Thread Idris Samawi Hamid ادريس سماوي حامد
edlist[content] [list={subject,section,subsection,subsubsection}] \placecontent \stop \stoptitle \page \startsection[title={Section One},reference={}] new page \page \stopsection \startsection[title={Section Two},reference={}] new page \page \stopsection \startsubject[title={Subject},ref

Re: [NTG-context] Table of contents: style and subject

2018-03-04 Thread Hans Hagen
[title={Table of Contents},reference={}] \start \setupcombinedlist[content] [list={subject,section,subsection,subsubsection},alternative=c,style=bold] \setupinterlinespace[line=1.4ex] \placecontent \stop \stoptitle \page \startsection[title={Section One},reference={}] new page \page \stopsection

[NTG-context] Table of contents: style and subject

2018-03-03 Thread Idris Samawi Hamid ادريس سماوي حامد
show it \starttext % Approach I \starttitle[title={Table of Contents},reference={}] \start \setupcombinedlist[content] [list={subject,section,subsection,subsubsection},alternative=c,style=bold] \setupinterlinespace[line=1.4ex] \placecontent \stop \stoptitle \page \startsection[title={Section One

Re: [NTG-context] Change of font size affects header text size, too

2018-02-08 Thread Procházka Lukáš Ing .
[Left][Right] \starttext Aaa \page \startsection[title={Sec}] \start \setupbodyfont[6pt] \dorecurse{12}{\input knuth} \stop \stopsection \stoptext header text size on page #2 is small (6 pt) although body font change was intended only to text inside section

Re: [NTG-context] Change of font size affects header text size, too

2018-02-08 Thread Hans Hagen
On 2/8/2018 12:14 PM, Procházka Lukáš Ing. wrote: Hello, in the following example: \setupheadertexts[Left][Right] \starttext   Aaa   \page   \startsection[title={Sec}]     \start   \setupbodyfont[6pt]   \dorecurse{12}{\input knuth}     \stop   \stopsection \stoptext

Re: [NTG-context] Change of font size affects header text size, too

2018-02-08 Thread Wolfgang Schuster
Procházka Lukáš Ing. <mailto:l...@pontex.cz> 8. Februar 2018 um 12:14 Hello, in the following example: \setupheadertexts[Left][Right] \starttext Aaa \page \startsection[title={Sec}] \start \setupbodyfont[6pt] \dorecurse{12}{\input knuth} \stop \stops

[NTG-context] Change of font size affects header text size, too

2018-02-08 Thread Procházka Lukáš Ing .
Hello, in the following example: \setupheadertexts[Left][Right] \starttext Aaa \page \startsection[title={Sec}] \start \setupbodyfont[6pt] \dorecurse{12}{\input knuth} \stop \stopsection \stoptext header text size on page #2 is small (6 pt) although

Re: [NTG-context] structureuservariable in ToC

2018-01-24 Thread Wolfgang Schuster
celist[section] \startsection[title=X][test=A] \stopsection \startsection[title=Y] \stopsection \startsection[title=Z][test=B] \stopsection \stoptext Wolfgang ___ If your question is of interest to others as well, plea

Re: [NTG-context] Command line tool for macro definitions

2018-01-14 Thread Hans Hagen
On 1/14/2018 1:56 AM, Henri wrote: Dear list, For TeX/LaTeX users there is the neat command line tool `texdef` with which you can show the definition of a macro.  Here an example: $ texdef -t latex section \section: \long macro:->\@startsection {section}{1}{\z@ }{-3.5ex \@plus -1ex \@mi

[NTG-context] Command line tool for macro definitions

2018-01-13 Thread Henri
Dear list, For TeX/LaTeX users there is the neat command line tool `texdef` with which you can show the definition of a macro.  Here an example: $ texdef -t latex section \section: \long macro:->\@startsection {section}{1}{\z@ }{-3.5ex \@plus -1ex \@minus -.2ex}{2.3ex \@plus .2ex}{\normalf

Re: [NTG-context] where is latest vim-context?

2017-12-21 Thread Aditya Mahajan
above. It only provides syntax highlighting, a rudimentary intentation plugin, and some keyboard shortcuts: `a -> α, etc. These depend on IMAP helper which is distributed as part of vim-latex. If you have vim-snippets installed, you also get some shortcuts like: sec expands to \startsection[ti

Re: [NTG-context] \setuplist with numbercommand renders wrongly

2017-12-11 Thread Henri
If you want to format the TOC line you have to use command=... together with alternative=command. \define[3]\ChapterNumber{\line{Chapter #1: #2\hfill#3}} \setuplist   [section]   [alternative=command,    command=\ChapterNumber] \starttext \completecontent \startsection[title={blabla

Re: [NTG-context] WYSIWYM editor on top of ConTeXt / Lout

2017-12-07 Thread William Adams
ature or to make it compatible with a newer >> > version of the backend, without needing to modify the editor code. A >> > translation rule is e.g. start_section[title=, >> > back_ground_color=] => @startsection(title -> >> > {}, bg_color -> {}) which will

Re: [NTG-context] WYSIWYM editor on top of ConTeXt / Lout

2017-12-07 Thread William Adams
an add support for a new backend or update an existing > > backend to add more feature or to make it compatible with a newer > > version of the backend, without needing to modify the editor code. A > > translation rule is e.g. start_section[title=, > > back_ground_color=] => @sta

Re: [NTG-context] WYSIWYM editor on top of ConTeXt / Lout

2017-12-07 Thread Roger Mason
le is e.g. start_section[title=, > back_ground_color=] => @startsection(title -> > {}, bg_color -> {}) which will convert a start > section command of the document format into the same command for a > backend format. Skribilo uses an abstract syntax internally and the di

Re: [NTG-context] WYSIWYM editor on top of ConTeXt / Lout

2017-12-07 Thread Floris van Manen
date an existing backend to add more > feature or to make it compatible with a newer version of the backend, without > needing to modify the editor code. A translation rule is e.g. > start_section[title=, back_ground_color=] => > @startsection(title -> {}, bg_color -> {}) which will

Re: [NTG-context] WYSIWYM editor on top of ConTeXt / Lout

2017-12-06 Thread Jonas Baggett
version of the backend, without needing to modify the editor code. A translation rule is e.g. start_section[title=, back_ground_color=] => @startsection(title -> {}, bg_color -> {}) which will convert a start section command of the document format into the same command for a backe

Re: [NTG-context] WYSIWYM editor on top of ConTeXt / Lout

2017-12-05 Thread Jonas Baggett
end format: [ = , = ]{}  =>  @( -> , -> ){} At this point if we have in document: start_section[title = Introduction, back_ground_color = green] it will be translated to @startSection(title -> Introduction, back_ground_color -> green) but if it has instead to be translated to @startHeader(1, Introductio

Re: [NTG-context] Forced Page Break in a Table of Content

2017-10-19 Thread Antoine Cailliau
does not work on ConTeXt ver: 2017.07.27 16:17 MKIV beta > fmt: 2017.7.28 > > The following minimal document does not have the page break. > > \definelistextra[page][before=\page] >> \starttext >> \placecontent[criterium=all,extras={2=page}] >> \startsec

[NTG-context] Problems with setfirstline

2017-10-18 Thread Rik Kabel
    \stopparagraph \startsection[title=First line only]     \startparagraph     \input montgomery     \stopparagraph     \startparagraph     \input sapolsky     \stopparagraph     \stopsection     \stopchapter \stopbuffer

<    1   2   3   4   5   6   7   >