[NTG-context] Problem of compiling a file with Emacs
I understand that you can not compile the document with C-c C-c in Emacs. I have the following setup of my .bashrc and .init files. BASH: export PATH=$PATH:/home/farliz/context/tex/texmf-linux-64/bin source ~/context/tex/setuptex export OSFONTDIR="~/.fonts" export TEXROOT=~/context/tex EMACS: (custom-set-variables '(ConTeXt-Mark-version "IV") '(ConTeXt-engine "luatex")) Using this setup I compile all documents with C-c C-c (AucTex mode). Cheers -- Dr. Lizardo M. Reyna Bowen Docente Facultad de Ingeniería Agrícola | Universidad Técnica de Manabí [Dirección] Lodana, Santa Ana, Manabí, Ecuador [Móvil] +593 982924637 PGP Key: 0xa35a15b90ee64e8d ___ 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] Symbolsets: Font Awesome 5, Webdings, Wingdings, Symbola
Aditya Mahajan schrieb am 29.07.18 um 20:33: On Sun, 29 Jul 2018, Henning Hraban Ramm wrote: Ahoi, I just made symbolsets for the current Font Awesome 5 fonts and published them together with some older collections: https://github.com/fiee/ConTeXt/tree/master/symbols Does this contain more symbols that those in the fontawesome symbol set in the distribution: https://github.com/contextgarden/context-mirror/blob/beta/tex/context/base/mkiv/symb-imp-fontawesome.mkiv If some symbols are missing, it might be better to add them to the symbolset in the distribution. 1. The current symbol definitions need an update because I wrote the file for version 4.4 or 4.5 of the font. I have a updated version of the module on my machine and i can send it to hans. 2. You can’t just add the new symbols from version 5+ because it uses redrawn symbols with a different layout. 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] Symbolsets: Font Awesome 5, Webdings, Wingdings, Symbola
On Sun, 29 Jul 2018, Henning Hraban Ramm wrote: Ahoi, I just made symbolsets for the current Font Awesome 5 fonts and published them together with some older collections: https://github.com/fiee/ConTeXt/tree/master/symbols Does this contain more symbols that those in the fontawesome symbol set in the distribution: https://github.com/contextgarden/context-mirror/blob/beta/tex/context/base/mkiv/symb-imp-fontawesome.mkiv If some symbols are missing, it might be better to add them to the symbolset in the distribution. 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Symbolsets: Font Awesome 5, Webdings, Wingdings, Symbola
Ahoi, I just made symbolsets for the current Font Awesome 5 fonts and published them together with some older collections: https://github.com/fiee/ConTeXt/tree/master/symbols Have fun! Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD ___ 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] xtables setup
Am 2018-07-29 um 17:30 schrieb Pablo Rodriguez : > On 07/29/2018 11:28 AM, Henning Hraban Ramm wrote: >> Hello again, >> I’m trying xtables for the first time. >> >> Is it possible to setup defined rows/columns like with natural tables, e.g. >> for a header, like in my example? >> The commented lines below are wrong. Is there another way? > > Hi Hraban, > > I never used natural tables. > > The right approach would be: > >\setupxtable[headtable] >[bottomframe={\ifnum\currentxtablerow = 6 on\fi}, > topframe={\ifcase\currentxtablerow\or on\or on\else off\fi}] > > I hope it helps, Thank you, this is interesting. Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD ___ 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] xtables setup
On 07/29/2018 01:19 PM, Hans Hagen wrote: > On 7/29/2018 11:28 AM, Henning Hraban Ramm wrote: >> Hello again, >> I’m trying xtables for the first time. >> >> Is it possible to setup defined rows/columns like with natural tables, e.g. >> for a header, like in my example? >> The commented lines below are wrong. Is there another way? > > Did you read the manual? Hans, would it be possible that we have \totalxtablerows and \totalxtablecolumns that outputs the total number of rows and columns? This would be helpful when formatting xtables. Of course, final names may (and probably should) differ. Many thanks for your help, Pablo -- http://www.ousia.tk ___ 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] xtables setup
On 07/29/2018 11:28 AM, Henning Hraban Ramm wrote: > Hello again, > I’m trying xtables for the first time. > > Is it possible to setup defined rows/columns like with natural tables, e.g. > for a header, like in my example? > The commented lines below are wrong. Is there another way? Hi Hraban, I never used natural tables. The right approach would be: \setupxtable[headtable] [bottomframe={\ifnum\currentxtablerow = 6 on\fi}, topframe={\ifcase\currentxtablerow\or on\or on\else off\fi}] I hope it helps, Pablo -- http://www.ousia.tk ___ 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] TABLE setups
Am 2018-07-29 um 13:36 schrieb Henning Hraban Ramm : > Am 2018-07-28 um 11:09 schrieb Henning Hraban Ramm : > Or can I go via setups like \bTABLE[setups=mystyle] ? >>> >>> \startsetups mystyle >>> \setupTABLE[frame=off] >>> \setupTABLE[row][first][topframe=on,bottomframe=on,style=bold] >>> \setupTABLE[row][last] [bottomframe=on] >>> \stopsetups >>> \starttext >>> >>> \bTABLE[setups=mystyle] >> >> Thank you, that was what I wanted to know. A one-line answer would have been >> enough ;) > > So finally I get the hang of setups, and natural tables do what I want, > except: > > How can I convince my TABLEs, that there should be an empty line before them?? > > \setupTABLE[before={\blank[2*big]}] > doesn’t do anything. Ok, seems like \setupTABLE doesn’t use before and after at all: \setupTABLE[ before=BEFORE, after=AFTER, ] \starttext \input tufte \bTABLE \bTR\bTD Heinz \eTD\bTD Drei \eTD\bTD Brei \eTD\eTR \eTABLE \input tufte \stoptext But the keys are in i-naturaltable.xml Might this be a bug? Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD ___ 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] TABLE setups
Am 2018-07-28 um 11:09 schrieb Henning Hraban Ramm : >>> Or can I go via setups like \bTABLE[setups=mystyle] ? >> >> \startsetups mystyle >> \setupTABLE[frame=off] >> \setupTABLE[row][first][topframe=on,bottomframe=on,style=bold] >> \setupTABLE[row][last] [bottomframe=on] >> \stopsetups >> \starttext >> >> \bTABLE[setups=mystyle] > > Thank you, that was what I wanted to know. A one-line answer would have been > enough ;) So finally I get the hang of setups, and natural tables do what I want, except: How can I convince my TABLEs, that there should be an empty line before them?? \setupTABLE[before={\blank[2*big]}] doesn’t do anything. I tried \vskip, but that somehow kills part of the setup. Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD ___ 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] xtables setup
Am 2018-07-29 um 13:19 schrieb Hans Hagen : > On 7/29/2018 11:28 AM, Henning Hraban Ramm wrote: >> Hello again, >> I’m trying xtables for the first time. >> Is it possible to setup defined rows/columns like with natural tables, e.g. >> for a header, like in my example? >> The commented lines below are wrong. Is there another way? > Did you read the manual? Yes, but I found only how to format each item (cell, row, column, group) within the table, not in advance, except as styles. But I don’t want to format e.g. each header cell of each table with a style if all tables should look the same. Looks like I’ll better stick to natural tables. Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD ___ 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] xtables setup
On 7/29/2018 11:28 AM, Henning Hraban Ramm wrote: Hello again, I’m trying xtables for the first time. Is it possible to setup defined rows/columns like with natural tables, e.g. for a header, like in my example? The commented lines below are wrong. Is there another way? Did you read the manual? Hans - 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 ___
Re: [NTG-context] Placement of a figure made with TiKz
On 7/29/2018 1:01 PM, Fabrice Couvreur wrote: I do not understand why figure 2 does not fit correctly like the other two. Depends on what tikz does \useMPlibrary[dum] \usemodule[tikz] \usemodule[pgfplots] \pgfplotsset{compat=newest} \usetikzlibrary{positioning} \usetikzlibrary{calc} \setuplayout [height=middle, width=middle, backspace=2cm, topspace=10mm, bottomspace=10mm, header=10mm, footer=10mm, footerdistance=10mm, headerdistance=10mm] \showframe \starttext \placefigure[right]{first}{\externalfigure[dummy]} \placefigure[right]{second}{ \hbox{ \starttikzpicture[thick] \switchtobodyfont[9pt] \startaxis[ x=3cm,y=3cm, axis line style = thick, major tick style=black, xtick={0,0.25,...,1},ytick={0,0.25,...,1}, ymin=-0.25,ymax=1.25,xmin=-0.25,xmax=1.5, axis on top=true, axis lines=middle, tickwidth=0.15cm, minor tick num=3, major tick style = {thick, black}, axis line style = thick, yticklabels={,,}, xticklabels={,,}, major tick style=black, extra x ticks={1.25}, extra x tick label={\null}, xlabel=$x$,ylabel=$y$, every axis x label/.style= { at={(ticklabel* cs:1)}, anchor=west }, every axis y label/.style= { at={(ticklabel* cs:1)}, anchor=south }, >=stealth] % remove the empty lines \coordinate [label=below left : $A$](A) at (0,0); \coordinate [label=below right : $B$](B) at (1,0); \coordinate [label=below right : $C$](C) at (1,1); \coordinate [label=above left : $D$](D) at (0,1); \coordinate (M) at (0.25,0); \coordinate (N) at (1,0.25); \coordinate (P) at (0.75,1); \coordinate (Q) at (0,0.75); \node[below left] at (M) {$M$}; \node[right] at (N) {$N$}; \node[above] at (P) {$P$}; \node[left] at (Q) {$Q$}; \node[left] at (0,1){$1$}; \node[below] at (1,0){$1$}; \draw (A)--(B)--(C)--(D)--cycle ; \draw [draw=red, fill=red!70](M)--(N)--(P)--(Q)--cycle ; \stopaxis \stoptikzpicture } } \placefigure[right]{third}{ \hbox{ I assume that you don't want an extra space \hbox{% \starttikzpicture \draw[draw=red,fill=red!70] (0,0) rectangle (3,3); \stoptikzpicture } } \stoptext - 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] Placement of a figure made with TiKz
Hello, I do not understand why figure 2 does not fit correctly like the other two. Thank you Fabrice \useMPlibrary[dum] \usemodule[tikz] \usemodule[pgfplots] \pgfplotsset{compat=newest} \usetikzlibrary{positioning} \usetikzlibrary{calc} \setuplayout [height=middle, width=middle, backspace=2cm, topspace=10mm, bottomspace=10mm, header=10mm, footer=10mm, footerdistance=10mm, headerdistance=10mm] \showframe \starttext \placefigure[right]{first}{\externalfigure[dummy]} \placefigure[right]{second}{ \hbox{ \starttikzpicture[thick] \switchtobodyfont[9pt] \startaxis[ x=3cm,y=3cm, axis line style = thick, major tick style=black, xtick={0,0.25,...,1},ytick={0,0.25,...,1}, ymin=-0.25,ymax=1.25,xmin=-0.25,xmax=1.5, axis on top=true, axis lines=middle, tickwidth=0.15cm, minor tick num=3, major tick style = {thick, black}, axis line style = thick, yticklabels={,,}, xticklabels={,,}, major tick style=black, extra x ticks={1.25}, extra x tick label={\null}, xlabel=$x$,ylabel=$y$, every axis x label/.style= { at={(ticklabel* cs:1)}, anchor=west }, every axis y label/.style= { at={(ticklabel* cs:1)}, anchor=south }, >=stealth] \coordinate [label=below left : $A$](A) at (0,0); \coordinate [label=below right : $B$](B) at (1,0); \coordinate [label=below right : $C$](C) at (1,1); \coordinate [label=above left : $D$](D) at (0,1); \coordinate (M) at (0.25,0); \coordinate (N) at (1,0.25); \coordinate (P) at (0.75,1); \coordinate (Q) at (0,0.75); \node[below left] at (M) {$M$}; \node[right] at (N) {$N$}; \node[above] at (P) {$P$}; \node[left] at (Q) {$Q$}; \node[left] at (0,1){$1$}; \node[below] at (1,0){$1$}; \draw (A)--(B)--(C)--(D)--cycle ; \draw [draw=red, fill=red!70](M)--(N)--(P)--(Q)--cycle ; \stopaxis \stoptikzpicture } } \placefigure[right]{third}{ \hbox{ \starttikzpicture \draw[draw=red,fill=red!70] (0,0) rectangle (3,3); \stoptikzpicture } } \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 ___
[NTG-context] xtables setup
Hello again, I’m trying xtables for the first time. Is it possible to setup defined rows/columns like with natural tables, e.g. for a header, like in my example? The commented lines below are wrong. Is there another way? \definextable[headtable] % table with repeated head \setupxtable[headtable][ option={stretch,width}, frame=off, split=repeat, header=repeat, ] % like in natural tables - doesn’t work... %\setupxtable[headtable][r][first][topframe=on,before={\blank[small]}] %\setupxtable[headtable][r][1][topframe=on,bottomframe=on,style={\ss\bf}] %\setupxtable[headtable][r][last][bottomframe=on] \starttext \startxtable[headtable] \startxtablehead \startxrow \startxcell Level \stopxcell\startxcell numbered \stopxcell\startxcell unnumbered \stopxcell \stopxrow \stopxtablehead \startxtablebody \startxrow\startxcell 0\stopxcell\startxcell part\stopxcell\startxcell —\stopxcell\stopxrow \startxrow\startxcell 1\stopxcell\startxcell chapter\stopxcell\startxcell title\stopxcell\stopxrow \startxrow\startxcell 2\stopxcell\startxcell section\stopxcell\startxcell subject\stopxcell\stopxrow \startxrow\startxcell 3\stopxcell\startxcell subsection\stopxcell\startxcell subsubject\stopxcell\stopxrow \startxrow\startxcell 4\stopxcell\startxcell subsubsection\stopxcell\startxcell subsubsubject\stopxcell\stopxrow \stopxtablebody \stopxtable \stoptext Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD ___ 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] TABLE setups
On 7/28/2018 11:09 AM, Henning Hraban Ramm wrote: Meanwhile I had a look into the manuals folder and found the xtables manual. Section 5 about \definextable and \starttexdefinition is especially interesting. I guess I need to try both. (My ConTeXt fu is always outdated, it seems...) not much has changed in TABLE in years so once you're up to date in that domain you're probbably ok for years to come (typically a mechanism that cannot change much as it's used in xml processing a lot which means fully unattended usage) Hans - 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 ___