Re: [NTG-context] rotated headers in natural tables

2023-03-15 Thread fv leung via ntg-context
How about using \vfill ? \define[1]{\RtH}{\vfill\rotate{#1}} Henning Hraban Ramm via ntg-context 於 2023年3月16日 週四 上午2:16寫道: > Hi! > > In my table, I want the header texts to be 90˚ rotated and aligned to > the bottom of their cell. I couldn’t find an option to do that. > Tried \dontleavehmode

Re: [NTG-context] Aaligned numbers in a matrix?

2023-02-26 Thread fv leung via ntg-context
See if this way suits you. \definemathmatrix[bmatrix] [matrix:brackets] [simplecommand=bmatrix] \starttext $ a \rightarrow \bmatrix{1, \hfill 2, 3, \hfill 4; 2, \hfill 1, 4, \hfill 3; 3,-4, 1,-2; 4,-3, 2,-1} $ \stoptext Bruce Horrocks via ntg-context 於

Re: [NTG-context] horizontal space in CJK document

2023-02-20 Thread fv leung via ntg-context
Maybe the ideographic space U+3000 works. 在 2023年2月21日週二 03:42,Sylvain Hubert via ntg-context 寫道: > Dear list, > > Does anyone know how to insert a horizontal space in a CJK document with > \setscript[hanzi]? > > \setscript[hanzi] > \definefontfamily[mainface][rm][notoserifcjkhk][] >

Re: [NTG-context] How to stop enumerated tabulate environments from shifting to the right?

2022-11-12 Thread fv leung via ntg-context
Will this suit you? \starttext \input knuth \startitemize[n] \item x \stopitemize \startitemize[n][leftmargindistance=-.1\textwidth,width=.1\textwidth] \starttabulate[|lp(.1\textwidth)|cp(.35\textwidth)|cp(.2\textwidth)|cp(.35\textwidth)|]

Re: [NTG-context] Nested itemize

2022-09-02 Thread fv leung via ntg-context
\starttext \startitemize[n] \item\godown[-\lineheight] \startitemize[a,columns,packed][before={\blank[nowhite]},right=\),stopper=] \item bla \item bla \item bla \item bla \stopitemize \item\godown[-\lineheight]

[NTG-context] metafun paralleled does not give a parallel path

2022-08-24 Thread fv leung via ntg-context
The following used to produce three parallel lines. Now it produces one straight line and two arcs. \starttext \startMPcode z0 = origin; z1 = 72dir(45); dotlabel.bot("z0", z0); draw z0--z1; draw (z0--z1) paralleled -15 withcolor red; draw (z0--z1) paralleled 15 withcolor blue;

Re: [NTG-context] MetaPost label font size

2022-07-06 Thread fv leung via ntg-context
amm via ntg-context 於 2022年7月6日 週三 晚上7:36寫道: > Am 06.07.22 um 12:45 schrieb Hans Hagen via ntg-context: > > On 7/6/2022 12:19 PM, fv leung via ntg-context wrote: > >> My stupid way to get labels of different sizes: > >> > >> \starttext > >> >

Re: [NTG-context] MetaPost label font size

2022-07-06 Thread fv leung via ntg-context
My stupid way to get labels of different sizes: \starttext \startMPcode label("normal label", (0, 0)); label("\setsmallbodyfont small label", (0, 18)); label("\setbigbodyfont big label", (0, -18)); \stopMPcode \stoptext Henning Hraban Ramm via ntg-context 於 2022年7月6日 週三 下午5:23寫道: >

Re: [NTG-context] Custom engine settings in AUCTEX

2022-06-14 Thread fv leung via ntg-context
I changed the value for ConTeXt-Mark-version from "II" to "IV" in context.el file. There are more than one such entry. In the Windows platform, I added the following to the .emacs file: (load "context.el" nil t t) (add-to-list 'auto-mode-alist '("\\.tex\\'" . context-mode)) (eval-after-load 'tex

Re: [NTG-context] Problems with itemize with several columns

2022-02-24 Thread fv leung via ntg-context
Avoid using \startformula \stopformula in itemize. Use \dfrac to get display style fraction. \defineenumeration [exercici] [alternative=serried, before={\blank[medium]\testpage[1]}, text={Exercici}, stopper={.\space}, width=fit, headstyle=\ss, distance=0.25em, width=fit,

Re: [NTG-context] Conditional text appearing in a fixed vertical space

2022-01-12 Thread fv leung via ntg-context
You can also consider using viewerlayer: \setupinteraction[state=start] \defineviewerlayer[solution] \setupcolors[state=start] \usecolors[xwi] \definecolor[keyColor][1.0(maroon)] \starttext \startitemize[n] \but[ToggleLayer{solution}] \samplefile{tufte} \blank[big]

Re: [NTG-context] how to place getmarking[title] in header instead of getmarking[chapter]

2022-01-04 Thread fv leung via ntg-context
can use this for the header: \setupheadertexts [text] [{\namedstructurevariable{chapter}{title}}] [] [] [{\namedstructurevariable{chapter}{title}}] juh via ntg-context 於 2022年1月5日 週三 上午12:28寫道: > Hi all, > > I know how to put the current chapter in the header. > > But how can I also put the

Re: [NTG-context] Two questions on enumerations/indentation

2021-12-30 Thread fv leung via ntg-context
Can solve with \defineenumeration[remark][ alternative=serried, width=fit, text={{\it Remark}}, headstyle=\tf, indenting={first,medium}, %headcommand=\groupedcommand{\hskip 1em}{}, ] Mikael Sundqvist via ntg-context 於 2021年12月31日 週五 上午4:55寫道: > Hi, > > I have two questions: > >

Re: [NTG-context] fixing indentation of xtable inside item

2021-11-22 Thread fv leung via ntg-context
add \dontleavehmode before the table Andres Conrado Montoya via ntg-context 於 2021年11月23日 週二 上午7:58寫道: > Considering the following MWE, I would like to know how I can get > the table inside the item to be aligned with the item. It seems the > tabel takes the width right, but it gets pushed to

Re: [NTG-context] Indentation inside \framed won't go away

2021-10-21 Thread fv leung via ntg-context
I use \removeunwantedspaces in this case. Ramkumar KB via ntg-context 於 2021年10月21日 週四 下午4:32寫道: > Hello, > > I have this nagging issue of indentation (in the 1st line) showing up > inside \framed in spite of all the commands to skip indentation (see > attached PDF). > > It appears that

Re: [NTG-context] changes of color

2021-09-21 Thread fv leung via ntg-context
\starttext It seems that the problem comes up when the same color as the surrounding text is used in MPcode.\par { \red text red\par \startMPcode drawoptions(withcolor blue); label("text blue in MPcode", origin); \stopMPcode \par text still red\par But\par text red\par

Re: [NTG-context] margin of inner item group

2021-09-07 Thread fv leung via ntg-context
Use distance=... instead of margin=... . 在 2021年9月7日週二 16:58,Sylvain Hubert via ntg-context 寫道: > Dear List, > > Does anyone know how to set the margin of an inner item group? The > natural way does not seem to work: > > \showframe > \starttext > \startitemize[margin=5em] > \item 1 >

Re: [NTG-context] itemize problems

2021-09-07 Thread fv leung via ntg-context
gt; \item 1 > \item 2 > \stopitemize > \stoptext > > %output: (A) 1 (B) 2 > > On 07/09/2021, fv leung via ntg-context wrote: > > I add > > > > left=,right=, > > > > in the second option group. > > > > 在 2021年9月7日

Re: [NTG-context] itemize problems

2021-09-06 Thread fv leung via ntg-context
I add left=,right=, in the second option group. 在 2021年9月7日週二 07:02,Sylvain Hubert via ntg-context 寫道: > A few more information: > > For the 1st problem: > > It seems that \setupitemize accepts two option groups, to which > n,packed and margin belong accordingly. However, >

[NTG-context] Using \vrule within mathmatrix

2021-09-03 Thread fv leung via ntg-context
\definemathmatrix[pmatrix][matrix:parentheses][simplecommand=pMat] \starttext I used to typeset an augmented matrix this way: \m{\pMat{1,7,-6,\vrule,-4;3,-4,7,\vrule,13;4,3,1,\vrule,9}} But this no longer works. Though I can get over this with \m{\pMat{1,7,-6,¦,-4;3,-4,7,¦,13;4,3,1,¦,9}} ,

[NTG-context] metafun doesn't compile \root 3 \of 2

2021-09-03 Thread fv leung via ntg-context
\starttext \m{\root3\of2} \stoptext works. But \starttext \startMPcode label("\m{\root3\of2}", origin); \stopMPcode \stoptext doesn't. Running `LuaMetaTeX' on `trial' with ``/home/fvleung/ConTeXt/tex/texmf-linux-64/bin/mtxrun --autogenerate --script context trial.tex'' resolvers