[NTG-context] Re: tagigng

2025-08-13 Thread Mikael Sundqvist
tupheads > [section,subsection] > [color=darkred] > > \setuphead > [section] > [style=\bfb] > > \setuphead > [subsection] > [style=\bfa] > > > > I use > > \setuphead[subsection][number=yes, > page=yes,

[NTG-context] Re: tagigng

2025-08-13 Thread Matthias Weber
eads > [section,subsection] > [color=darkred] > > \setuphead > [section] > [style=\bfb] > > \setuphead > [subsection] > [style=\bfa] > > > > I use > > \setuphead[subsection][number=yes, > p

[NTG-context] Re: tagigng

2025-08-13 Thread Matthias Weber
] \setuphead [subsection] [style=\bfa] I use \setuphead[subsection][number=yes, page=yes, before={\noindentation\hairline\blank}, after={\nowhitespace\hairline\blank[line]\indentation

[NTG-context] Re: Vertical spacing in table of content

2024-10-06 Thread Gerion Entrup
> style=\tfx, > > ] > > \setuplist[subsection][ > > aligntitle=yes, > > style=\tfxx, > > after={\blank[none]}, > > before={\blank[none]}, > > ] > > > > \starttext > > > > \placecontent > >

[NTG-context] Re: Vertical spacing in table of content

2024-10-06 Thread mf
apter][ style=bold, aligntitle=yes, ] \setuplist[section][ aligntitle=yes, style=\tfx, ] \setuplist[subsection][ aligntitle=yes, style=\tfxx, after={\blank[none]}, before={\blank[none]}, ] \starttext \placecontent \hai

[NTG-context] Re: Vertical spacing in table of content

2024-10-06 Thread Mikael Sundqvist
t; ] > \setuplist[subsection][ > aligntitle=yes, > style=\tfxx, > after={\blank[none]}, > before={\blank[none]}, > ] > > \starttext > > \placecontent > > \hairline > > \startchapter[title=foo] > \startsection[title=foo] > \s

[NTG-context] Vertical spacing in table of content

2024-10-05 Thread Gerion Entrup
, style=\tfxx, after={\blank[none]}, before={\blank[none]}, ] \starttext \placecontent \hairline \startchapter[title=foo] \startsection[title=foo] \startsubsection[title=foo] \stopsubsection \startsubsection[title=foo] \stopsubsection \startsubsection[title=foo] \stopsubsection

[NTG-context] Re: Combine \setupdelimitedtext with an author (define custom variable?)

2024-06-17 Thread Gerion Entrup
Am Donnerstag, 6. Juni 2024, 16:34:03 MESZ schrieb Wolfgang Schuster: > \startsetups [userdata:extract] > \startnarrower > \setupindenting[next] > \getuserdata > \hairline > \dontleavehmode\wordright{\itx\userdataparameter{author}} &g

[NTG-context] Re: Combine \setupdelimitedtext with an author (define custom variable?)

