Re: [NTG-context] structureuservariable in ToC

2018-01-24 Thread Henning Hraban Ramm
Am 2018-01-24 um 19:18 schrieb Wolfgang Schuster <schuster.wolfg...@gmail.com>: >> Henning Hraban Ramm 24. Januar 2018 um 08:51 >> >> Thank you, now I have: >> >> \define[1]\ChapterTocEntry{% >> \doifnotempty{\structurelistuservariable{author}}{\struc

Re: [NTG-context] structureuservariable in ToC

2018-01-24 Thread Wolfgang Schuster
Henning Hraban Ramm <mailto:te...@fiee.net> 24. Januar 2018 um 08:51 Thank you, now I have: \define[1]\ChapterTocEntry{% \doifnotempty{\structurelistuservariable{author}}{\structureuservariable{author}\crlf }% #1% \doifnotempty{\structurelistuservariable{subtitle}}{\crlf\structureuserva

Re: [NTG-context] structureuservariable in ToC

2018-01-24 Thread Henning Hraban Ramm
Am 2018-01-24 um 16:42 schrieb Wolfgang Schuster <schuster.wolfg...@gmail.com>: >> Henning Hraban Ramm 24. Januar 2018 um 08:51 >> >> Thank you, now I have: >> >> \define[1]\ChapterTocEntry{% >> \doifnotempty{\structurelistuservariable{author}}{\struc

Re: [NTG-context] structureuservariable in ToC

2018-01-24 Thread Wolfgang Schuster
Henning Hraban Ramm <mailto:te...@fiee.net> 24. Januar 2018 um 08:51 Thank you, now I have: \define[1]\ChapterTocEntry{% \doifnotempty{\structurelistuservariable{author}}{\structureuservariable{author}\crlf }% #1% \doifnotempty{\structurelistuservariable{subtitle}}

Re: [NTG-context] structureuservariable in ToC

2018-01-23 Thread Henning Hraban Ramm
uctureuservariable{author}}{\structureuservariable{author}\crlf >> }% >> #1% >> \doifnotempty{\structureuservariable{subtitle}}{\crlf\structureuservariable{subtitle}}} > To access the variables in a list you have to use the > \structurelistuservariabl

Re: [NTG-context] notes in the margin

2018-01-23 Thread Henning Hraban Ramm
>> \dorecurse{6}{\input ward\expanded{\footnote{This is a footnote >> \recurselevel}} } >> \stoptext > > Oh, seems like I didn’t answer to that, sorry. > > Thank you very much, this solves my problem for the most part. > > Coming back to this now, since I com

Re: [NTG-context] structureuservariable in ToC

2018-01-23 Thread Wolfgang Schuster
Henning Hraban Ramm <mailto:te...@fiee.net> 14. Januar 2018 um 21:44 Now, my second issue with user variables: """ \define[1]\ChapterTocEntry{% \doifnotempty{\structureuservariable{author}}{\structureuservariable{author}\crlf }% #1% \doifnotempty{\structureuservari

Re: [NTG-context] structureuservariable in ToC

2018-01-23 Thread Henning Hraban Ramm
GPG Key ID 1C9B22FD Am 2018-01-14 um 21:44 schrieb Henning Hraban Ramm <te...@fiee.net>: > Now, my second issue with user variables: > > """ > \define[1]\ChapterTocEntry{% > > \doifnotempty{\structureuservariable{author}}{\structureuservariable{author}\crlf >

[NTG-context] Registers and getparameters

2018-01-22 Thread Otared Kavian
:\TalkSpeakerName]{} {\bi Speaker~:\/} \TalkSpeakerName \speakers{\TalkSpeakerName}.\crlf {\bi Title :} \TalkTitle \crlf {\bi Time:} \TalkTime \crlf {\bi Room :} \TalkRoom\crlf \hairline\par} \starttext \getparameters[Talk]% [SpeakerName

[NTG-context] structureuservariable in ToC

2018-01-14 Thread Henning Hraban Ramm
Now, my second issue with user variables: """ \define[1]\ChapterTocEntry{% \doifnotempty{\structureuservariable{author}}{\structureuservariable{author}\crlf }% #1% \doifnotempty{\structureuservariable{subtitle}}{\crlf\structureuservariable{subtitle}}} \setuplist[chapt

Re: [NTG-context] type and typing comments for TeX and Lua

2017-12-21 Thread Christoph Reller
or XML you could use my module highlight-xml: \usemodule[highlight-xml] \definetype[xml][option=xml] \starttext \startTEXpage[offset=2em] \xml{attr="value"}\crlf \xml{This is text.} \startXML This is tex

[NTG-context] problems with XML export

2017-11-11 Thread Henning Hraban Ramm
se{#1}}\dostoptagged} \starttabulate[|lw(1cm)|p|] \NC AFG\NC \SC{SED}, Akademie für Gesellschaftswissenschaften, Schriftenverzeichnis\NC\NR \NC BER\crlf\color[white]{dummy}\NC Hochschule der Deutschen Gewerkschaften \quotation{Fritz Heckert} in Bernau, Schriftenverzeichnis\NC\NR

[NTG-context] Tagging nested itemize with interaction

2017-10-31 Thread Christoph Reller
Dear Hans, Consider the following MWE with nested multi-column itemize and item label: \setuptagging[state=start] \setupinteraction[state=start] \starttext \startitemize[n] \item[label] First \startitemize[a, columns] \item Second \item Third \stopitemize \stopitemize\crlf Bla \in{Item

Re: [NTG-context] notes in the margin

2017-10-24 Thread Henning Hraban Ramm
would be nice if we had a solution how those notes won’t collide; is there some trick how I can shift a note up or down manually? Additionally, since my note number gets its own line, I’d like to get rid of the indenting, but couldn’t f

Re: [NTG-context] Quotation with method=font produces error

2017-10-23 Thread Christoph Reller
>> wrote: >> > >> > \setupquotation[method=font] >> >> what is the intension of the method=font ? >> >> > Thank you for asking. Consider the following MWE: > > \setupbodyfont[cambria] > %\setupquotation[method=font] > \starttext > \q

Re: [NTG-context] Quotation with method=font produces error

2017-10-19 Thread Christoph Reller
ont ? > > Hi Floris, Thank you for asking. Consider the following MWE: \setupbodyfont[cambria] %\setupquotation[method=font] \starttext \quotation{A}\crlf “A” \stoptext In the output rendering of the above (see attachment), the first line lacks kerning between the double quotes and the letter

Re: [NTG-context] synctex

2017-07-19 Thread Thomas Floeren
n still force the >> original synctex by setting \normalsynctex but it can interfere with the >> context variant when set) > > > I think I have found a problem with the new synctex: > > Synctex works perfectly fine – until the first occurence of a \readfile. From >

Re: [NTG-context] synctex

2017-07-11 Thread Thomas Floeren
y setting \normalsynctex but it can interfere with the > context variant when set) I think I have found a problem with the new synctex: Synctex works perfectly fine – until the first occurence of a \readfile. From that point on it always takes me to the imported file, no matter whether t

Re: [NTG-context] Problem with macro with optional parameter

2017-06-27 Thread Jaroslav Hajtmar
. \Command % OK 3. As You see, Command without braces swallows the break of the paragraph. 1. \dorecurse{\Command{5}}{\recurselevel\crlf} % not working 2. \dorecurse{\Command{}}{\recurselevel\crlf} % not working \stoptext Jaroslav Hajtmar Dne 27.06.17 13:05, ntg-context za uživatele Henri

Re: [NTG-context] Problem with macro with optional parameter

2017-06-27 Thread Henri Menke
> 1. \Command[5] % OK >   > 2. \Command  % OK >   >   >   >   > %1. \dorecurse{\Command[5]}{\recurselevel\crlf} % not working >   > %2. \dorecurse{\Command}{\recurselevel\crlf}  % not working The first argument to \dorecurse has to expand to a number.  Therefore it h

[NTG-context] Problem with macro with optional parameter

2017-06-27 Thread Jaroslav Hajtmar
\else100\fi} %\def\AnotherCommand% % {\dosingleargument\DoAnotherCommand} \starttext 1. \Command[5] % OK 2. \Command % OK %1. \dorecurse{\Command[5]}{\recurselevel\crlf} % not working %2. \dorecurse{\Command}{\recurselevel\crlf} % not working \stoptext

Re: [NTG-context] Adjusting column width dynamically to get rid of orphans and widows

2017-06-25 Thread Hans Hagen
enalty\maxdimen \clubpenalty \maxdimen {\tf test #1.1}\crlf {\bi test #1.2}\crlf {\tf test #1.3}\crlf {\bf test #1.4}\relax \par } \stopbuffer \dorecurse{20}{ \dontcomplain \startmixedcolumns[balance=yes] \dorecurse{#1}{line #

Re: [NTG-context] setupitemgroup and 'command='

2017-05-24 Thread Thomas Floeren
setupwhitespace[none]. (It completely annihilates any whitespace.) Compile this to see what I mean: \definepapersize[Tmp][width=120mm,height=400mm] \setuppapersize [Tmp] \setupwhitespace[2\lineheight] \startbuffer bla, bla\crlf bla, bla \stopbuffer \starttext Normal text: \getbuffer\par \g

Re: [NTG-context] Comical error..

2017-02-12 Thread josephcanedo
rm i}x))$} \blank {\rmmediumsized This is roman medium sized. \crlf $\cos(x) = {\rm Re}(\exp({\rm i}x))$} \stoptext -- Some questions: 1. Where is the basic size of the font family defined in points? 2. In the second example which of the many Dejavu fonts is a

Re: [NTG-context] Comical error..

2017-02-11 Thread John Culleton
))$} \blank {\rmmediumsized This is roman medium sized. \crlf $\cos(x) = {\rm Re}(\exp({\rm i}x))$} \stoptext -- Some questions: 1. Where is the basic size of the font family defined in points? 2. In the second example which of the many Dejavu fonts is assumed

Re: [NTG-context] 'overprint' swallows leading number

2017-01-06 Thread Peter Rolf
orintent{#2}\relax}} > > Thanks, that fixed it. The overflow still occurs, will look deeper into it. > >> (ConTeXt 2016.12.28 17:55) >> >> minimal example: >> >> \starttext >> \startluacode >> local bCI,eCI = context.startcol

Re: [NTG-context] 'overprint' swallows leading number

2017-01-06 Thread Hans Hagen
\startluacode local bCI,eCI = context.startcolorintent, context.stopcolorintent bCI({"overprint"})context("1.2345\\crlf")eCI() -- also no 'overprint' for that text part in the PDF bCI({"overprint"})context("First number is missing.\\crlf")eCI() \stoplua

[NTG-context] 'overprint' swallows leading number

2017-01-06 Thread Peter Rolf
Hi, title says it all. (ConTeXt 2016.12.28 17:55) minimal example: \starttext \startluacode local bCI,eCI = context.startcolorintent, context.stopcolorintent bCI({"overprint"})context("1.2345\\crlf")eCI() -- also no 'overprint' for that text part in the

Re: [NTG-context] Strange behaviour of itemize inside tabulate

2016-11-21 Thread Willi Egger
ttabulate[|l|p|] >> \NC \bf Druk procedé \NC \bf Opmerking \NC\NR >> \NC Offset \NC \strut weinig problemen als onverpakt\crlf >> \NC\NR >> \NC Digitaal\NC beduidend lager i.v.m. warmte fixatie. >>

Re: [NTG-context] Strange behaviour of itemize inside tabulate

2016-11-20 Thread Herbert Voss
\starttabulate[|l|p|] \NC \bf Druk procedé \NC \bf Opmerking \NC\NR \NC Offset \NC \strut weinig problemen als onverpakt\crlf \NC\NR \NC Digitaal\NC beduidend lager i.v.m. warmte fixatie

[NTG-context] Strange behaviour of itemize inside tabulate

2016-11-20 Thread Willi Egger
onverpakt\crlf \NC\NR \NC Digitaal\NC beduidend lager i.v.m. warmte fixatie. \startitemize \startitem

[NTG-context] \xmlchainatt behaviour

2016-11-11 Thread Meer, Hans van der
o:chainatt} \startxmlsetups demo:chainatt:root root: xmlatt = <\xmlatt{#1}{test}>\crlf root: xmlchainatt = <\xmlchainatt{#1}{test}>\crlf \xmlall{#1}{*} \stopxmlsetups \startxmlsetups demo:chainatt:node -- node: xmlatt test = <\xmlatt{#1}{test}>\crlf

[NTG-context] indenting and whitespace in framedtext

2016-11-09 Thread Meer, Hans van der
=\textwidth]}\crlf \startframedtext[width=\textwidth] Text for testing indenting of praragraphs. A lot of nonsense just to fill the paragraph so that more than one line is typeset. A lot of nonsense just to fill the paragraph so that more than one line is typeset. Text for testing indenting

Re: [NTG-context] How to clone \underbar?

2016-10-19 Thread Wolfgang Schuster
derbar] \starttext underbar text mode: \underbar{$a^b$} \crlf underbar math mode: $\underbar{a^b}$ \crlf myBar text mode: \myBar{$a^b$} \crlf myBar math mode: $\myBar{a^b}$ \stoptext ConTeXt uses different code for the \underbar commands inside and outside of math mode, in text mode \underba

[NTG-context] How to clone \underbar?

2016-10-19 Thread Florian Leupold
Dear list, how can I clone \underbar (for the purpose of changing settings for the clone afterwards)? Just using \definebar to inherit \underbar’s properties does not entirely work, see MWE: \definebar[myBar][underbar] \starttext underbar text mode: \underbar{$a^b$}\crlf underbar

[NTG-context] loading and executing xml-buffer

2016-10-12 Thread Meer, Hans van der
\enabletrackers[lxml.loading,lxml.setups] \startxmlsetups xml:demo:base \xmlsetsetup{#1}{document|buffer|getbuffer|execbuffer|b}{xml:demo:*} \stopxmlsetups \xmlregisterdocumentsetup{demo}{xml:demo:base} \startxmlsetups xml:demo:buffer ... enter for "\xmlatt{#1}{name}&

Re: [NTG-context] Last version standalone ConTeXt issue.

2016-10-10 Thread Meer, Hans van der
t; www.pragma-pod.nl<http://www.pragma-pod.nl> > - As an example I executed the following code: \starttext \framed{\ConTeXt-version = \contextversion}\blank \def\nofoo{This is nofoo} \startluacode if interfaces.defined("f

Re: [NTG-context] problem with \startcolumns[distance=0pt]

2016-10-06 Thread Michael Witten
In particular, Peter's example produces something like the following: (I'm assuming these 90-character-plus-CRLF lines made it through the Internet; if they did not make it, then someone's email-processing software is non-conformant, so shame on him!) We thrive in information-thick worlds scr

Re: [NTG-context] underscore added by xtable

2016-09-08 Thread Wolfgang Schuster
Peter Münster <mailto:pmli...@free.fr> 8. September 2016 um 16:58 Thanks, it works even in my original document! (Beforehand I'd tried combinations of line, nowhite, none..., but without success...) Does it mean, that \crlf is deprecated and should always be replaced by

Re: [NTG-context] underscore added by xtable

2016-09-08 Thread Peter Münster
On Thu, Sep 08 2016, Wolfgang Schuster wrote: > \blank[fixed,depth] Thanks, it works even in my original document! (Beforehand I'd tried combinations of line, nowhite, none..., but without success...) Does it mean, that \crlf is deprecated and should always be replaced by \bl

Re: [NTG-context] underscore added by xtable

2016-09-08 Thread Peter Münster
lus 0.2ex] \setupxtable[frame=off, boffset=0pt, toffset=0pt, rulethickness=0pt] \starttext Good\crlf \startxtable \startxrow \startxcell spacing \stopxcell \stopxrow \startxrow \startxcell here. \stopxcell \stopxrow \stopxtable Unwanted\blank[depth] \startxtable \startxrow \startxcell

Re: [NTG-context] underscore added by xtable

2016-09-08 Thread Wolfgang Schuster
Peter Münster <mailto:pmli...@free.fr> 8. September 2016 um 15:34 Sorry, but the result is still not the same: --8<---cut here---start->8--- \setupwhitespace[1ex] \starttext bla bla:\crlf \startxtable \startxrow \startxcell bla \stopxce

Re: [NTG-context] underscore added by xtable

2016-09-08 Thread Peter Münster
On Thu, Sep 08 2016, Wolfgang Schuster wrote: > bla bla\blank[nowhite] > bla bla Sorry, but the result is still not the same: --8<---cut here---start->8--- \setupwhitespace[1ex] \starttext bla bla:\crlf \startxtable \startxrow \startxcell bl

Re: [NTG-context] underscore added by xtable

2016-09-08 Thread Wolfgang Schuster
Peter Münster <mailto:pmli...@free.fr> 8. September 2016 um 15:01 With whitespace, the result is not the same: --8<---cut here---start->8--- \setupwhitespace[1ex] \starttext bla bla\crlf bla bla\par bla bla bla bla\blank[nowhite] bla bla \

Re: [NTG-context] underscore added by xtable

2016-09-08 Thread Peter Münster
On Thu, Sep 08 2016, Wolfgang Schuster wrote: > bla bla:\crlf > > Use \par or add a empty line between the text and the table. With whitespace, the result is not the same: --8<---cut here---start->8--- \setupwhitespace[1ex] \starttext bla b

Re: [NTG-context] underscore added by xtable

2016-09-08 Thread Wolfgang Schuster
Peter Münster <mailto:pmli...@free.fr> 8. September 2016 um 12:45 Hi, Just after the table, there is an unwanted underscore: --8<---cut here---start->8--- \starttext bla bla:\crlf Use \par or add a empty line between the text and the table.

[NTG-context] underscore added by xtable

2016-09-08 Thread Peter Münster
Hi, Just after the table, there is an unwanted underscore: --8<---cut here---start->8--- \starttext bla bla:\crlf \startxtable[split=yes] \startxrow \startxcell bla \stopxcell \stopxrow \stopxtable \stoptext --8<---cut here-

Re: [NTG-context] Interlining in a TwoColumns set

2016-08-12 Thread Jean-Pierre Delange
eight,x=.82\paperwidth] {\externalfigure[Images/Logo.svg][][height=0.2\textwidth]} % Activate all layers for this page... \setupbackgrounds[page][background={logo_layer}] % Start document body... \starttext % Header... {\switchtobodyfont[40pt] Anciens et Modernes \crlf} \blackrule[h

Re: [NTG-context] A new problem in old TOC

2016-07-18 Thread Ursula Hermann
age][2] The two settings above can be removed because they aren’t necessary for the example. \startchapter [title={Ursula Hermann\indenting[yes, next] Danksagung}] The \crlf command insert a line break in the ToC and the heading \startchapter[title={Ursula Hermann\crlf Dank

Re: [NTG-context] A new problem in old TOC

2016-07-15 Thread Wolfgang Schuster
ttings above can be removed because they aren’t necessary for the example. \startchapter [title={Ursula Hermann\indenting[yes, next] Danksagung}] The \crlf command insert a line break in the ToC and the heading \startchapter[title={Ursula Hermann\crlf Danksagung}] and the \\ command i

Re: [NTG-context] smallcaps

2016-06-29 Thread Alan Bowen
upbodyfont[cambria] > cambria: uppercase <ABC-{\sc ABC}> smallcaps\blank > \LuaTeX-version=0.\the\luatexversion\crlf > \ConTeXt-version=\contextversion\crlf > \stoptext > > > > > > > > > ___

Re: [NTG-context] smallcaps

2016-06-29 Thread Meer, Hans van der
] cambria: uppercase <ABC-{\sc ABC}> smallcaps\blank \LuaTeX-version=0.\the\luatexversion\crlf \ConTeXt-version=\contextversion\crlf \stoptext Smallcaps changes only the layout of lowercase letters but some fonts let you also change uppercase letters. In the example below you can see how you ca

Re: [NTG-context] smallcaps

2016-06-29 Thread Wolfgang Schuster
ething wrong here? Hans van der Meer Minimal example and output: \setuppapersize[A5][A5] \starttext \setupbodyfont[lmodern] lmodern: uppercase <ABC-{\sc ABC}> smallcaps\blank \setupbodyfont[cambria] cambria: uppercase <ABC-{\sc ABC}> smallcaps\blank \LuaTeX-version=0.\the\luatexver

Re: [NTG-context] smallcaps

2016-06-29 Thread Mikael P. Sundqvist
se <ABC-{\sc ABC}> smallcaps\blank > \LuaTeX-version=0.\the\luatexversion\crlf > \ConTeXt-version=\contextversion\crlf > \stoptext > > > > > > > > ___ > If your question is of i

[NTG-context] smallcaps

2016-06-29 Thread dr. Hans van der Meer
[A5][A5] \starttext \setupbodyfont[lmodern] lmodern: uppercase <ABC-{\sc ABC}> smallcaps\blank \setupbodyfont[cambria] cambria: uppercase <ABC-{\sc ABC}> smallcaps\blank \LuaTeX-version=0.\the\luatexversion\crlf \ConTeXt-version=\contextversion\crlf \stoptext smallcaps.pdf Descriptio

Re: [NTG-context] orphan headline

2016-05-26 Thread Wolfgang Schuster
me=off, bottomframe=on]\crlf},after={\stopframedtext\noindentation\blank[1cm]}] \setuphead[subsection] [style=\ss, before={\blank[0.5cm]\startframedtext[offset=0.25cm,framecolor=black, rulethickness=0.01cm, frame=off, topframe=off, bottomframe=on]\crlf},after={\stopframedtext\noindentation\bla

Re: [NTG-context] orphan headline

2016-05-26 Thread Pablo Rodriguez
mecolor=black, > rulethickness=0.01cm, frame=off, topframe=off, > bottomframe=on]\crlf},after={\stopframedtext\noindentation\blank[1cm]}] > > \setuphead[subsection] > [style=\ss, > before={\blank[0.5cm]\startframedtext[offset=0.25cm,framecolor=black, > rulethickness=0.01cm, fra

[NTG-context] orphan headline

2016-05-26 Thread Andrea Valle
. I guess it could depend on the formatting of my headlines. Here they are: \setuphead[section] [style=\ss\tfa, before={\blank[0.5cm]\startframedtext[offset=0.25cm,framecolor=black, rulethickness=0.01cm, frame=off, topframe=off, bottomframe=on]\crlf},after={\stopframedtext\noindentation\blank

Re: [NTG-context] Alignment/line break in a TABLE cell

2016-05-19 Thread Mari Voipio
el enclosure \eTD \eTR % \bTR \bTD \dontleavehmode\externalfigure[box3mm] 3\crlf \externalfigure[box3mm] 3a \eTD \bTD PR-7610 Table top standfor Multichannel user interface, contains a set of four

[NTG-context] Alignment/line break in a TABLE cell

2016-05-19 Thread Mari Voipio
\externalfigure[box3mm] 3\crlf \externalfigure[box3mm] 3a \eTD \bTD \eTD \eTR % \bTR \bTD \externalfigure[box3mm] 4 \eTD \bTD \eTD \eTR \eTABLE \stoptext Mari PS. I don't think it is relevant here, but my

[NTG-context] Reviewing old messages

2016-05-16 Thread Meer, Hans van der
\framed can use a \hbox or a \vbox to place the content, by default it uses a \hbox but when you set the correct value for the align key it uses a \vbox. Wolfgang % testting hbox-vbox behaviour for framed. \starttext input:\verbatim{\hbox{\hbox{abc}\hbox{xyz}}}\crlf \hbox{\hbox{abc}\hbox{xyz}}\blank inp

Re: [NTG-context] xml expression error

2016-05-12 Thread Hans Hagen
a mistake. Hans van der Meer % failure of negative number comparison. \startxmlsetups demo:numberfail \xmlsetsetup{#1}{root|node}{demo:numberfail:*} \stopxmlsetups \xmlregisterdocumentsetup{demo}{demo:numberfail} \startxmlsetups demo:numberfail:root @atta >= 1:\crlf \xmlfilter{#1}{/[number(@atta)

Re: [NTG-context] xml expression error

2016-05-12 Thread Meer, Hans van der
van der Meer % failure of negative number comparison. \startxmlsetups demo:numberfail \xmlsetsetup{#1}{root|node}{demo:numberfail:*} \stopxmlsetups \xmlregisterdocumentsetup{demo}{demo:numberfail} \startxmlsetups demo:numberfail:root @atta >= 1:\crlf \xmlfilter{#1}{/[number(@atta) >=

Re: [NTG-context] headline and no indent

2016-05-09 Thread Andrea Valle
>> indent. >> Hmm, how to get this? >> >> >> For chapter/section/subsection >> I have e.g. >> >> \setuphead[chapter] >> [style=\ss\tfc, before={\blank[1cm]\startframedtext[width=local, >> foregroundcolor=black, background=color,

Re: [NTG-context] headline and no indent

2016-05-09 Thread Wolfgang Schuster
gGrey1, framecolor=bgGrey2,offset=0.25cm, rulethickness=0.05cm, frame=off, topframe=on, bottomframe=on]\crlf},after={\stopframedtext\blank[4cm]}] Is there an available option to be set? You have to add \noindentation after \stopframedtext. \setuphead [chapter] [before={\startframedtext},

Re: [NTG-context] headline and no indent

2016-05-09 Thread Marco Patzer
off, > topframe=on, > bottomframe=on]\crlf},after={\stopframedtext\blank[4cm]}] That's all not relevant to indenting. It's best to create a small *working* example with only the necessary options. Marco ___ If your qu

[NTG-context] headline and no indent

2016-05-09 Thread Andrea Valle
, topframe=on, bottomframe=on]\crlf},after={\stopframedtext\blank[4cm]}] Is there an available option to be set? Many thanks -a- -- Andrea Valle -- CIRMA - StudiUm Università degli Studi di Torino --> h

Re: [NTG-context] Define font based on language

2016-05-08 Thread Wolfgang Schuster
Michal Ondrejáš <mailto:michal.ondre...@dlubal.cz> 4. April 2016 um 15:17 Hello I need some help regarding font definitions. The situation is like this: \definefont [issuefont] [SansRegular at 14pt] {\issuefont \labeltext{issue} \crlf \documentvariable{issue}} I need to get chines

[NTG-context] Vertical align in side by side paragraphs

2016-05-06 Thread Tom Harrop
, before={\blank}, after={\blank}] \setupparagraphs[Par][1] [align=flushleft] \setupparagraphs[Par][2] [align=flushright] \startPar \vfill % I hoped this would push bob’s address down Bob’s name \crlf Company \crlf Bob’s street \crlf Bob’s town \crlf Bob’s country \Par My street

[NTG-context] Define font based on language

2016-05-05 Thread Michal Ondrejáš
Hello I need some help regarding font definitions. The situation is like this: \definefont [issuefont] [SansRegular at 14pt] {\issuefont \labeltext{issue} \crlf \documentvariable{issue}} I need to get chinese text into the issue variable, but for that I need to change the font. I need

Re: [NTG-context] typesetting content of attribute

2016-04-30 Thread Meer, Hans van der
ocumentsetup{demo}{demo:texatt} \startxmlsetups demo:texatt:root \xmlflush{#1} \stopxmlsetups \startxmlsetups demo:texatt:node node: attribute textstyle = \xmlchainatt{#1}{textstyle}\crlf now use \tex{it}: {\starttexcode \xmlchainatt{#1}{textstyle}"should be italic" \stoptexcode }\crlf

[NTG-context] evaluation of != and ~=

2016-04-29 Thread Meer, Hans van der
;http://ll.at>['atta'])) ~== 1 Hans van der Meer % failure of test on inequality. \startxmlsetups demo:comparefail \xmlsetsetup{#1}{root|node}{demo:comparefail:*} \stopxmlsetups \xmlregisterdocumentsetup{demo}{demo:comparefail} \startxmlsetups demo:comparefail:root compare \type{!=}\crlf \x

Re: [NTG-context] xml expression error

2016-04-29 Thread Meer, Hans van der
mber comparison. \startxmlsetups demo:numberfail \xmlsetsetup{#1}{root|node}{demo:numberfail:*} \stopxmlsetups \xmlregisterdocumentsetup{demo}{demo:numberfail} \startxmlsetups demo:numberfail:root @atta >= 1:\crlf \xmlfilter{#1}{/[number(@atta) >= 1]/command(demo:numberfail:node)} \blank @atta >

Re: [NTG-context] xml input

2016-04-21 Thread Mica Semrick
tes}{notes:*} >\stopxmlsetups >\xmlregisterdocumentsetup{notes}{notes:setups} >\startxmlsetups notes:notes >\xmlinclude{#1}{include}{file} >\xmlshow{#1} >===> number of = \xmlcount{#1}{note} >\stopxmlsetups >\starttext >Ok with \type{\xmlprocessbuffer{notes}{notes-xm

Re: [NTG-context] Overlapping terms in description lists

2016-04-21 Thread luigi scarso
box, and its height is fixed to \strutht (and the depth to \strutdp) so basically the title is one line. You can try with hand-tuning, ie \definedescription[description][before=\nowhitespace, after=\vskip0.25em,width=7\emwidth] \starttext \startdescription[title

Re: [NTG-context] xml input

2016-04-21 Thread Meer, Hans van der
ocumentsetup{notes}{notes:setups} \startxmlsetups notes:notes \xmlinclude{#1}{include}{file} \xmlshow{#1} ===> number of = \xmlcount{#1}{note} \stopxmlsetups \starttext Ok with \type{\xmlprocessbuffer{notes}{notes-xml}{notes:notes}}\crlf \xmlprocessbuffer{notes}{notes-xml}{notes:notes} \bl

Re: [NTG-context] Alignment for narrower text

2016-04-03 Thread Wolfgang Schuster
Jan Tosovsky <mailto:j.tosov...@email.cz> 2. April 2016 um 23:42 I thought Hans could also mean something like example below, but while leftskip should 'indent' all lines inside paragraph, it works only for the first one. Moreover, protrusion is not applied as well. And \crlf doesn'

Re: [NTG-context] Alignment for narrower text

2016-04-02 Thread Jan Tosovsky
n in this case may look ugly, it is consistent with the rest. I thought Hans could also mean something like example below, but while leftskip should 'indent' all lines inside paragraph, it works only for the first one. Moreover, protrusion is not applied as well. And \crlf doesn't seem to be soft

Re: [NTG-context] Shading to transparent using withshademethod

2016-01-28 Thread Hans Hagen
ecolor[mp:fg] [s=.85,t=1,a=1] \setupbackgrounds [page] [background=color,backgroundcolor=tex:bg] \starttext \contextversion\crlf \startMPcode % lightgray = 0.85white; fill fullsquare xyscaled (12cm, 12cm) withshademethod "linear" withshadevector (-1,0)

Re: [NTG-context] Shading to transparent using withshademethod

2016-01-28 Thread Marco Patzer
Indeed, if you choose the colours wisely you don't necessarily need transparency (at least in my use case). > \unprotect > > \def\MPcoloronly#1% >{\clf_mpcolor > \attribute\colormodelattribute > \colo_helpers_inherited_current_ca{#1} % > \zerocount} > > \def\MPtransp

Re: [NTG-context] \doiftext vs. \doifemtpy

2016-01-14 Thread Meer, Hans van der
Watch out. There is a pitfall here (yes, I have fallen in this trap). Try \type{\doifempty{\empty}{yes}} = <\doifempty{\empty}{yes}>\crlf and you will see that it is NOT empty despite the suggestive use of the \empty macro! Hans van der Meer On 14 Jan 2016, at 08:41, Marco Patze

[NTG-context] Bug in table ?

2015-12-20 Thread Christian Prim
resultierende Kraft $\vec{F}_{\rm res}$ Null ist.}\NC\AR \MR \NC Drehmoment \NC\Use2[lM]{M=Fr} \NC [M]=\unit{1 Newton meter}\NC\AR \NC \NC F \NC Kraft ($\perp$\ zur DA) \NC [F]=\unit{1 Newton}\NC\AR \NC \NC r \NC Kraftarm (Abstand DA – Wirkungslinie) \NC [r]=\unit{1 meter}\NC\AR \MR \NC Momenten-\crlf

Re: [NTG-context] \rm for greek letters in math mode

2015-12-01 Thread Kate F
roman? > > \starttext > \delta $\delta {\rm \delta}$\crlf > d $d {\rm d}$ > \stoptext This seems to do what I'm after: \appendtoks\rm\to\everymathematics \setupmathematics[lcgreek=normal] -- Kate ___ If

[NTG-context] \rm for greek letters in math mode

2015-11-30 Thread Kate F
I see the third \delta here as italic, where I would have expected it to be in roman, as for the "d" example below. Likewise for all greek letters, I think. Why is that? How can I have these in roman? \starttext \delta $\delta {\rm \delta}$\crlf d $d {\rm d}$ \stoptext Thanks,

Re: [NTG-context] How to start a \definedescription-defined description's body on a new line, not the same as the description's header?

2015-10-16 Thread Otared Kavian
gt; \definedescription command to achieve this? I've tried all kinds of things > with the 'before', 'inbetween', 'after', 'indentnext', 'command', and > 'headcommand' options of the \definedescription command (based on > http://wiki.contextgarden.net/Command/setupdescriptions > <http:/

[NTG-context] How to start a \definedescription-defined description's body on a new line, not the same as the description's header?

2015-10-16 Thread Louis Strous
achieve this? I've tried all kinds of things with the 'before', 'inbetween', 'after', 'indentnext', 'command', and 'headcommand' options of the \definedescription command (based on http://wiki.contextgarden.net/Command/setupdescriptions), using \par, \crlf, and \vspace, but didn't get the desired r

Re: [NTG-context] \emptylines non-functional

2015-09-09 Thread Hans Hagen
On 9/9/2015 2:17 AM, Rik Kabel wrote: On 2015-09-08 17:52, Hans Hagen wrote: \def\spac_lines_empty[#1]% {\endgraf \begingroup \forgetall \scratchcounter\iffirstargument#1\else3\fi\relax \ifhmode \crlf \advance\scratchcounter\minusone \fi \dorecurse\scratchcounter

Re: [NTG-context] \emptylines non-functional

2015-09-09 Thread Aditya Mahajan
On Wed, 9 Sep 2015, Hans Hagen wrote: On 9/9/2015 2:17 AM, Rik Kabel wrote: On 2015-09-08 17:52, Hans Hagen wrote: \def\spac_lines_empty[#1]% {\endgraf \begingroup \forgetall \scratchcounter\iffirstargument#1\else3\fi\relax \ifhmode \crlf \advance\scratchcounter

Re: [NTG-context] \emptylines non-functional

2015-09-08 Thread Hans Hagen
On 9/8/2015 10:49 PM, Rik wrote: \setuppapersize[A5] \startcolumns[n=3] With non-empty lines\crlf asdf\crlf asdf\crlf asdf\crlf asdf \column With\tex{emptylines[2]} \emptylines[2] asdf\crlf asdf \column With\tex{blank[2*big]} \blank[2*big

[NTG-context] \emptylines non-functional

2015-09-08 Thread Rik
\emptylines is not producing empty lines. Here is the example from the wiki <http://wiki.contextgarden.net/Command/emptylines>: \setuppapersize[A5] \startcolumns[n=3] With non-empty lines\crlf asdf\crlf asdf\crlf asdf\crlf asdf \column With\tex{emptyl

Re: [NTG-context] \emptylines non-functional

2015-09-08 Thread Rik Kabel
On 2015-09-08 17:52, Hans Hagen wrote: \def\spac_lines_empty[#1]% {\endgraf \begingroup \forgetall \scratchcounter\iffirstargument#1\else3\fi\relax \ifhmode \crlf \advance\scratchcounter\minusone \fi \dorecurse\scratchcounter{\strut\crlf}% \endgroup} Hmmm. I

Re: [NTG-context] superscripts th nd rd st on dates etc..

2015-08-27 Thread Hans Hagen
\dorecurse{10}{\ordinaldaynumber{\recurselevel}\crlf} \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman

Re: [NTG-context] superscripts th nd rd st on dates etc..

2015-08-26 Thread Wolfgang Schuster
in manual mode. You can’t show them as superscript when you use the \date command but in manual mode you can also use \ordinaldaynumber. \starttext \dorecurse{10}{\ordinaldaynumber{\recurselevel}\crlf} \stoptext Wolfgang

Re: [NTG-context] xmlconcat

2015-08-23 Thread Hans Hagen
xmltest:setups \xmlsetsetup{\xmldocument}{root|test}{xmltest:*} \stopxmlsetups \xmlregistersetup{xmltest:setups} \startxmlsetups xmltest:root \writestatus{TEST}{calling xmltest:root} \xmlconcat{#1}{test}{xxx}\crlf \xmlconcat{#1}{test/command(xmltest:test)}{yyy}\crlf \stopxmlsetups \startxmlsetups

[NTG-context] xmlconcat

2015-08-22 Thread Meer, H. van der
}{xmltest:*} \stopxmlsetups \xmlregistersetup{xmltest:setups} \startxmlsetups xmltest:root \writestatus{TEST}{calling xmltest:root} \xmlconcat{#1}{test}{xxx}\crlf \xmlconcat{#1}{test/command(xmltest:test)}{yyy}\crlf \stopxmlsetups \startxmlsetups xmltest:test \xmlflush{#1} \stopxmlsetups \startbuffer

[NTG-context] Formatting TOC

2015-08-03 Thread robheus
={nothyphenated}] \setuphead[subject][indentnext=yes,style=\tf] \define[3]\PartListEntry{ \vbox{DEEL #1\crlf #2} } \setuplist[part][state=start,headnumber=no,pagenumber=no,alternative=command,command=\PartListEntry] \setuplist[chapter][before

[NTG-context] Dig out contents of the TeX macro using Lua

2015-07-14 Thread Jaroslav Hajtmar
' if parameter1=='' then context('Test '..parameter1..' = is TRUE. ') else context('Test '..parameter1..' = is FALSE. ') end context('Parameter 1 = '..parameter1..' has length '..string.len(parameter1)) context('\\crlf') local parameter2='#2' if parameter2=='' then context('Test

Re: [NTG-context] (announcement) from pandoc to ConTeXt

2015-07-09 Thread Wolfgang Schuster
followed by the string “_Title”. 4. Better use \crlf to force a line break for the br/ tag because \\ can produce different results depending in the environment. 5. Use \define[2]\... or \unexpanded\def\... to create your \href command. 6. ConTeXt already has a \url command. 7. Your \url command

Re: [NTG-context] conTeXt Mkiv: the number of parameters can not be more than 9?

2015-07-04 Thread Jaroslav Hajtmar
: \blank[big] \dorecurse{16}{parameter \recurselevel is : \var{param\recurselevel}\crlf} \blank[big] % OR % put parameters into macro: \def\parameters{A, B, XXL, QWE, 123, Hello, End, TeX, Solution, XSE, Flag, Prague, Paris, New York, last value, *, } % and now read parameters: \expandafter

[NTG-context] horizontal spacing

2015-05-16 Thread henman
three times? - minimal example follows: \starttext \framed[ width=8cm, height=4cm, align={flushleft}] {Here is the minimum example: \crlf \hskip 1em 1em space before this line? \crlf \hskip 2em 2em space before this line? \crlf

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