Re: [NTG-context] Subformula numbering problem
Am 18.08.2014 um 23:27 schrieb Maggyero : > > No. > > > > Wolfgang > > This used to work, how is it possible that it does not work anymore? The formula code has been rewritten in MkIV and the current implementation resets the subformula setting after the end of the first formula. 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/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Subformula numbering problem
> 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 \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/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Center alignment within TABLE
On Mon, 18 Aug 2014 07:01:10 -0600, Idris Samawi Hamid ادريس سماوي حامد wrote: Now *this* is one that would be instructive to place on the wiki. Added: http://wiki.contextgarden.net/TABLE#An_alignment_issue Perhaps this example/wiki-sub-entry can be made more useful, a task I leave to others. Best wishes Idris -- Idris Samawi Hamid Professor of Philosophy Colorado State University Fort Collins, CO 80523 ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Intsalling modules - once more
Am 18.08.2014 um 19:03 schrieb Werner Hintze : > On 18 Aug 2014, at 18:17, Aditya Mahajan wrote: > >> MkIV will not load .mkii files. What is the exact command that you use to >> run context? > > Aha! You found the point! I use Texnicle as editor and the context engine > Texnicle provides. It calls texexec... But it’s not enough to put here > context. The problem remains, that I get the message, that fancy break is > undefined. What happens when you process this example with Texnicle: \usemodule[fancybreak] \starttext \input knuth \fancybreak{$***$} \input ward \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/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Intsalling modules - once more
On 18 Aug 2014, at 18:17, Aditya Mahajan wrote: MkIV will not load .mkii files. What is the exact command that you use to run context? Aha! You found the point! I use Texnicle as editor and the context engine Texnicle provides. It calls texexec... But it’s not enough to put here context. The problem remains, that I get the message, that fancy break is undefined. OK. That’s enough. I stay with the stand alone version. I don’t know why, but it works. (It was just the point that I have two times context on my hard disk. I could delete LaTeX, but I fell the moment apporaching when I turn back to LaTeX. It’s a pity... Context is by far the better system – in all points but one: If one don’t know how to use it, one will never know...) Anyway: Thanks for the help. W. ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Intsalling modules - once more
On Mon, 18 Aug 2014, Werner Hintze wrote: On 18 Aug 2014, at 17:05, Aditya Mahajan wrote: On Mon, 18 Aug 2014, Werner Hintze wrote: I don’t know if I use MKII or not. (Simplified version). If you compile the file using `context filename` you are using MkIV; if you compile the file using `texexec filename` you are using MkII. Unless you have a really good reason to stick to MkII (legacy code, etc), use MkIV. Well: I use MKIV. From your previous message: system : module fancybreak (mkii) loaded (/usr/local/texlive/texmf-local/tex/context/third/fancybreak/t-fancybreak.mkii loading : ConTeXt User Module / Fancybreak MkIV will not load .mkii files. What is the exact command that you use to run context? Aditya___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Intsalling modules - once more
Well: I use MKIV. On 18 Aug 2014, at 17:05, Aditya Mahajan wrote: On Mon, 18 Aug 2014, Werner Hintze wrote: I don’t know if I use MKII or not. (Simplified version). If you compile the file using `context filename` you are using MkIV; if you compile the file using `texexec filename` you are using MkII. Unless you have a really good reason to stick to MkII (legacy code, etc), use MkIV. Aditya___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Intsalling modules - once more
On 18 Aug 2014, at 16:56, Wolfgang Schuster wrote: Your problem is the line above where you use “einrueckung” as keyword for \setupindenting which is invalid and causes the error message. Aha. Strange. When I use the stand alone version, this is no problem. And if I comment out the lines with »einrueckung« (it’s no illegal, I defined it), I get the message, that \defineconversionset is illegal. But there is no problem if I use the stand alone version. Hmm... ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Intsalling modules - once more
On 18 Aug 2014, at 15:42, Wolfgang Schuster wrote: You can unzip the content of the zip-file in your local tex tree. This was my first try. And the first time I saw the message »module not found«. After this I looked in the wiki and used the other path (/usr/local etc.) — with the same result »module not found«... ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Intsalling modules - once more
On Mon, 18 Aug 2014, Werner Hintze wrote: I don’t know if I use MKII or not. (Simplified version). If you compile the file using `context filename` you are using MkIV; if you compile the file using `texexec filename` you are using MkII. Unless you have a really good reason to stick to MkII (legacy code, etc), use MkIV. Aditya___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Intsalling modules - once more
Am 18.08.2014 um 16:41 schrieb Werner Hintze : > I don’t know if I use MKII or not. I understood that not. But in the log file > I see something about the module for MKII: > > system : module fancybreak (mkii) loaded > (/usr/local/texlive/texmf-local/tex/context/third/fancybreak/t-fancybreak.mkii > loading : ConTeXt User Module / Fancybreak > ) > regime : unknown regime de, utf > check : missing or ungrouped '=' after 'medium' in line 60 > (@@dseinru > eckung) > ! Missing number, treated as zero. > > e > \currentindentation ->e > inrueckung > \assigndimension ...xpandafter \endcsname \else #1 > \expandafter \gobblethreea... > > \simplesetupindenting ...ndentation \ctxparindent > {1em}{1.5em}{2em} > \next1 #1,->\docomplexsetupindentingA {#1} > \doprocesscommaitem > \doprocesscommalist ...item \gobbleoneargument #1, > ]\relax \global \advance \... > ... > l.61 \setupindenting[einrueckung] Your problem is the line above where you use “einrueckung” as keyword for \setupindenting which is invalid and causes the error message. 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/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Intsalling modules - once more
I don’t know if I use MKII or not. I understood that not. But in the log file I see something about the module for MKII: system : module fancybreak (mkii) loaded (/usr/local/texlive/texmf-local/tex/context/third/fancybreak/t-fancybreak.mkii loading : ConTeXt User Module / Fancybreak ) regime : unknown regime de, utf check : missing or ungrouped '=' after 'medium' in line 60 (@@dseinru eckung) ! Missing number, treated as zero. e \currentindentation ->e inrueckung \assigndimension ...xpandafter \endcsname \else #1 \expandafter \gobblethreea... \simplesetupindenting ...ndentation \ctxparindent {1em}{1.5em}{2em} \next1 #1,->\docomplexsetupindentingA {#1} \doprocesscommaitem \doprocesscommalist ...item \gobbleoneargument #1, ]\relax \global \advance \... ... l.61 \setupindenting[einrueckung] ? ! Emergency stop. No idea what this means. Anyway: It means that I can’t use it with context in TexLive, but with the stand alone. So I can use it as before and all is well. On 18 Aug 2014, at 15:31, Aditya Mahajan wrote: On Mon, 18 Aug 2014, Werner Hintze wrote: Thank you. The files are in the right places, I believe, it was only »sudo mktexlsr« lacking. (This is not mentioned in the wiki. Unforunately it doesn't help. Now the module is found, Are you using MkII? mktexlsr should not be needed for MkIV. You can find the values of TEXMF (or any other variable set in texmf.cnf or texmfcnf.lua) by For MkII kpsewhich --expand-var \$TEXMF For MkIV mtxrun --expand-var TEXMF Aditya___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] TEX and XML typing with trailing interline space
Am 18.08.2014 um 15:22 schrieb Christoph Reller : > Hi, > > How do I get rid of the additional line inserted at the end of a TEX or XML > environment? \setupstartstop [DefaultSnippet] [before=, after=] 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/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Intsalling modules - once more
Am 18.08.2014 um 10:15 schrieb Werner Hintze : > If nobody can tell me how to install the module ”fancybreak« on Mac OS (may > be the question is too stupid), can anybody tell me where I find the needed > information? The wiki doesn't help me because I don’t know $TEXMF. You can unzip the content of the zip-file in your local tex tree. To use the local tex tree create a folder with the name “texmf” in your home directory (or in the hidden Library folder in your home directory AFAIR) and context should find the module. 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/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Intsalling modules - once more
On Mon, 18 Aug 2014, Werner Hintze wrote: Thank you. The files are in the right places, I believe, it was only »sudo mktexlsr« lacking. (This is not mentioned in the wiki. Unforunately it doesn't help. Now the module is found, Are you using MkII? mktexlsr should not be needed for MkIV. You can find the values of TEXMF (or any other variable set in texmf.cnf or texmfcnf.lua) by For MkII kpsewhich --expand-var \$TEXMF For MkIV mtxrun --expand-var TEXMF Aditya___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] TEX and XML typing with trailing interline space
Hi, How do I get rid of the additional line inserted at the end of a TEX or XML environment? Minimal working example: \starttext \setuptyping[TEX][before=,after=] % <- trailing interline space \hrule \startTEX \TeX \stopTEX \hrule \medskip \setuptyping[XML][before=,after=] % <- trailing interline space \hrule \startXML \stopXML \hrule \medskip \setuptyping[before=,after=] % <- works as expected \hrule \starttyping \TeX \stoptyping \hrule \stoptext Thank you for any advice! Christoph ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Intsalling modules - once more
Thank you. The files are in the right places, I believe, it was only »sudo mktexlsr« lacking. (This is not mentioned in the wiki. Unforunately it doesn't help. Now the module is found, but I get an error message when it is used. This seems to be an issue with the TextLive distribution, because it works fine with the stand alone. So I stick with t stand alone... ;) Anyway: Thank you for your help. W. On 18 Aug 2014, at 10:55, Akira Kakuto wrote: If nobody can tell me how to install the module ”fancybreak« on Mac OS ... It may be OK by the following: After checking files /usr/local/texlive/texmf-local/doc/context/third/fancybreak/fancybreak-doc.pdf /usr/local/texlive/texmf-local/doc/context/third/fancybreak/README /usr/local/texlive/texmf-local/tex/context/interface/third/t-fancybreak.xml /usr/local/texlive/texmf-local/tex/context/third/fancybreak/t-fancybreak.mkii /usr/local/texlive/texmf-local/tex/context/third/fancybreak/t-fancybreak.mkvi (1) sudo mktexlsr (2) context --generate Best, Akira ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Center alignment within TABLE
On Mon, 18 Aug 2014 01:46:01 -0600, Wolfgang Schuster wrote: Am 18.08.2014 um 07:15 schrieb Idris Samawi Hamid ادريس سماوي حامد : Dear syndicate, I'm stumped trying to get the first two cells of the following TABLE aligned to the center: == \define[3]\Glyphbox {\framed[frame=on,align=middle]\bgroup {#1\\ #2\\ #3% \egroup}} Please check this: \bgroup { … \egroup } Yes, took out the font-dependent line to make a minimal example and that got mixed up... still compiled correctly interestingly... \starttext \setupTABLE[frame=on,align=middle] \bTABLE \bTR \bTD \Glyphbox{I}{a}{1} \eTD \bTD \Glyphbox{I}{a}{1} \eTD \eTR \bTR \bTD \Glyphbox{III}{aaa}{111} \eTD \bTD \Glyphbox{III}{aaa}{111} \eTD \eTR \eTABLE \stoptext == See also attached pdf. No what I've tried (\setupTABLE) the first two cells remain flushleft. Even with \setupTABLE[frame=on,align=flushright] the two cells in the top row remain flushleft. Thanks in advance for any advice and 1. You need \dontleavehmode in front of the \framed. 2. You need \setupTABLE[start][..,..=..,..] because \bTABLE sets a default value for the align key which can’t be overwritten with a simple \setupTABLE[..,..=..,..]. Wow... Now *this* is one that would be instructive to place on the wiki. (Is '\setupTABLE[start]' documented anywhere else?) Thanks, Wolfgang! Best wishes Idris -- Idris Samawi Hamid Professor of Philosophy Colorado State University Fort Collins, CO 80523 ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Selecting character by glyph index
On 8/18/2014 7:48 AM, Idris Samawi Hamid ادريس سماوي حامد wrote: Dear consortium, Is there a command analogous to \char or \fontchar which allows me to select a glyph by its index in the font? In most font editors you can choose "Index Mode" which shows the "physical" ordering of the glyphs independent of encoding etc. I thought that \charNN (where 'NN' is a decimal integer) did this, but it does not seem to select the correct indexed glyph for a \definefont, making me wonder in MkIV has changed its behavior. For example, choosing \char35 gives me glyph index 223, not glyph 35. In any case, for the current (already tedious) project this is a feature that is sorely needed; if there is a way to hack a quick lua-based command to do it, I would appreciate any help I can get. Perhaps a future version of \fontchar can add this as an option... Thanks in advance and you cannot trust an index ... use names as these are more stable \setupbodyfont[dejavu] \starttext \fontchar{a} \fontchar{alpha} \fontchar{three} \fontchar{uni1ECB.dotless} \fontchar{delta} \fontchar{delta.smcp} \stoptext - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Intsalling modules - once more
If nobody can tell me how to install the module ”fancybreak« on Mac OS ... It may be OK by the following: After checking files /usr/local/texlive/texmf-local/doc/context/third/fancybreak/fancybreak-doc.pdf /usr/local/texlive/texmf-local/doc/context/third/fancybreak/README /usr/local/texlive/texmf-local/tex/context/interface/third/t-fancybreak.xml /usr/local/texlive/texmf-local/tex/context/third/fancybreak/t-fancybreak.mkii /usr/local/texlive/texmf-local/tex/context/third/fancybreak/t-fancybreak.mkvi (1) sudo mktexlsr (2) context --generate Best, Akira ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] contextref.pdf unsearchable?
It turns out my version of Mac OS X is to blame. When you open a PDF in Safari and you want to save it, you need to open it in Preview first. But when you then save it somewhere from Preview, searching and other stuff is damaged. It apparently is not saved ‘as is’. G On 17 Aug 2014, at 22:15, Gerben Wierda wrote: > I don’t know where I got it but the one I had (MacTeX?) was unsearchable and > had not working links. But yours is OK. Thanks. > > G > > On 17 Aug 2014, at 20:57, Mikael P. Sundqvist wrote: > >> On Sun, Aug 17, 2014 at 8:46 PM, Gerben Wierda wrote: >>> On 17 Aug 2014, at 20:44, Mikael P. Sundqvist wrote: >>> On Sun, Aug 17, 2014 at 8:33 PM, Gerben Wierda wrote: > I have two manuals, cont-enp.pdf (2001) and contextref.pdf (2013). I > often have to go to cont-enp.pdf because contextref.pdf is unsearchable. > Is it indeed unsearchable? Or is something wrong at my end? > > G contextref.pdf is searchable here. >>> >>> Where did you download your version? I'd like to test with exactly the same. >> >> Google gave me (among the first hits): >> >> http://staff.science.uva.nl/~hansm/docs/context/contextref.pdf >> and >> http://pmrb.free.fr/contextref.pdf >> >> Both searchable. >> >> /Mikael >> ___ >> 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://www.pragma-ade.nl / http://tex.aanhet.net >> archive : http://foundry.supelec.fr/projects/contextrev/ >> wiki : http://contextgarden.net >> ___ > > ___ > 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://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___ ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Intsalling modules - once more
If nobody can tell me how to install the module ”fancybreak« on Mac OS (may be the question is too stupid), can anybody tell me where I find the needed information? The wiki doesn't help me because I don’t know $TEXMF. Thanks! WH P.S.: I had no problem to install the module in the stand alone version. The problem is about the »normal« distribution (TexLive). ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Distances between chapter and section titles and text
Am 18.08.2014 um 09:29 schrieb Robert Blackstone : > > On 17 aug. 2014, at 20:06, wrot > >> On 2014-08-15, 19:56, Robert Blackstone wrote: >> >>> A few days ago I posted this question. There were no reactions, but >>> it is not an urgent matter for me anymore since I found an effective >>> work-around. (Although I still wonder whether or not this possibility >>> exists in mkiv,) >> >> I have not seen the issue you have described myself. The attached >> example works for me. You have to prepare a minimal working example >> that shows the problem. Maybe then somebody can identify the reason >> for your issue. >> >> > Hello Joshua, > Thanks for your reaction. > The minimal example you gave works here as well, but it does not really > concern the problem I had. > > When you add a section right at the beginning of the chapter, as is the case > for nearly all of the chapters of my project, things become different. > Here is your ME with sections added: > > === > \starttext > > %\startfrontmatter > %\input knuth > %\stopfrontmatter > > \startbodymatter > > \setuphead [chapter] [ > number=yes, > alternative=middle, > style=\tfa \bf, > after={\blank[0.5cm]}, > ] > > \chapter{One} > \section{One a} > \input knuth > > \setuphead [chapter] [ > number=yes, > alternative=middle, > style=\tfa \bf, > after={\blank[0.1cm]}, > ] > > \chapter{Two} > > \section{Two a} > \input knuth > > \stopbodymatter > > \stoptext > === > Despite different setups for the chapter head the distances: chapter head - > section head - beginning of the text, are identical in both chapters (±1 > pixel). > But I have realized now, a bit late, that for real control over these > distances one also needs to setup the section-head in a similar manner, > additionally specifying the distance "before". > The presence or absence of Frontmatter does not influence results. > I think there must have been a setup command somewhere in my setups that I > had forgotten about. You’re forgetting that \section insert also a space before the text is placed. In a case where two commands insert a space at the same position like here the larger value is used which comes in the second chapter from the \section command. 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/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Center alignment within TABLE
Am 18.08.2014 um 07:15 schrieb Idris Samawi Hamid ادريس سماوي حامد : > Dear syndicate, > > I'm stumped trying to get the first two cells of the following TABLE aligned > to the center: > > == > \define[3]\Glyphbox > {\framed[frame=on,align=middle]\bgroup > {#1\\ > #2\\ > #3% > \egroup}} Please check this: \bgroup { … \egroup } > \starttext > \setupTABLE[frame=on,align=middle] > \bTABLE > \bTR \bTD \Glyphbox{I}{a}{1} \eTD > \bTD \Glyphbox{I}{a}{1} \eTD > \eTR > \bTR \bTD \Glyphbox{III}{aaa}{111} \eTD > \bTD \Glyphbox{III}{aaa}{111} \eTD > \eTR > \eTABLE > \stoptext > == > > See also attached pdf. No what I've tried (\setupTABLE) the first two cells > remain flushleft. Even with > > \setupTABLE[frame=on,align=flushright] > > the two cells in the top row remain flushleft. Thanks in advance for any > advice and 1. You need \dontleavehmode in front of the \framed. 2. You need \setupTABLE[start][..,..=..,..] because \bTABLE sets a default value for the align key which can’t be overwritten with a simple \setupTABLE[..,..=..,..]. 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/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Distances between chapter and section titles and text
On 17 aug. 2014, at 20:06, wrot > On 2014-08-15, 19:56, Robert Blackstone wrote: > >> A few days ago I posted this question. There were no reactions, but >> it is not an urgent matter for me anymore since I found an effective >> work-around. (Although I still wonder whether or not this possibility >> exists in mkiv,) > > I have not seen the issue you have described myself. The attached > example works for me. You have to prepare a minimal working example > that shows the problem. Maybe then somebody can identify the reason > for your issue. > > Hello Joshua, Thanks for your reaction. The minimal example you gave works here as well, but it does not really concern the problem I had. When you add a section right at the beginning of the chapter, as is the case for nearly all of the chapters of my project, things become different. Here is your ME with sections added: === \starttext %\startfrontmatter %\input knuth %\stopfrontmatter \startbodymatter \setuphead [chapter] [ number=yes, alternative=middle, style=\tfa \bf, after={\blank[0.5cm]}, ] \chapter{One} \section{One a} \input knuth \setuphead [chapter] [ number=yes, alternative=middle, style=\tfa \bf, after={\blank[0.1cm]}, ] \chapter{Two} \section{Two a} \input knuth \stopbodymatter \stoptext === Despite different setups for the chapter head the distances: chapter head - section head - beginning of the text, are identical in both chapters (±1 pixel). But I have realized now, a bit late, that for real control over these distances one also needs to setup the section-head in a similar manner, additionally specifying the distance "before". The presence or absence of Frontmatter does not influence results. I think there must have been a setup command somewhere in my setups that I had forgotten about. Kind regards, Robert ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___