[NTG-context] Are positional graphics still working?
I've copied the following example from the ConTeXt archive: \defineoverlay[frames][\positionoverlay{frames}] \setupbackgrounds[text][background=frames] \startMPpositiongraphic{frame} if unknown context_apos : input mp-apos.mpiv ; fi ; \MPgetposboxes{\MPvar{self}}{\MPanchorid} if nofposboxes = 1 : draw posboxes[1] ; fi ; \stopMPpositiongraphic \startpositionoverlay{frames} \setMPpositiongraphic{one}{frame} \setMPpositiongraphic{two}{frame} \stoppositionoverlay \starttext This \hpos{one}{word} should be \hpos{two}{framed}. \stoptext Frames are misplaced, so I don't know if that's a bug or something else has been updated/changed/deprecated. Thank you in advance. Jairo ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] How to improve visually a table
Le 16/02/2021 à 21:31, Wolfgang Schuster a écrit : Alain Delmotte schrieb am 16.02.2021 um 21:00: Le 16/02/2021 à 20:02, Wolfgang Schuster a écrit : Alain Delmotte schrieb am 16.02.2021 um 19:23: Hi! I am progressing in the use of ConTeXt by applying it to some specific projects. For two manuals I am preparing for myself I'd like to reproduce the original work. What I'd like to have: What I have so far: How to obtain the first? Can you show your code for the table. Wolfgang Here it is, but I did it to have a sufficiently good table, as I didn't know how to recreate the original. \placetable[none,here]{}{ \starttabulate[|i1Slw(20mm)|i1Slp(20mm)|i1lp(7cm)|] \DB espéranto \NC {\bf exemple} \NC {\bf équivalent en français}\NR\TB \NC {\bs g} \NC {\bs g}azeto, {\bs g}itaro \NC toujours comme le g de gare (jamais comme le j) \NR\HL \NC {\bs c} \NC la{\bs c}a \NC ts, comme dans tsé-tsé \NR\HL \NC {\bs j} \NC {\bs j}es \NC comme le y de yoga ou le ia de piano ou le ill de pareil, œil, fouille \NR\HL \NC {\bs s} \NC ta{\bs s}o \NC toujours ss comme dans tasse (jamais comme un z) \NR\HL \NC {\bs h} \NC {\bs h}a lo \NC la combinaison ha se prononce comme quand on rit : ha !, ha !, ha ! Pareil pour ho : ho !,ho !,ho ! et hi : hi !,hi !, hi ! \NR\HL \stoptabulate Thanks for your answer, You achieve better results with natural tables where each cell is a \framed block where you have options to add backgrounds colors, rounded corners and custom border colors. Look at the attachment for a example. Wolfgang Thank you Wolfgang, I continued to explore the wiki and I did find the description for the natural table and I did discover what you are sugesting me. I'll continue to test. Thanks again, Alain ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] How to improve visually a table
Alain Delmotte schrieb am 16.02.2021 um 21:00: Le 16/02/2021 à 20:02, Wolfgang Schuster a écrit : Alain Delmotte schrieb am 16.02.2021 um 19:23: Hi! I am progressing in the use of ConTeXt by applying it to some specific projects. For two manuals I am preparing for myself I'd like to reproduce the original work. What I'd like to have: nice table What I have so far: present state How to obtain the first? Can you show your code for the table. Wolfgang Here it is, but I did it to have a sufficiently good table, as I didn't know how to recreate the original. \placetable[none,here]{}{ \starttabulate[|i1Slw(20mm)|i1Slp(20mm)|i1lp(7cm)|] \DB espéranto \NC {\bf exemple} \NC {\bf équivalent en français}\NR\TB \NC {\bs g} \NC {\bs g}azeto, {\bs g}itaro \NC toujours comme le g de gare (jamais comme le j) \NR\HL \NC {\bs c} \NC la{\bs c}a \NC ts, comme dans tsé-tsé \NR\HL \NC {\bs j} \NC {\bs j}es \NC comme le y de yoga ou le ia de piano ou le ill de pareil, œil, fouille \NR\HL \NC {\bs s} \NC ta{\bs s}o \NC toujours ss comme dans tasse (jamais comme un z) \NR\HL \NC {\bs h} \NC {\bs h}a lo \NC la combinaison ha se prononce comme quand on rit : ha !, ha !, ha ! Pareil pour ho : ho !,ho !,ho ! et hi : hi !,hi !, hi ! \NR\HL \stoptabulate Thanks for your answer, You achieve better results with natural tables where each cell is a \framed block where you have options to add backgrounds colors, rounded corners and custom border colors. Look at the attachment for a example. Wolfgang \setupbodyfont[dejavu,10pt,ss] \starttext \definecolor [tableheader] [x=00ADEF] \startsetups[tablesettings] \setupTABLE[start][framecolor=gray,loffset=.5ex,roffset=.5ex] %\setupTABLE[header][background=color,backgroundcolor=tableheader,foregroundcolor=white] %\setupTABLE[header][1][corner=08] %\setupTABLE[header][3][corner=05] \setupTABLE[row][first][background=color,backgroundcolor=tableheader,foregroundcolor=white] \setupTABLE[first][first][corner=08] \setupTABLE[last][first][corner=05] \setupTABLE[first][last][corner=07] \setupTABLE[last][last][corner=06] \setupTABLE[column][last][style={\setcharacterspacing[frenchpunctuation]}] \stopsetups \bTABLE[setups=tablesettings] %\bTABLEhead \bTR \bTH espéranto \eTH \bTH exemple \eTH \bTH équivalent en français \eTH \eTR %\eTABLEhead %\bTABLEbody \bTR \bTD {\bs g} \eTD \bTD {\bs g}azeto, {\bs g}itaro \eTD \bTD toujours comme le g de gare (jamais comme le j) \eTD \eTR \bTR \bTD {\bs c} \eTD \bTD la{\bs c}a \eTD \bTD ts, comme dans tsé-tsé \eTD \eTR \bTR \bTD {\bs j} \eTD \bTD {\bs j}es \eTD \bTD comme le y de yoga ou le ia de piano ou le ill de pareil, œil, fouille \eTD \eTR \bTR \bTD {\bs s} \eTD \bTD ta{\bs s}o \eTD \bTD toujours ss comme dans tasse (jamais comme un z) \eTD \eTR \bTR \bTD {\bs h} \eTD \bTD {\bs h}a lo \eTD \bTD la combinaison ha se prononce comme quand on rit: ha!, ha!, ha! Pareil pour ho: ho!, ho!, ho! et hi: hi!, hi!, hi! \eTD \eTR %\eTABLEbody \eTABLE \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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] How to improve visually a table
Alain Delmotte schrieb am 16.02.2021 um 19:23: Hi! I am progressing in the use of ConTeXt by applying it to some specific projects. For two manuals I am preparing for myself I'd like to reproduce the original work. What I'd like to have: nice table What I have so far: present state How to obtain the first? Can you show your code for the table. 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] How to improve visually a table
Hi! I am progressing in the use of ConTeXt by applying it to some specific projects. For two manuals I am preparing for myself I'd like to reproduce the original work. What I'd like to have: What I have so far: How to obtain the first? Thanks, Alain ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] set fallback in \definefont
Mohammad Hossein Bateni schrieb am 15.02.2021 um 22:31: Thanks for the quick response, Pablo. I already use typescripts (\definetypeface, \definefontsynonym and \definefontfallback): https://github.com/bateni/dabeer/tree/master/texmf-local/tex/context/fonts/mkiv By arbitrary style, I meant something like: \definefontfamily[myface][CUSTOM][TeX Gyre Pagella]] https://wiki.contextgarden.net/Font_Switching says fontstyle is rm, ss, tt, mm, hw, cg, ... Because the the three dots at the end, I thought it would be possible to define new fontstyles. But I get an error if I do so. You can add additional styles but this requires more than a single line of code. \definefontfamily itself is limited to the default styles because the command creates a typescript behind the scenes. 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] temporary changes to the layout - \startlocal undefined
*great*, that looks clean and useful - thank you very much Wolfgang! cheers, Werner Am 16.02.21 um 17:21 schrieb Wolfgang Schuster: Werner Hennrich schrieb am 16.02.2021 um 16:29: Hello Everybody, I need to increase my header's space temporarily and according to pg 99 of context_an_excursion "\startlocal ... \stoplocal" is the way to go - unfortunately my LMTX (2021.02.02 15:49) disagrees: \setuppapersize[A4][A4] \setuplayout[ ... header=15mm, ... ] \starttext \input tufte \page \startlocal \setuplayout[header+=20mm] \input tufte \stoplocal \page \input tufte \stoptext This fails: tex error > tex error on line XX in file ./local-layout.tex: Undefined control sequence XX >> \startlocal Do I need to load something in order to use this? Or has it been completely removed? And if so, is there a new alternative method to do the same thing? I was unable to find anything on this topic except https://www.mail-archive.com/ntg-context@ntg.nl/msg63602.html which raises the same question already in 2012 but never answers it IMHO. Create a named layout (\definelayout[...]) and use it: \setuplayout [header=15mm] \definelayout [extraheader] [header=35mm] \showframe \starttext \input tufte \startlayout[extraheader] \input tufte \stoplayout \input tufte \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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] \showmathcharacters, mk ii, how can I get the list, is not working!!
Hi Uschi, Maybe you need to get all math commands which result in a special character: in this case you may use the following, and uncomment other commands below to see what they give you. \usemodule[s-math-coverage] % \setupbodyfont[lucidaot] % Put here the font you are going to use \starttext % \showmathalphabets \page % \showmathcharacters \page % \showmathscripts\page % \showmathbold \page \showmathentities \page \stoptext Best regards: Otared > On 16 Feb 2021, at 15:07, Ursula Hermann wrote: > > Dear List, > I would like to know, what i can do, to geht all Math macros with MkII : > \showmathcharacters in my Editor: WinEdt. I tried to compile it, but there is > a mistake. I tried with \starttext and \stoptext, didn't work. > > Command Line: context.exe --synctex=-1 "Math 2.tex" > Startup Folder: C:\Users\Administrator > resolvers | formats | executing runner 'run luatex format': > C:/texlive/2020/bin/win32/luatex --jobname="Math 2" > --fmt=C:/texlive/2020/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9/formats/luatex/cont-en.fmt > > --lua=C:/texlive/2020/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9/formats/luatex/cont-en.lui > cont-yes.mkiv --c:currentrun=1 --c:fulljobname="./Math 2.tex" > --c:input="./Math 2.tex" --c:kindofrun=1 --c:maxnofruns=9 --c:synctex="-1" > --c:texmfbinpath="C:/texlive/2020/bin/win32" > This is LuaTeX, Version 1.12.0 (TeX Live 2020/W32TeX) > system commands enabled. > open source > level 1, order 1, name > 'C:/texlive/2020/texmf-dist/tex/context/base/mkiv/cont-yes.mkiv' > system > > system > ConTeXt ver: 2020.03.10 14:44 MKIV beta fmt: 2021.1.18 > int: english/english > system > > system > 'cont-new.mkiv' loaded > open source > level 2, order 2, name > 'C:/texlive/2020/texmf-dist/tex/context/base/mkiv/cont-new.mkiv' > system > beware: some patches loaded from cont-new.mkiv > close source> level 2, order 2, name > 'C:/texlive/2020/texmf-dist/tex/context/base/mkiv/cont-new.mkiv' > system > files > jobname 'Math 2', input './Math 2', result 'Math 2' > fonts > latin modern fonts are not preloaded > languages > language 'en' is active > system > synctex functionality is enabled, expect 5-10 pct runtime > overhead! > open source > level 2, order 3, name 'C:/Users/Administrator/Math 2.tex' > > tex error > tex error on line 1 in file C:/Users/Administrator/Math > 2.tex: ! Undefined control sequence > > l.1 \showmathcharacters > > > 1 >> \showmathcharacters > > mtx-context | fatal error: return code: 1 > > > _ > > ConTeXt Compilation Report (Pages: 0) > > Errors: 1 Warnings: 0 Bad Boxes: 0 > ___ > > Many thanks > Uschi Hermann > ___ > 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://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] temporary changes to the layout - \startlocal undefined
Werner Hennrich schrieb am 16.02.2021 um 16:29: Hello Everybody, I need to increase my header's space temporarily and according to pg 99 of context_an_excursion "\startlocal ... \stoplocal" is the way to go - unfortunately my LMTX (2021.02.02 15:49) disagrees: \setuppapersize[A4][A4] \setuplayout[ ... header=15mm, ... ] \starttext \input tufte \page \startlocal \setuplayout[header+=20mm] \input tufte \stoplocal \page \input tufte \stoptext This fails: tex error > tex error on line XX in file ./local-layout.tex: Undefined control sequence XX >> \startlocal Do I need to load something in order to use this? Or has it been completely removed? And if so, is there a new alternative method to do the same thing? I was unable to find anything on this topic except https://www.mail-archive.com/ntg-context@ntg.nl/msg63602.html which raises the same question already in 2012 but never answers it IMHO. Create a named layout (\definelayout[...]) and use it: \setuplayout [header=15mm] \definelayout [extraheader] [header=35mm] \showframe \starttext \input tufte \startlayout[extraheader] \input tufte \stoplayout \input tufte \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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] temporary changes to the layout - \startlocal undefined
Hello Everybody, I need to increase my header's space temporarily and according to pg 99 of context_an_excursion "\startlocal ... \stoplocal" is the way to go - unfortunately my LMTX (2021.02.02 15:49) disagrees: \setuppapersize[A4][A4] \setuplayout[ ... header=15mm, ... ] \starttext \input tufte \page \startlocal \setuplayout[header+=20mm] \input tufte \stoplocal \page \input tufte \stoptext This fails: tex error > tex error on line XX in file ./local-layout.tex: Undefined control sequence XX >> \startlocal Do I need to load something in order to use this? Or has it been completely removed? And if so, is there a new alternative method to do the same thing? I was unable to find anything on this topic except https://www.mail-archive.com/ntg-context@ntg.nl/msg63602.html which raises the same question already in 2012 but never answers it IMHO. Thank you very much, Werner ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] \showmathcharacters, mk ii, how can I get the list, is not working!!
On 2/16/2021 3:07 PM, Ursula Hermann wrote: Dear List, I would like to know, what i can do, to geht all Math macros with MkII : \showmathcharacters in my Editor: WinEdt. I tried to compile it, but there is a mistake. I tried with \starttext and \stoptext, didn't work. You need to do this before \starttext \usemodule[s-math-coverage] - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] \showmathcharacters, mk ii, how can I get the list, is not working!!
Dear List, I would like to know, what i can do, to geht all Math macros with MkII : \showmathcharacters in my Editor: WinEdt. I tried to compile it, but there is a mistake. I tried with \starttext and \stoptext, didn't work. Command Line: context.exe --synctex=-1 "Math 2.tex" Startup Folder: C:\Users\Administrator resolvers | formats | executing runner 'run luatex format': C:/texlive/2020/bin/win32/luatex --jobname="Math 2" --fmt=C:/texlive/2020/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9/formats/luatex/cont-en.fmt --lua=C:/texlive/2020/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9/formats/luatex/cont-en.lui cont-yes.mkiv --c:currentrun=1 --c:fulljobname="./Math 2.tex" --c:input="./Math 2.tex" --c:kindofrun=1 --c:maxnofruns=9 --c:synctex="-1" --c:texmfbinpath="C:/texlive/2020/bin/win32" This is LuaTeX, Version 1.12.0 (TeX Live 2020/W32TeX) system commands enabled. open source > level 1, order 1, name 'C:/texlive/2020/texmf-dist/tex/context/base/mkiv/cont-yes.mkiv' system > system > ConTeXt ver: 2020.03.10 14:44 MKIV beta fmt: 2021.1.18 int: english/english system > system > 'cont-new.mkiv' loaded open source > level 2, order 2, name 'C:/texlive/2020/texmf-dist/tex/context/base/mkiv/cont-new.mkiv' system > beware: some patches loaded from cont-new.mkiv close source> level 2, order 2, name 'C:/texlive/2020/texmf-dist/tex/context/base/mkiv/cont-new.mkiv' system > files > jobname 'Math 2', input './Math 2', result 'Math 2' fonts > latin modern fonts are not preloaded languages > language 'en' is active system > synctex functionality is enabled, expect 5-10 pct runtime overhead! open source > level 2, order 3, name 'C:/Users/Administrator/Math 2.tex' tex error > tex error on line 1 in file C:/Users/Administrator/Math 2.tex: ! Undefined control sequence l.1 \showmathcharacters 1 >> \showmathcharacters mtx-context | fatal error: return code: 1 _ ConTeXt Compilation Report (Pages: 0) Errors: 1 Warnings: 0 Bad Boxes: 0 ___ Many thanks Uschi Hermann ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___