Re: [NTG-context] bug with en and em dashes
I confirm the issue in NOT present in my machine (Arch Linux x64). I can see the dashes as they are supposed to be. Andrés Conrado Montoya http://chiquitico.org ___ 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] mathdigits no longer works
Hi, The example for replacing Arabic numerals by Indic digits inside math used to work (at least) until version 2017.01.17 17:37. tex/texmf-context/tex/context/fonts/mkiv/type-imp-mathdigits.mkiv Now in version 2017.04.27 01:00, this does not produce the desired output: it's all "Latin" digits. Has something changed regarding fontfallback definitions? Thanks, MHB ___ 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 of content in presentation example
Sorry, another side question: Is there no way to set the distance from the title in the TOC to the page number? I tried alternative=c with width, maxwidth, distance... I still can't set it tighter. Going from the far left to the far right is not good from the audience's POV. I saw some example *.tex from the CTX distribution but none of them seems to use that mechanism except for charts-mkiv. That again uses columns. But in my case it doesn't split the content, but creates only the left column. You can try with the documents and code snippets that I pasted. 2017-05-12 23:03 GMT+02:00 cryo shock : > Sorry, me again. After fiddling around I found out why it didn't work: > because \placecontent was *within* the subject that it had to print. Kind > of a Gordian Knot or what was it called...? > I modified my code a little, so that it looks better, but still one thing > is missing... That's what my code looks like now: > > %D I copied the head settings to "title", so that it has the same style as > the rest > %D "title" will not be counted for TOC: > > \setuphead[title][style=\ssbfc, color=foreground:contrast, > alternative=middle] > > \starttext > > \setvariables > ... > > *\startstandardmakeup* %D else the content is placed at the very top, > ignoring the header... (bad) > > * \title{Table of contents}* > * \vfill* > * \placecontent* > * \vfill* > > *\stopstandardmakeup* > > \startslide[title={First Slide}] > ... > > Yet the one thing I am missing is that the TOC is not in the middle of the > page. > I read some time ago that \vfill has no effect at the very beginning or > the very end of a page. A suggestion was to place a "ghost box" or > something like that at the end or top respectively of the document. Yet I > can't finde the article anymore. Can anybody provide some help with this > or is there maybe a more elegant way to solve the whole TOC situation? > > Greetings, Sebastian > > 2017-05-12 22:16 GMT+02:00 cryo shock : > >> I forgot to add that I also tried a modified \setuplist: >> >> \setuplist[subject][width=2cm,margin=2cm] >> and >> \setuplist[subject][margin=2cm] >> >> I also added the following line to the component: >> >> \setupcombinedlist[content][list={chapter,subject,subsubject >> ,section,subsection,slide}] >> >> Yet the Toc page stays blank... >> >> 2017-05-12 22:08 GMT+02:00 cryo shock : >> >>> Hi guys, I downloaded a sample presentation with component and example >>> presentation from a link off of ctxwiki. I will attach both files and a >>> premade PDF that shows what I mean. >>> >>> So far I edited the component a little in display style, yet I don't >>> know why I can't get a simple table of content on the second slide. >>> >>> In the component I found the following code: >>> >>> \definehead >>> [slide] >>> [subject] >>> [ >>> style=\ssbfc, >>> color=foreground:contrast, >>> alternative=middle, >>> page=yes >>> ] >>> >>> So I understand that the head called slide comes from the head subject, >>> which by default isn't shown in the table of content. So I searched ctxwiki >>> for table of content and modified the above setup to >>> >>> \definehead >>> [slide] >>> [subject] % default: subject >>> [ >>> style=\ssbfc, >>> color=foreground:contrast, >>> alternative=middle, >>> page=yes, >>> * incrementnumber=yes, % keep track of the number* >>> * number=no % but don't show it* >>> ] >>> >>> I also added the following line: >>> >>> \setuplist[subject][width=2cm] >>> >>> The example .tex then starts with >>> >>> \starttext >>> >>> \setvariables >>> ... >>> \startslide >>> ... >>> \stopslide >>> ... >>> \stoptext >>> >>> So I inserted another \startslide \stopslide with \placecontent in >>> between: >>> >>> \startslide[title={T.o.c.}] >>> \placecontent >>> \stopslide >>> >>> Yet the rendered PDF shows only a blank page where the TOC is supposed >>> to be. >>> >>> Can anybody tell me what I am doing wrong? >>> Thanks in advance, >>> >>> Sebastian >>> >> >> > ___ 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 of content in presentation example
Sorry, me again. After fiddling around I found out why it didn't work: because \placecontent was *within* the subject that it had to print. Kind of a Gordian Knot or what was it called...? I modified my code a little, so that it looks better, but still one thing is missing... That's what my code looks like now: %D I copied the head settings to "title", so that it has the same style as the rest %D "title" will not be counted for TOC: \setuphead[title][style=\ssbfc, color=foreground:contrast, alternative=middle] \starttext \setvariables ... *\startstandardmakeup* %D else the content is placed at the very top, ignoring the header... (bad) * \title{Table of contents}* * \vfill* * \placecontent* * \vfill* *\stopstandardmakeup* \startslide[title={First Slide}] ... Yet the one thing I am missing is that the TOC is not in the middle of the page. I read some time ago that \vfill has no effect at the very beginning or the very end of a page. A suggestion was to place a "ghost box" or something like that at the end or top respectively of the document. Yet I can't finde the article anymore. Can anybody provide some help with this or is there maybe a more elegant way to solve the whole TOC situation? Greetings, Sebastian 2017-05-12 22:16 GMT+02:00 cryo shock : > I forgot to add that I also tried a modified \setuplist: > > \setuplist[subject][width=2cm,margin=2cm] > and > \setuplist[subject][margin=2cm] > > I also added the following line to the component: > > \setupcombinedlist[content][list={chapter,subject, > subsubject,section,subsection,slide}] > > Yet the Toc page stays blank... > > 2017-05-12 22:08 GMT+02:00 cryo shock : > >> Hi guys, I downloaded a sample presentation with component and example >> presentation from a link off of ctxwiki. I will attach both files and a >> premade PDF that shows what I mean. >> >> So far I edited the component a little in display style, yet I don't know >> why I can't get a simple table of content on the second slide. >> >> In the component I found the following code: >> >> \definehead >> [slide] >> [subject] >> [ >> style=\ssbfc, >> color=foreground:contrast, >> alternative=middle, >> page=yes >> ] >> >> So I understand that the head called slide comes from the head subject, >> which by default isn't shown in the table of content. So I searched ctxwiki >> for table of content and modified the above setup to >> >> \definehead >> [slide] >> [subject] % default: subject >> [ >> style=\ssbfc, >> color=foreground:contrast, >> alternative=middle, >> page=yes, >> * incrementnumber=yes, % keep track of the number* >> * number=no % but don't show it* >> ] >> >> I also added the following line: >> >> \setuplist[subject][width=2cm] >> >> The example .tex then starts with >> >> \starttext >> >> \setvariables >> ... >> \startslide >> ... >> \stopslide >> ... >> \stoptext >> >> So I inserted another \startslide \stopslide with \placecontent in >> between: >> >> \startslide[title={T.o.c.}] >> \placecontent >> \stopslide >> >> Yet the rendered PDF shows only a blank page where the TOC is supposed to >> be. >> >> Can anybody tell me what I am doing wrong? >> Thanks in advance, >> >> Sebastian >> > > ___ 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 of content in presentation example
I forgot to add that I also tried a modified \setuplist: \setuplist[subject][width=2cm,margin=2cm] and \setuplist[subject][margin=2cm] I also added the following line to the component: \setupcombinedlist[content][list={chapter,subject,subsubject,section,subsection,slide}] Yet the Toc page stays blank... 2017-05-12 22:08 GMT+02:00 cryo shock : > Hi guys, I downloaded a sample presentation with component and example > presentation from a link off of ctxwiki. I will attach both files and a > premade PDF that shows what I mean. > > So far I edited the component a little in display style, yet I don't know > why I can't get a simple table of content on the second slide. > > In the component I found the following code: > > \definehead > [slide] > [subject] > [ > style=\ssbfc, > color=foreground:contrast, > alternative=middle, > page=yes > ] > > So I understand that the head called slide comes from the head subject, > which by default isn't shown in the table of content. So I searched ctxwiki > for table of content and modified the above setup to > > \definehead > [slide] > [subject] % default: subject > [ > style=\ssbfc, > color=foreground:contrast, > alternative=middle, > page=yes, > * incrementnumber=yes, % keep track of the number* > * number=no % but don't show it* > ] > > I also added the following line: > > \setuplist[subject][width=2cm] > > The example .tex then starts with > > \starttext > > \setvariables > ... > \startslide > ... > \stopslide > ... > \stoptext > > So I inserted another \startslide \stopslide with \placecontent in between: > > \startslide[title={T.o.c.}] > \placecontent > \stopslide > > Yet the rendered PDF shows only a blank page where the TOC is supposed to > be. > > Can anybody tell me what I am doing wrong? > Thanks in advance, > > Sebastian > ___ 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] Table of content in presentation example
Hi guys, I downloaded a sample presentation with component and example presentation from a link off of ctxwiki. I will attach both files and a premade PDF that shows what I mean. So far I edited the component a little in display style, yet I don't know why I can't get a simple table of content on the second slide. In the component I found the following code: \definehead [slide] [subject] [ style=\ssbfc, color=foreground:contrast, alternative=middle, page=yes ] So I understand that the head called slide comes from the head subject, which by default isn't shown in the table of content. So I searched ctxwiki for table of content and modified the above setup to \definehead [slide] [subject] % default: subject [ style=\ssbfc, color=foreground:contrast, alternative=middle, page=yes, * incrementnumber=yes, % keep track of the number* * number=no % but don't show it* ] I also added the following line: \setuplist[subject][width=2cm] The example .tex then starts with \starttext \setvariables ... \startslide ... \stopslide ... \stoptext So I inserted another \startslide \stopslide with \placecontent in between: \startslide[title={T.o.c.}] \placecontent \stopslide Yet the rendered PDF shows only a blank page where the TOC is supposed to be. Can anybody tell me what I am doing wrong? Thanks in advance, Sebastian pres-c-slides.tex Description: TeX document pres-p-example.pdf Description: Adobe PDF document pres-p-example.tex Description: TeX document ___ 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] Bold italic font in Math (\definefallbackfamily)
Dear list. Please your help I've troubles to use this code from Wolfgang. \definefontfamily [minionmath] [rm] [Minion Pro] \definefallbackfamily [minionmath] [mm] [Minion Pro] [preset=math:lowercasenormal] \definefallbackfamily [minionmath] [mm] [Minion Pro] [preset=math:lowercaseitalic] \definefallbackfamily [minionmath] [mm] [Minion Pro] [preset=math:lowercasebold] \definefallbackfamily [minionmath] [mm] [Minion Pro] [preset=math:lowercasebolditalic] \definefontfamily [minionmath] [mm] [TeX Gyre Pagella Math] \setupbodyfont[pagella] \starttext \startformula {\tf xyz} xyz {\bf xyz} {\bi xyz} \stopformula \switchtobodyfont[minionmath] \startformula {\tf xyz} xyz {\bf xyz} {\bi xyz} \stopformula \stoptext It seems that \definefallbackfamily doesn't works like before. What is the right way to use \it, \bf, etc. in maths? 2016-09-15 17:06 GMT-03:00 Hans Åberg : > > > On 15 Sep 2016, at 20:19, Wolfgang Schuster > wrote: > > > Another input method is shown in the following video [1] where each > symbol get its own command, e.g. \mbfitx is equal to {\bi x}. The source > table mentioned in the video can be found on the STIX page [2]. > > > > [1] http://zeeba.tv/reconciling-unicode-math-with-latex2e-mathematics/ > > [2] http://www.ams.org/STIX/ > > The video speaks about a file stix-tbl.txt containing those translation > commands, but on [2], the stix-tbl.* table files, not ending with .txt, do > not contain those. > > > > ___ > 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Horizontal adjustment of left/right floats
On Fri, 12 May 2017, Jan Willem Flamma wrote: Hi Aditya, This is what I could find. Hope it suits your needs. From the details manual, page 57: \starttext \movesidefloat [x=-2cm] \startplacefigure[location={left,none}] \externalfigure[cow] \stopplacefigure \input knuth \stoptext Thanks! Yes, this does exactly what I want. 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] \xmlload not understood
I did load an xml data file containing ... with: \xmlload{Data}{data.xml} Then correctly find the number of data from \xmlcount{Data}{subnode} however \xmlflush{Data} is not giving me the processed nodes from \startxmlsetups do:subnode doing something with xmlflysh{#1} \stopxmlsetups but only the raw input ... Do I err in my understanding? And if so, how to do it better? Below a minimal example and its output. \startxmlsetups load:setups \xmlsetsetup{#1}{root|nodes|subnode}{load:*} \stopxmlsetups \xmlregistersetup{load:setups} \startxmlsetups load:root \xmlloadbuffer{Data}{dataset} Number of = \xmlcount{Data}{subnode}\blank \xmlflush{Data} \stopxmlsetups \startxmlsetups load:subnode Content \xmlflush{#1}\par \stopxmlsetups \startbuffer[test] \stopbuffer \startbuffer[dataset] this is subnode-1 this is subnode-2 this is subnode-3 \stopbuffer \starttext \xmlprocessbuffer{root}{test}{} \hairline \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] Location of primes and strange latin modern font
On Thu, May 11, 2017 at 8:35 PM, Mathias Schickel wrote: >> 2) The math font looks strange (or should I say different) in the >> ConTeXt example. (Wrong size, scaled?) > > Yeah, this seems to be a bug in the current version. I have observed that, > too. Hans did recently add (due to my suggestion, so thanks again, Hans, even > if this seems to have caused some trouble) support for optical sizes in > fallbacks and I suppose the bug has been introduced there. So at present the > bug occurs that ConTeXt uses the smallest optical size for every symbol > (independent of the size). This results in strange looking mathematics. Maybe > you can fix this, Hans? > > -Mathias > > >> Am 11.05.2017 um 18:51 schrieb Mikael P. Sundqvist : >> >> Dear list, >> >> I posted this question on stack exchange >> (https://tex.stackexchange.com/q/369226/52406), and got the suggestion >> that it might be a bug, and therefore I post it here as well: >> >> I have a problem with typesetting derivatives (and latin modern) in >> ConTeXt in latest standalone. >> >> Minimal example: >> >> \starttext >> Compare $u_p''$ and $u''_p$ with $u''$ >> \stoptext >> >> Please see the attached image for the output (here I have also >> included the corresponding output, compiling a similar simple document >> in LaTeX, where things look as I expect.) >> >> Basically, I have two questions: >> >> 1) How should I write derivatives (say second derivatives) in ConTeXt? >> I think that the primes are too far away from each other. In >> particular when the subscript $p$ is there (the first formula). >> >> 2) The math font looks strange (or should I say different) in the >> ConTeXt example. (Wrong size, scaled?) >> >> For a while I thought that the second problem might be because I >> define no font. But the following example gives a similar result. >> >> \definefontfamily[myface][rm][Latin Modern Roman] >> \definefontfamily[myface][mm][Latin Modern Math] >> >> \setupbodyfont[myface] >> >> \starttext >> Compare $u_p''$ and $u''_p$ with $u''$ >> \stoptext >> >> Any ideas? >> >> /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://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 > ___ Thank you Mathias for your answer! That is most likely the problem! Then we can only wait for Hans to put a new beta out. Hans, will that happen soon? Also, Hans, what is the official ConTeXt-way to write u with double prime and subscript p, as in the example? Should both $u_p''$ and $u''_p$ work? Best regards, 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] \xmlloadfile undefined
In the xml-mkiv.pdf manual is written on page 18: > \xmlloadfile {...} {...} {...} > > loads the file FILE and registers it under NAME and applies either given or > standard XMLSETUP (alias: \xmlload) > However, \xmlloadfile gives an undefined macro TeX-error, allthough the given alias \xmlload is present (useed beta of 2017-04-16). Shouldn't macro \xmlloadfile be added? Besides \xmlloadbuffer and \xmloaddata that would appeal to my preference for systematic naming. By the way. In this document all descriptions "\macro{}{}{}" refer to arguments like FILE, NAME etc. but these are absent from the API as shown. I think presented as \xmlloadfile{NAME}{FILE}{XMLSETUP} for example, would be more informative (at least I guess I have the order right). Any way, I get confused with some of the other APIs and would be pleased if a newer version of the manual has them. Hans van der Meer ___ 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 ___