2024-06-06 Thread Gerion Entrup
rtalignment[flushright] > > \tfx\italic{\getcustomvariable{author}} \stopalignment}] > > > > \starttext > > \startextract[author=René Descartes] > > Cogito ergo sum. > > \stopextract > > \stoptext > > ``` > > > > Is there an easy way to a

[NTG-context] Re: Combine \setupdelimitedtext with an author (define custom variable?)

2024-06-06 Thread Hans Hagen via ntg-context
[userdata:extract]     \startnarrower     \setupindenting[next]     \getuserdata     \hairline     \dontleavehmode\wordright{\itx\userdataparameter{author}}     \stopnarrower \stopsetups \defineuserdataalternative   [extract]   [renderingsetup=userdata:extract] \defineuserdata

[NTG-context] Re: Combine \setupdelimitedtext with an author (define custom variable?)

2024-06-06 Thread Wolfgang Schuster
[next] \getuserdata \hairline \dontleavehmode\wordright{\itx\userdataparameter{author}} \stopnarrower \stopsetups \defineuserdataalternative [extract] [renderingsetup=userdata:extract] \defineuserdata [extract] [style=italic, alternative=extract] \starttext

[NTG-context] Hbox error with itemized list on second page

2024-04-30 Thread Ross Schulman
contacts] [ align=center, page=no, after={\thinrule\blank[big]}] \definehead[topic][subject] \setuphead [topic] [ after={\hairline}] \defineitemgroup [timeline] [before=, inbetween=, width=6em] \setuplines[before=,after=,command=\strut] \definelayer[myb

[NTG-context] Re: How can I do this?

2024-03-08 Thread Otared Kavian
it in a better way. Finally instead of \blackrule[color=black, height=0.10ex, width=13.50cm] you can use just \hairline, and the thickness and color of such a \hairline can be adjusted by \setupthinrules[rulethickness=4pt,color=darkgreen] (for instance), which should be put before

[NTG-context] Vertically aligned alternating fillers

2023-11-16 Thread Marco Patzer
{1}{\n}} \starttext %% dots are vertically aligned \dorecurse{6}{%% Foo \PavelFiller Bar\par} \hairline %% dots are not aligned \dorecurse{6}{%% \oneword\PavelFiller\oneword\par} \stoptext Marco LMTX 2023.09.04 19:15

[NTG-context] (no subject)

2023-09-04 Thread Ursula Hermann
Dear List, After compiling the following example, which is from February 2021: \setuppapersize[A8,landscape] \setuplayout[leftmargin=2.5cm, leftmargindistance=0.2cm, backspace=2.9cm, width=4cm] \showframe \starttext \margintext{\hairline\\{Me

[NTG-context] After compiling

2023-09-04 Thread Ursula Hermann
hich is from February 2021: \setuppapersize[A8,landscape] \setuplayout[leftmargin=2.5cm, leftmargindistance=0.2cm, backspace=2.9cm, width=4cm] \showframe \starttext \margintext{\hairline\\{Me}}\dontleavehmode\hairline \startformula a^n + b^n = c^n. \stopformula

[NTG-context] Re:

2023-09-04 Thread Ursula Hermann
tuppapersize[A8,landscape] \setuplayout[leftmargin=2.5cm, leftmargindistance=0.2cm, backspace=2.9cm, width=4cm] \showframe \starttext \margintext{\hairline\\{Me}}\dontleavehmode\hairline \startformula a^n + b^n = c^n. \stopformula \stoptext I get: Command Line

Re: [NTG-context] Why are my captions overlapping next text in combinations?

2022-11-26 Thread Wolfgang Schuster via ntg-context
Joel via ntg-context schrieb am 25.11.2022 um 23:25: I have some combinations used throughout my document like this: \starttext \startcombination[4*2]             {%  \framed[width=.25\textwidth, height=.25\textwidth]{}%  }{%                 \strut word \\ \thinrule\hairline\hairline

[NTG-context] Why are my captions overlapping next text in combinations?

2022-11-25 Thread Joel via ntg-context
I have some combinations used throughout my document like this: \starttext   \startcombination[4*2]            {%                 \framed[width=.25\textwidth, height=.25\textwidth]{}%             }{%                 \strut word \\ \thinrule\hairline\hairline

Re: [NTG-context] alternative en TOC

2022-10-06 Thread Horacio Suárez via ntg-context
[A7,landscape] \setuplist[alternative=c] \setuplist[subsection][alternative=d] \starttext \placecontent \hairline \section{Section} \subsection{Subsection} \subsubsection{Subsubsection} \stoptext Check if your braces/brackets are r

Re: [NTG-context] alternative en TOC

2022-10-06 Thread Henning Hraban Ramm via ntg-context
Am 06.10.22 um 15:24 schrieb Horacio Suárez via ntg-context: Not working, besides "[alternative=d]" apears on top of the first pdf page. This works for me: \setuppapersize[A7,landscape] \setuplist[alternative=c] \setuplist[subsection][alternative=d] \starttext \placecontent

Re: [NTG-context] What is the proper way to define many different list types in a document?

2022-01-24 Thread Aditya Mahajan via ntg-context
=italic] ... \startprompt \item \stopprompt > %written answer (produces some lines after the question for writing an answer) > > \define[1]\writingbox{% >     \dorecurse{#1}{% >         \hairline% >     } > } There is also: https://wiki.contextgarden.net/Command/fillinrules

[NTG-context] What is the proper way to define many different list types in a document?

2022-01-24 Thread Joel via ntg-context
\define[1]\writingbox{%     \dorecurse{#1}{%         \hairline%     } } \startitemize[n] \item Which planet is closest to Earth? \writingbox{4} \item What is the moon made of? \writingbox{4} \stopitemize %materials list \startcolumns[n=3]\startitemize \item crayons \item scissors \item glue \s

Re: [NTG-context] Question on style-italic vs style=italicface

2021-09-26 Thread Wolfgang Schuster via ntg-context
. I note a difference when I define highlighting. I expected to see no difference in the line before and line after the hairline the example below, but see that italicface adapts to nesting, while italic does not: Are there other places where this makes a difference

Re: [NTG-context] Question on style-italic vs style=italicface

2021-09-26 Thread Rik Kabel via ntg-context
expected to see no difference in the line before and line after the hairline the example below, but see that italicface adapts to nesting, while italic does not: Are there other places where this makes a difference? \setupbodyfontenvironment         [default]     [em=italicface] %same

Re: [NTG-context] Question on style-italic vs style=italicface

2021-09-26 Thread Wolfgang Schuster via ntg-context
hairline the example below, but see that italicface adapts to nesting, while italic does not: Are there other places where this makes a difference? \setupbodyfontenvironment         [default]     [em=italicface] %same with italic for this example \definehighlight

[NTG-context] Question on style-italic vs style=italicface

2021-09-26 Thread Rik Kabel via ntg-context
Hello list mavens, What are the circumstances under which style=italicface should be used instead of style=italic. I note a difference when I define highlighting. I expected to see no difference in the line before and line after the hairline the example below, but see that italicface adapts

Re: [NTG-context] \blackrule and margin

2021-02-23 Thread Otared Kavian
Sorry, I didn't send the correct example… \setuppapersize[A8,landscape] \setuplayout[leftmargin=2.5cm, leftmargindistance=0.2cm, backspace=2.9cm, width=4cm] \showframe \starttext \margintext{\hairline}\dontleavehmode\hairline \startformula \margintext{

Re: [NTG-context] \blackrule and margin

2021-02-23 Thread Otared Kavian
Hi Uschi, You may add \dontleavehmode at the right place as in the following: \setuppapersize[A8,landscape] \setuplayout[leftmargin=2.5cm, leftmargindistance=0.2cm, backspace=2.9cm, width=4cm] \showframe \starttext \margintext{\hairline\\{Me

Re: [NTG-context] \blackrule and margin

2021-02-23 Thread Ursula Hermann
Dear Pablo! I have done some changes. How can I get both hairlines in the same height: \setuppapersize[A8,landscape] \setuplayout[leftmargin=2.5cm, leftmargindistance=0.2cm, backspace=2.9cm, width=4cm] \showframe \starttext \margintext{\hairline\\{Me

[NTG-context] thinrules width

2020-12-14 Thread Rik Kabel
Hello list, and developers in particular, I note that thinrules (and its setup, setupthinrules, and relatives thinrule and hairline) does not have a width setting, and always sets a rule (or rules) the full width of the text area (less any text set on the same line. No problem, but I do see

Re: [NTG-context] Disappearing font feature

2019-12-22 Thread Floris van Manen
/texmf-context/tex/context/base/mkiv/cont-new.mkiv' system > files > jobname 'j2', input './j2', result 'j2' fonts > latin modern fonts are not preloaded languages > language 'en' is active open source > level

Re: [NTG-context] Disappearing font feature

2019-12-22 Thread Hans Hagen
-100-hairline] \definefont [JThin] [jost-200-thin] \definefont [JLigh] [jost-300-light] \definefont [JBook] [jost-400-book] \definefont [JMedi] [jost-500-medium] \definefont [JSemi] [jost-600-semi] \definefont [JBold] [jost

[NTG-context] Disappearing font feature

2019-12-21 Thread Rik Kabel
, header=0pt, footer=0pt] \setuppagenumbering [location=] \definefontfeature [default] [default] [ss01=yes] \definefont [JHair] [jost-100-hairline] \definefont [JThin] [jost-200

Re: [NTG-context] Unexpected symbol with Enumeration

2019-10-17 Thread Otared Kavian
G},\quad \cal{H},\quad \cal{K},\quad \cal{L},\quad \cal{M},\quad \cal{P},\quad \cal{S},\quad \cal{T}\stopformula\hairline\stopbuffer\switchtobodyfont[lucidaot]{\bf Lucida OT: }\getbuffer[test]\switchtobodyfont[myfont]{\bf Lucida OT with Asana Math: }\getbuffer[test]\stoptext test-scriptfonts-mkiv.

Re: [NTG-context] option=tex in setuptyping causes the background to be drawn twice

2019-04-28 Thread Wolfgang Schuster
Wolfgang will cook up a patch ... The best solution is to remove the values from all three keys because for now each of them is applies twice (even the style). \setuptyping   [before=\hairline,     after=\hairline,     style=\tt\em] \starttext \starttyping[option=tex] \donothing \stoptyping

Re: [NTG-context] Replace dashed lines with a solid line

2018-12-01 Thread Wolfgang Schuster
Fabrice Couvreur schrieb am 01.12.18 um 12:43: Hello, I would like to replace the dashed lines with a solid line much like with the \hairline command Thank you. Fabrice \definefiller[dots][left=\dontleavehmode,right=\hskip\zeropoint\par] \starttext \input knuth \dorecurse{5}{\filler[dots

[NTG-context] Replace dashed lines with a solid line

2018-12-01 Thread Fabrice Couvreur
Hello, I would like to replace the dashed lines with a solid line much like with the \hairline command Thank you. Fabrice \definefiller[dots][left=\dontleavehmode,right=\hskip\zeropoint\par] \starttext \input knuth \dorecurse{5}{\filler[dots]} \input knuth \dorecurse{5}{\hairline} \stoptext

Re: [NTG-context] hairline & rules

2018-06-16 Thread Marco Patzer
On Fri, 15 Jun 2018 00:20:23 -0700 "jdh" wrote: > I want to use a colored hairline, but can't get it working and can't > find anything to explain any options or parameters. > > I've tried > > \setuptextrules[rulecolor=red,color=red] >

[NTG-context] hairline & rules

2018-06-16 Thread jdh
I want to use a colored hairline, but can't get it working and can't find anything to explain any options or parameters. I've tried \setuptextrules[rulecolor=red,color=red] \hairline or \hairline[color=red] Doesn't work this is a

[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

Re: [NTG-context] synctex, TeXShop and \input files

2017-09-28 Thread Hans Hagen
file, even it were part of an \input file. For instance after typesetting the file: %%% begin synctex-example.tex \setupsynctex[state=start,method=max] \starttext \input knuth.tex \hairline \input ward.tex \stoptext %%% end synctex-example.tex I could click on the sentence « The separation of any

[NTG-context] synctex, TeXShop and \input files

2017-09-28 Thread Otared Kavian
instance after typesetting the file: %%% begin synctex-example.tex \setupsynctex[state=start,method=max] \starttext \input knuth.tex \hairline \input ward.tex \stoptext %%% end synctex-example.tex I could click on the sentence « The separation of any of these » in the PDF file and the file

Re: [NTG-context] Compare contents of macros via \doif etc. alternatives

2017-07-22 Thread Henri Menke
gt; \doifinstringelse{\mymacro}{123}{equal content}{not equal content} > > \doifincsnameelse{\mymacro}{123}{equal content}{not equal content} > > > \hairline > > mymacro[123] > > \doifelse{\mymacro[123]}{123}{equal content}{not equal content} > > \doifsamestringelse{

Re: [NTG-context] Compare contents of macros via \doif etc. alternatives

2017-07-22 Thread Jaroslav Hajtmar
} \doifincsnameelse{\mymacro}{123}{equal content}{not equal content} \hairline mymacro[123] \doifelse{\mymacro[123]}{123}{equal content}{not equal content} \doifsamestringelse{\mymacro[123]}{123}{equal content}{not equal content} \doifinstringelse{\mymacro[123]}{123}{equal content}{not equal

[NTG-context] Compare contents of macros via \doif etc. alternatives

2017-07-22 Thread Jaroslav Hajtmar
ot;mymacro", {         macro = function ()       context.dosingleempty()       context["domymacro"]()         end    }) \stopluacode \def\myothermacro{123} \hairline \mymacro[123] \mymac

Re: [NTG-context] Compare contents of macros via \doif etc. alternatives

2017-07-22 Thread Hans Hagen
end if you directly feed back into tex anyway \def\myothermacro{123} \hairline \mymacro[123] \mymacro \myothermacro \hairline \doifelse{\mymacro}{\mymacro[123]}{equal content}{not equal content} \doifsamestringelse{\mymacro}{\mymacro[123]}{equal content}{not equal content} \do

Re: [NTG-context] Compare contents of macros via \doif etc. alternatives

2017-07-21 Thread Jaroslav Hajtmar
end >}) > interfaces.definecommand("mymacro", { > macro = function () > context.dosingleempty() > context["domymacro"]() >

Re: [NTG-context] Compare contents of macros via \doif etc. alternatives

2017-07-21 Thread Henri
;, { >         macro = function () >       context.dosingleempty() >       context["domymacro"]() >         end >    }) > \stopluacode >   > \def\myothermacro{123} >   > \hairline >

[NTG-context] Compare contents of macros via \doif etc. alternatives

2017-07-21 Thread Jaroslav Hajtmar
uot;mymacro", { macro = function () context.dosingleempty() context["domymacro"]() end }) \stopluacode \def\myothermacro{123} \hairline \mymacro[123] \mymacro \myothermacro \hairline

Re: [NTG-context] mathradical defaults to "normal", should it perhaps be "default"?

2017-06-07 Thread Hans Hagen
-1}}\Bigr)^2 \stopformula \startformula \sqrt{1+\Bigl({f(x_k)-f(x_{k-1}) \over x_k - x_{k-1}}\Bigr)^2} \stopformula \stopbuffer \getbuffer[math] \hairline \setupmathradical[sqrt][alternative=default] \getbuffer[math] \stoptext interesting side effect of Ustack (i'll look at it)

Re: [NTG-context] mathradical defaults to "normal", should it perhaps be "default"?

2017-06-07 Thread Otared Kavian
{1+\Bigl({f(x_k)-f(x_{k-1}) \over x_k - x_{k-1}}\Bigr)^2} \stopformula \stopbuffer \getbuffer[math] \hairline \setupmathradical[sqrt][alternative=default] \getbuffer[math] \stoptext %%% end of test file > On 7 Jun 2017, at 16:50, Mikael P. Sundqvist wrote: >> […] > > Hans,

Re: [NTG-context] \xmlload not understood

2017-05-15 Thread Hans Hagen
{#1}\par \stopxmlsetups \startbuffer[test] \stopbuffer \startbuffer[dataset] this is subnode-1 this is subnode-2 this is subnode-3 \stopbuffer \starttext \xmlprocessbuffer{root}{test}{} \hairline \stoptext

[NTG-context] \xmlload not understood

2017-05-12 Thread dr. Hans van der Meer
\starttext \xmlprocessbuffer{root}{test}{} \hairline \stoptext ___ 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/listinfo

Re: [NTG-context] Bug in placeformula with framed text

2016-07-05 Thread Otared Kavian
} = O(1) \NR[eq:O-ev-1] \NC a_{n} = O(1)\; \mbox{ and }\; u_{n} = O(1) \imply a_{n}u_{n} = O(1) \NR[eq:O-ev-2] \NC a_{n} = o(u_{n})\; \mbox{ et }\; b_{n} = O(v_{n}) \imply a_{n}b_{n} = o(u_{n}v_{n}) \NR[+] \stopLgather \stopformula \blank \hairline \blank \startformula \startalign[n=2,align=left

[NTG-context] Bug in placeformula with framed text

2016-07-04 Thread Otared Kavian
-1] \NC a_{n} = O(1)\; \mbox{ and }\; u_{n} = O(1) \imply a_{n}u_{n} = O(1) \NR[eq:O-ev-2] \NC a_{n} = o(u_{n})\; \mbox{ et }\; b_{n} = O(v_{n}) \imply a_{n}b_{n} = o(u_{n}v_{n}) \NR[+] \stopLgather \stopformula \stopproclaim \blank \hairline \blank \setupformulas[location=right] \startproclaim

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

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

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

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

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

2016-06-17 Thread Pavneet Arora
Grade 12)}" and the hairline together. I can, however, keep the hairline and the following lorem text together, but I need all three elements to float as a group: the paragraph header, hairline, and paragraph body. Would anyone have any suggestions on how to accomplish this? Many

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

2016-06-09 Thread Pavneet Arora
stripped away most of the details as well as the application fonts, but the issue that I am facing is related to keeping the course header (done as a paragraph environment), \hairline, and the teacher's comment for that course together as a unit. At a minimum, I would like the three elements

Re: [NTG-context] natural tables and columndistance/spaceinbetween

2015-11-30 Thread Wolfgang Schuster
] but these do not work. One might think about trying \bTR [bottomframe=on,framecolor=white,rulethickness=.25em] ... \eTR but this presents several problems: 1) When using background=color, the background color gives a hairline overflow beyond the rule, at least using the pdf viewers that I have

[NTG-context] natural tables and columndistance/spaceinbetween

2015-11-25 Thread Alan BRASLAU
might think about trying \bTR [bottomframe=on,framecolor=white,rulethickness=.25em] ... \eTR but this presents several problems: 1) When using background=color, the background color gives a hairline overflow beyond the rule, at least using the pdf viewers that I have on my computer. 2) there

Re: [NTG-context] Bibliography - biblio error with the latest beta

2015-07-12 Thread Alan BRASLAU
% > > \usebtxdataset[biblio.buffer] > > %%%% > > \starttext >Hello \cite[Angell] \cite[Me] \cite[101]! > >\hairline >\placelistofpublications[criterium=all] > \stoptext > -- Alan Braslau CEA DSM-IRAMIS-SPE

Re: [NTG-context] Bibliography - biblio error with the latest beta

2015-07-11 Thread Lukáš Procházka
uffer] \starttext Hello \cite[Angell] \cite[Me] \cite[101]! \hairline \placelistofpublications[criterium=all] \stoptext crashes with: " D:\Lukas\Docs\Ull-Gra\Test>context.exe Bib64.mkiv --nonstopmode mtx-context | run 1: luatex --fmt="c:/Ctx-Beta/tex/texmf-cache/lu

Re: [NTG-context] Bibliography (bug compiling "components-001.tex"?) (now with sample files)

2015-07-09 Thread Procházka Lukáš Ing . - Pontex s . r . o .
%% \starttext Hello \cite[Angell] \cite[Me] \cite[101]! \hairline \placelistofpublications[criterium=all] \hairline %\placepublications[criterium=all] % (2) \stoptext Some more questions: 1) Is "\placepublications" deprecated? I'm getting "Undefined cont

[NTG-context] Hidden section - weird counting?

2015-07-09 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, let's have the following example with hidden section: \definehead[HidSec][section] \setuphead[HidSec][placehead=hidden] \starttext \placecontent \hairline \HidSec{A} \subsection{B} \subsection{C} \stoptext It gives: " 1.1 B 1 --- 1.2 B 1.2 C &qu

Re: [NTG-context] How to limit level of sections in TOC?

2015-06-20 Thread Procházka Lukáš Ing . - Pontex s . r . o .
%\setuplist[content][level=subsection] % Doesn't work %\setuplist[content][section,subsection] % Doesn't work \starttext \placecontent[level=subsection] % Doesn't work \hairline \placecontent[level=3] % Doesn't work \hairline \section{Sec} \subsection{SSec}

Re: [NTG-context] How to limit level of sections in TOC?

2015-06-20 Thread Wolfgang Schuster
] % Doesn't work \starttext \placecontent[level=subsection] % Doesn't work \hairline \placecontent[level=3] % Doesn't work \hairline \section{Sec} \subsection{SSec} \subsubsection{SSSec} \stoptext I studied wiki (http://wiki.contextgarden.net/Command/setuplist) an

[NTG-context] How to limit level of sections in TOC?

2015-06-20 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I'm not able to limit level of sections in TOC so to not show \subsubsection: %\setuplist[content][level=subsection] % Doesn't work %\setuplist[content][section,subsection] % Doesn't work \starttext \placecontent[level=subsection] % Doesn't work \hairline

Re: [NTG-context] A macro which gives a random name

2015-04-19 Thread Hans Hagen
vative only at the origin, and such that $\FunctionName(0) = 1$. \par \hairline\par } \stoptext end choose-random-names.tex by Hans On 18 Apr 2015, at 22:36, Hans Hagen wrote: On 4/18/2015 10:24 PM, Otared Kavian wrote: Hi again Wolfgang, Thanks to your hint, I could solve

Re: [NTG-context] A macro which gives a random name

2015-04-19 Thread Otared Kavian
f\FunctionName {\ctxlua{document.GetChosenName()}} \SetListOfFunctionNames[a,b,c,d] \dorecurse{10}{ Give an example of a function $\NewFunctionName : {\Bbb R} \longrightarrow {\Bbb R}$ which has a derivative only at the origin, and such that $\FunctionName(0) = 1$. \par

Re: [NTG-context] A macro which gives a random name

2015-04-18 Thread Hans Hagen
Bbb R}$ which has a derivative only at the origin, and such that ${\ChosenFunction}'(0) = 1$.\par \hairline\par} \stoptext end choose-element.tex \starttext \startluacode local FunctionNames = { "G" , "W" } local FunctionName = FunctionN

Re: [NTG-context] A macro which gives a random name

2015-04-18 Thread Otared Kavian
origin, and such that ${\ChosenFunction}'(0) = 1$.\par \hairline\par} \stoptext end choose-element.tex > On 18 Apr 2015, at 19:23, Wolfgang Schuster > wrote: > > >> Am 18.04.2015 um 18:55 schrieb Otared Kavian : >> >> Hi everyone, >> >> In

Re: [NTG-context] A macro which gives a random name

2015-04-18 Thread Otared Kavian
etevalue{Named#1}{\ctxlua{tex.print(math.random(#2,#3))}}} >> \define\RandomFunctionName{\ctxlua{tex.print(Name[\NamedFunctionNumber])}} >> >> \dorecurse{10}{\RandomName{FunctionNumber}{1}{5}% >> Give an example of a function $\RandomFunctionName : {\Bbb R} >> \lon

Re: [NTG-context] A macro which gives a random name

2015-04-18 Thread Wolfgang Schuster
an example of a function $\RandomFunctionName : {\Bbb R} \longrightarrow > {\Bbb R}$ which has a derivative only at the origin, and such that > $\RandomFunctionName(0) = 1$.\par \hairline\par} > > \stoptext > begin random-names.tex You can access the size of your Name

[NTG-context] A macro which gives a random name

2015-04-18 Thread Otared Kavian
onName{\ctxlua{tex.print(Name[\NamedFunctionNumber])}} \dorecurse{10}{\RandomName{FunctionNumber}{1}{5}% Give an example of a function $\RandomFunctionName : {\Bbb R} \longrightarrow {\Bbb R}$ which has a derivative only at the origin, and such that $\RandomFunctionName(0) = 1$.\par \ha

Re: [NTG-context] caption setup

2015-04-09 Thread Wolfgang Schuster
d different settings for caption label, here is the code: > > ---- > > \starttext > > \setupcaption[figure][numberstopper={. ábra.}] > \setuplabeltext[figure={}] > > Code: > > \verbatim{\setupcaption[figure][numberstop

Re: [NTG-context] caption setup

2015-04-09 Thread Wolfgang Schuster
d different settings for caption label, here is the code: > > ---- > > \starttext > > \setupcaption[figure][numberstopper={. ábra.}] > \setuplabeltext[figure={}] > > Code: > > \verbatim{\setupcaption[figure][numberstop

Re: [NTG-context] caption setup

2015-04-09 Thread Csikos Bela
2.pdf. I also tried different settings for caption label, here is the code: \starttext \setupcaption[figure][numberstopper={. ábra.}] \setuplabeltext[figure={}] Code: \verbatim{\setupcaption[figure][numberstopper={. ábra.}]} \par \verbatim{\setuplabelte

Re: [NTG-context] mkiv versus mkii: whitespace issues

2015-03-15 Thread Gerben Wierda
initial prd_book.tex === \startproduct prd_book \project project_cataoia \starttext \start \startstandardmakeup[doublesided=no] \ss \hairline \start \blank[line] \switchtobodyfont[16pt]\bf \leftaligned{Chess}% \blank[line] \leftaligned{and the Art of}% \blank[line

Re: [NTG-context] issue with t-scancsv.lua

2014-12-10 Thread Pablo Rodriguez
ss all file too (endless cycle) > \doloopif{1}{==}{1}{\tablelineaction} > > And here is end > > \page > > Printing only specific data: > > \doloopif{\name}{eq}{You}{\tablelineaction} > > \page > > Simpletablelineaction: > > \doloopif{1}{==}{1}{\si

Re: [NTG-context] issue with t-scancsv.lua

2014-12-08 Thread Jaroslav Hajtmar
} % begin line hook \def\elinehook{\hairline\par} % end line hook \def\bfilehook{Here is all CSV file:\blank[2*big] } % begin CSV file hook \def\efilehook{\par Here is end of file processing\par} % end CSV file hook \doloopif{1}{==}{1}{\tablelineaction} \stoptext Dne 8.12.2014 17:21

Re: [NTG-context] Trying to force a particular page sequence

2014-11-26 Thread Gerben Wierda
ft corner > Left page with statement > Right page with page number on top > > This is what I have in my prd_book.tex. What is a cleaner way to do this and > also one that works? ;-): > > \starttext > \start > \startstandardmakeup \ss > \hairline \start > \blank[

[NTG-context] Trying to force a particular page sequence

2014-11-26 Thread Gerben Wierda
Empty page (first left) Right page with text (not yet in the lower left corner Left page with statement Right page with page number on top This is what I have in my prd_book.tex. What is a cleaner way to do this and also one that works? ;-): \starttext \start \startstandardmakeup \ss \hairline

[NTG-context] Moving hairline in itemize environment

2014-11-21 Thread Jaroslav Hajtmar
Hello ConTeXist. Is there possibility move hairline in itemize environment to the leftto start from the beginning of the line independently indentation environment? Thanx Jaroslav Hajtmar Here is minimal example: \starttext \startitemize[n] \item \input ward \hairline %this line move to

Re: [NTG-context] setuphead style 'underline'?

2014-08-17 Thread Matthias Weber
, before={\hairline}, after={\hairline\blank[.4cm]} Matthias On Aug 17, 2014, at 2:40 PM, Gerben Wierda wrote: > Is there a way to get underlined headers with \setuph

Re: [NTG-context] pagenumber suppression howto?

2014-07-20 Thread Meer, H. van der
accomplished by: \setupheader[state=stop] \setupfooter[text][before=\hairline,style=small,location=left,strut=yes] \setupfootertexts[some text][pagenumber] I want the first page without that footer, to be done with: \noheaderandfooterlines But then comes the problem, because afterwards the defaul

Re: [NTG-context] pagenumber suppression howto?

2014-07-20 Thread Wolfgang Schuster
Am 20.07.2014 um 12:03 schrieb Meer, H. van der : > My goal is pages without header info at the top and text plus a pagenumber on > the bottom. This can be accomplished by: > \setupheader[state=stop] > \setupfooter[text][before=\hairline,style=small,location=left,strut=yes] > \s

[NTG-context] pagenumber suppression howto?

2014-07-20 Thread Meer, H. van der
My goal is pages without header info at the top and text plus a pagenumber on the bottom. This can be accomplished by: \setupheader[state=stop] \setupfooter[text][before=\hairline,style=small,location=left,strut=yes] \setupfootertexts[some text][pagenumber] I want the first page without that

[NTG-context] Difficulties with \startformula

2014-01-13 Thread Elspeth McGullicuddy
%%% \starttext \setupformulas[spacebefore=-1ex] \framed[width=5cm,align=yes]{% Hello } \framed[width=5cm,align=yes]{% Hello \startformula x+y \stopformula } \framed[width=5cm,align=yes]{% %Hello \startformula x+y \stopformula } \framed[width=5cm,align=yes]{% \vskip-1.3\baselineskip

[NTG-context] Setting `before` option of chapter breaks header text

2013-09-03 Thread Michael Scholtz
any other way to set `before` without breaking the headers?) Here an example: \setuphead[chapter][ before=\hairline\blank, %<<< headers work, if this line is removed after=\nowhitespace\hairline, ] \setuppagenumbering[location=] % clear pag

Re: [NTG-context] compilation problem (TeXLive 2013)

2013-07-03 Thread Manuel González Suárez
={\bf\sc}, before=\hairline\blank, after=\nowhitespace\hairline] \setuphead [section] [color=grisoscuro,numberstyle=bold, textstyle={\sc\bf}] \setuphead [subsection] [color=grisoscuro,textstyle=\sc] %\define[2]\dos{% % \bTABLE % \setupTABLE[align=middle] % \setupTABLE[r][1][style

Re: [NTG-context] extra line after switchtobodyfont

2013-05-03 Thread Meer, H. van der
. Is this intentional or is it something like a % missing somewhere in a macro? Hans van der Meer Sorry, flew accidentally to early away. Here the attached output. \setuppapersize[A6][A6] \setupbodyfont[lucidaot] \starttext First line.\crlf \start \switchtobodyfont[euler] Font switch here.\crlf

Re: [NTG-context] extra line after switchtobodyfont

2013-05-02 Thread Wolfgang Schuster
flew accidentally to early away. Here the attached output. > > \setuppapersize[A6][A6] > \setupbodyfont[lucidaot] > \starttext > First line.\crlf > \start > \switchtobodyfont[euler] > Font switch here.\crlf > \stop > Last line. > \hairline > First line.\crlf >

Re: [NTG-context] extra line after switchtobodyfont

2013-05-02 Thread Meer, H. van der
[lucidaot] \starttext First line.\crlf \start \switchtobodyfont[euler] Font switch here.\crlf \stop Last line. \hairline First line.\crlf \start Font switch here.\crlf \stop Last line. \stoptext fontswitch.pdf Description: fontswitch.pdf

[NTG-context] extra line after switchtobodyfont

2013-05-02 Thread Meer, H. van der
[euler] Font switch here.\crlf \stop Last line. \hairline First line.\crlf \start Font switch here.\crlf \stop Last line. \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki

Re: [NTG-context] A thinner hrule for headers

2013-03-24 Thread Otared Kavian
Hi, Maybe you need something like \hairline: \setupthinrules[height=.1pt,depth=.1pt] \setupheader[after=\hairline] You can also enclose your header in a \framed commande, such as \framed[frame=off,bottomframe=on] Best regards: OK On 24 mars 2013, at 13:32, Thomas Kreuzer wrote

[NTG-context] A thinner hrule for headers

2013-03-24 Thread Thomas Kreuzer
Hello everyone, I'd like to know if it is possible to get a thinner hrule in headers (mkiv). Right now I am using \setupheader[after=\hrule] replacing hrule with thinrule or hairline results in space below the header text and the line, and the line actually spans two lines. How

[NTG-context] Epigraphs (was About Chapter head definition and FunnyFrame)

2013-03-03 Thread Wolfgang Schuster
ant, a simple way is to use the framedtext environment which can be positioned on the right margin, complexes solutions are possible but they require more code. \defineframedtext[epigraph][location=right,frame=off,offset=.25ex] \starttext \title{Ward} \startepigraph \input ward \hairline

Re: [NTG-context] \thinrule in \margintext doesn't work

2013-01-24 Thread Hans Hagen
On 1/24/2013 10:26 AM, Devendra Ghate wrote: **MWE** \starttext %\margintext{\thinrule A margintext with thinrule.} \margintext{\hairline A margintext with hairline.} \stoptext btw, after fixing it this becomes a MNWE as a \margintext without anything following it will never show up

  1   2   3   >