Hello,
How can I get the following table of contents?
Contents
Chapter first MyTitle
Chapter II MyTitle
Chapter III MyTitle
I have tried:
\MyNumber{\doifelse{\currentsectioncountervalue}{1}{first}{#1}}
setuplist[chapter][numbercommand=\MyNumber]
but it does not work. Actually because \curr
Thank you Wolfgang, it works.
___
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/ntg-context
webpage : http://ww
Hello,
The following lines do display the markings:
\definemarking[M]
\marking[M]{Cool}
\setupheadertexts[{Marking: \getmarking[M]}][{Marking: \getmarking[M]}]
\starttext
Hello world!
\stoptext
but if I use a section block environment they do not:
\definemarking[M]
\marking[M]{Cool}
\setup
Is there a solution?
\definemarking[M]
\marking[M]{Cool}
\setupheadertexts[{Marking: \getmarking[M]}][{Marking: \getmarking[M]}]
\starttext
\startbodymatter
Hello world!
\stopbodymatter
\stoptext
___
If your question
> \startbodymatter
> \marking[M]{Cool}
> Hello world!
> \stopbodymatter
>
> marks become nodes and these are bound to lines
Thank you Hans.
___
If your question is of interest to others as well, please add an entry to
Hello,
How do you setup your itemize environment to get a formatting in paragraph
fashion, that is to say without margins at the second, third, etc. lines of
each item, like this:
1. one one one one one one one one one one
one one one one one one one one one one
2. two two two two two two two tw
> Use the “intext” keyword.
This is exactly what I was looking for, thanks again Wolfgang!
___
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl / http:
Hello,
Here after is my problem:
\setuphead[section][%
placehead=empty,
before=,
after=]
\setuphead[subsection][%
placehead=yes,
before={\blank[line]},
after={\blank[line]}]
\setupheadertexts[section]
\starttext
\showframe
\section{My section}
\subsection{My subsection
> before=\empty,
\empty is not even required. The problem with your solution (setting
'before=' i.e. empty) is that there is also no whitespace before a
subsection which doesn't start on a new page.
Any better ideas?
A more explicit minimal example of the problem:
\setupheadertexts[section]
\setuphead[section][%
placehead=empty,
before=,
after=]
\setuphead[subsection][%
placehead=yes,
before={\blank[line]},
after={\blank[line]}]
\starttext
\showframe
\section{My section}
\subsection{M
Thanks Wolfgang. I could even have sections in the TOC with
'\setuptexttexts[{\placerawheaddata[section]}]'.
However, how can I start a new page at each new section? The 'page=yes'
pair does no longer work with your solution 'placehead=hidden' (since the
head is not placed I guess). I also tried
For those who are interested, I've finally solved my problem (the vertical
space before a subsection which was not automatically swallowed at the top
of a page when the page started with an empty section) by using the pair
'after={\vskip 0em\blank[disable]}' for sections:
\setuphead
[section]
> Avoid vskip.
Do you have a better solution?
___
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/ntg-context
web
Hans, I think there is a bug in your s-pre-60.tex module regarding the step
mechanism interacting with section blocks: the head titles disappear each
time ConTeXt starts a new section block. I have found a way to solve this
problem by putting \StartSteps\StopSteps (empty pair, and it works also
wit
> after={\blank[0em]\blank[disable]}]
Yes it also works, thank you Thangalin. So here is the final solution (I
have added the 'nowhite' keyword in the second blank to kill whitespaces
when they are active) to get real empty heads (sections here) in the
document:
\setupwhitespace[line]
\setuphea
Hello,
How can I achieve this chapter numbering?
— page 1:
I My chapter (header)
-
First My chapter (text)
— page 2:
II My chapter (header)
--
II My chapter (text)
That is to say having every chapter number in roman numeral except the
first one but only in th
> Try this:
> \setupheadertexts[{\convertnumber{Romannumerals}{\namedheadnumber{chapter}}\quad\getmarking[chapter]}]
Thanks Wolfgang!
___
If your question is of interest to others as well, please add an entry to the
W
I have to use this hack to make section titles appear when I use section
blocks (Hans, could you have a look at this bug of your s-pre-60.mkiv
module when you have time please?):
\usemodule[pre-60]
\setupinteraction[state=start]
\starttext
\startfrontmatter
\StartSteps % <-- Hack
I would like to change the style and conversion of reference numbers for
the \in{myprefix}{mysuffix}[mylabel] command. Is there a
\setupreference[numberstyle=, numberconversion=] command to do that?
___
If your question
I have found how to get the conversion of numbers in references (the
'prefixconversion' key in '\setupreferencestructureprefix' command), but I
still do not know how to change their style. I have tried the 'style' key
and 'prefixstyle' key but without success.
After checking in ConTeXt source, I h
Thank you Wolfgang, your hack is perfect. Hans, what do you think about
adding a style and color key in \setupreferencestructureprefix to avoid
having to use this defineprocessor hack?
And by the way, the name \setupreferencestructureprefix does not sound
really natural to me because we are talkin
How can I use Latin Modern italic small capitals? I have seen on a previous
thread that small caps are separated in an other file for Latin Modern font
and that one should load it to use them in italic, but there was no example
given to achieve that.
Minimal example:
\starttext
\it \sc \input knu
Hello,
How can I get the output given by the following code with the itemize
environment?
\starttext
\quad---~Sed ut perspiciatis, unde omnis iste natus error sit voluptatem
accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab
illo inventore veritatis et quasi architecto beata
Aditya finally gave me a great solution on Stack Exchange:
> One way to achieve this is to explicitly set the width of each symbol,
and align the symbol to
> the right. Visually, this is give the output that you want. For example:
> \definesymbol[emdash][---]
> \setupitemize[1][packed, intext][sym
How can one use character alignment in math mode? (I am using the last
stable ConTeXt version — 2014.05.21.)
\starttext
\setupTABLE[column][first][alignmentcharacter={,}, aligncharacter=yes,
align=middle]
Figures in text mode get aligned:
\startTABLE
\NC 0,0 \NC \NR
\NC 0,00\NC
> why use math here?
It was to avoid oldstyle figures that I use by default. But finally it's
better to use oldstyle figures even in tables.
Another question about fonts. Is there a way to define a conditional
mathcommand based on the current alternative style? For instance, in the
following exa
> You can access the current font alternative with the \fontalternative
command
Thanks Wolfgang, that was exactly the command I was looking for!
A last question: how can one get italic greek in TEXT MODE? The following
code displays upright greek.
\starttext
\mathgreekitalic \alpha
\stoptext
___
> \let\Test\fontstylesuffix
> a bit different output
Thank you Hans.
> The command \mathgreekitalic can only be used in math mode, when you want
a italic alpha in text mode you need a font which has greek characters
(e.g. Gentium).
Okay Wolfgang, I thought Latin Modern also had greek characters,
How can I stretch the height of the x cell (in my example) to fit the x
cell content? I have tried with extreme tables and natural tables but
without success.
\starttext
With extreme tables (y cell content fitted by default):\crlf
\startxtable
\startxrow
\startxcell[nr=2]\input knuth \stopxc
How can I stretch the height of the foo cell to fit its content?
\starttext
\startTABLE
\NC foo \NC[nr=2]\input knuth \NC \NR
\NC bar \NC \NR
\stopTABLE
\stoptext
___
If your questi
I have finally found a not perfect solution: setting manually the height of
the bar cell shrinks the foo cell (setting height=fit for the foo cell does
not work).
\starttext
\startTABLE
\NC foo \NC[nr=2] \input knuth \NC \NR
\NC[height=28ex] bar\NC
The second formula has NO NUMBER (example taken from the ConTeXt Garden's
Math/Display page):
\starttext
\startsubformulas[eq:1]
\placeformula[eq:first]
\startformula
c^2 = a^2 + b^2
\stopformula
\placeformula[eq:second]
\startformula
c^2 = a^2 + b^2
\stopformula
\stopsubformulas
Formula (\i
Is there a solution to the problem?
___
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/ntg-context
webpage : htt
> No.
>
> Wolfgang
This used to work, how is it possible that it does not work anymore?
\starttext
\startsubformulas[eq:equation]
\placeformula[eq:first]
\startformula
c^2 = a^2 + b^2
\stopformula
\placeformula[eq:second]
\startformula
c^2 = a^2 + b^2
\stopformula
\stopsubformulas
\s
I have found two issues with character alignment (see the following minimal
example): one when \\ is used in a cell instead of \crlf, another one when
\high or \low are used in a cell. Is it a bug?
\starttext
\setupTABLE[%
aligncharacter=yes,
alignmentcharacter=.,
align=middle]
\sub
I want to have the formula numbers of cases environment flushed on the
right like for regular formulas (not the default
numberdistance=2.5\emwidth). How can I do that?
\starttext
\startplaceformula
\startformula
\startcases
\NC x = 1 \NR[+]
\NC y = 1 \NR[+]
, \Biggr). Do I use the
right commands? Or could the developers fix that?
Thank you in advance.
Maggyero
___
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context
MWE:
\starttext
The delimiters are correctly displayed:
\startformula
\left\lfloor \frac{x}{y}\right\rfloor
\stopformula
The delimiters vanish:
\startformula
\Bigl\lfloor \frac{x}{y}\Bigr\rfloor
\stopformula
\stoptext
Maggyero
Dear list members,
What is the ConTeXt equivalent of the LaTeX function \newmcodes@ defined in
the AMSopn package (this function is used inside \DeclareMathOperator and
\operatorname and has the effect of resetting text-mode punctuation
characters such as *, -, /, :, and ’ in operator names)?
Tha
ions:
1. What is the ConTeXt equivalent of \newmcodes@?
2. What is the point of \definemathcommand?
Maggyero
___
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-contex
\mathchardef\std at minus\mathcode`\-\relax
\fi
\mathcode`\-45\mathcode`\/47\mathcode`\:"603A\relax}
\endgroup
so that the following code can compile in ConTeXt:
\definemathcommand[xyz][nolop]{\newmcodes@
\kern\zeropoint\mfu
ondition. Isn't
\ifnum a ConTeXt macro?
Maggyero
___
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/ntg-
Mr Hagen, is it the expected behaviour?
\starttext
The delimiters are correctly displayed:
\startformula
\left\lfloor \frac{x}{y}\right\rfloor
\stopformula
The delimiters vanish:
\startformula
\Bigl\lfloor \frac{x}{y}\Bigr\rfloor
\stopformula
\stoptext
Maggyero
5\mathcode`\/47\mathcode`\:"603A\relax}
\endgroup
\definemathcommand[xyz][nolop]{\newmcodes@
\kern\zeropoint\mfunction{fancy-function-name'*.:}}
\starttext
$\xyz$
\stoptext
Error:
tex error > error on line 13 in file
/Users/maggyero/Desktop/test.tex: ! Extended mathch
Dear members,
Why the floor and ceil math delimiters don't display?
Code:
\starttext
\startformula
\Bigl\lfloor \frac{x}{y}\Bigr\rfloor
\stopformula
\startformula
\Bigl\lceil \frac{x}{y}\Bigr\rceil
\stopformula
\stoptext
Thank you in advance.
Mag
\backslash bs}: {\bs \getbuffer}\par
\nextmyparagraphs
\switchtobodyfont[tt]
{\tt \backslash switchtobodyfont[tt]}\crlf
{\tt \backslash tf}: {\tf \getbuffer}\par
{\tt \backslash bf}: {\bf \getbuffer}\par
{\tt \backslash it
me* command in LaTeX. It provides:
\starttext
\startformula
\function{lim}_{x\to a} f(x)\quad \function[op]{lim}_{x\to a} f(x)\quad
\function[limop]{lim}_{x\to a} f(x)
\stopformula
\stoptext
— Third typo:
> \definemathcommand[arsinh][op]{\mathlabel{arsinh}}
\definemathcommand[arsinh][nolop]{\ma
lent of LaTeX \DeclareMathOperator macro
of the amsopn package):
\definemathfunction[arsinh]{Arsinh} $\arsinh x$
\definemathfunction[arsinh][op]{Arsinh} $\arsinh x$ or equivalently
\definemathfunction[arsinh][limop]{Arsinh} $\arsinh x$.
Maggyero
I've tried the unit interface today, and I've noticed two issues with the
following example:
\setupunits[alternative=text]
\starttext
$\unit{-4.6e-3 km s^-1}$
\stoptext
1. Minus superscripts for UNITS (so 's^-1' here—not 'e-3', which is fine)
are converted to hyphens with the 'text' unit alternat
nt of LaTeX \DeclareMathOperator macro
of the amsopn package):
\definemathfunction[arsinh]{Arsinh} $\arsinh x$
\definemathfunction[arsinh][op]{Arsinh} $\arsinh x$ or equivalently
\definemathfunction[arsinh][limop]{Arsinh} $\arsinh x$.
Maggyero
__
t}
affinity\par
$\mathrm{affinity}$\par % kerning and ligatures of TEXT mode with math font
\end{document}
ConTeXt:
\starttext
affinity\par
$\mathrm affinity$\par % kerning and ligatures of MATH mode with math font
\stop
Is there a plan to have in ConTeXt the same kind of math behavior that Will
Robertson implemented in the last version of his unicode-math LaTeX package
(\mathrm, \mathit, \mathbf, \symrm, \symit, \symbf, etc.)? Because ConTeXt
currently has the same math/text spacing issues in math mode that the ol
s with MATH spacing in math mode), and let me know
what you think.
Maggyero
math_mode_fonts.pdf
Description: Adobe PDF document
___
If your question is of interest to others as well, please add an entry to the
Wiki
s with MATH spacing in math mode), and let me know
what you think.
Maggyero
math_mode_fonts.pdf
Description: Adobe PDF document
___
If your question is of interest to others as well, please add an entry to the
Wiki
Hi,
There is a problem with the references to figures (command \in[...])
when you put a stopper for the captions: the stopper also appears in the
references. Here is a minimal example:
\starttext
\setupcaptions[numberstopper=\quad\emdash]
\placefigure[][cow]{A cow}{\externalfigure[cow]}
Th
Hi,
How to control the space between the number and the title in heads? By
default it seems there is a space of about 1 em. I want to change that
space and set a normal space instead (a word space), since I've put a
dot stopper after the numbers (\setupheads[stopper=.]). Example:
1. Titl
Hi,
I've noticed two bugs (I think) with stoppers:
1) Stoppers in table of contents
When you set stopper=~ in \setuplist the stopper also appears for
unnumbered heads of the table of contents (chapters, sections etc. that
are in frontmatter and backmatter).
2) Stoppers in head titles
When yo
57 matches
Mail list logo