Re: [NTG-context] [dev-context] palatino at 10.5pt bold not found when using project structure w/ MkIV
Am 06.07.2013 um 00:36 schrieb Sanjoy Mahajan san...@olin.edu: From what I can tell, the bold font is not found if all of the following are true: 1. using the Palatino typescript 2. setting the body font to 10.5pt (but 11pt or 12pt works fine) 3. using MkIV 4. using components (project structure) Here's the minimal example (mytest.tex): \startmode[ascomponent] \startcomponent mytest \stopmode \usetypescript[palatino][ec] \setupbodyfont[palatino,10.5pt] \startmode[standalone] \starttext \stopmode {\bold hello} \startmode[standalone] \stoptext \stopmode \startmode[ascomponent] \stopcomponent \stopmode Compile the two variants with: context --mode=ascomponent --result=mytest-ascomponent.pdf mytest.tex context --mode=standalone --result=mytest-standalone.pdf mytest.tex mytest-standalone.pdf is fine (the hello is in bold), but mytest-ascomponent.pdf has the hello in roman. The particular roman font in mytest-ascomponent.pdf is also funny: $ pdffonts mytest-ascomponent.pdf name type emb sub uni object ID - --- --- --- - TZNKGE+TeXGyrePagellaMath-RegularCID Type 0C yes yes yes 18 0 Why is it the math font? (A slightly more complex example, using \project to include a project file, which includes an environment file that asks for palatino, produced the same problem. But the version above needs just one file, mytest.tex, so for simplicity I am describing the problem using it.) What I think is happening is that, when running as a component, the typescript loading happens too late (after the equivalent of \starttext), and not everything gets set up properly. In support of that idea, if I shift the two environment lines (\usetypescript ...) to just before the {\bold hello}---thus, after the \starttext---then the standalone version gets the same problem (hello in roman). What puzzles me is that this problem shows up only with 10.5pt and using palatino. If I just use 10.5pt (i.e. w/ modern), then there's no problem. Or 11pt in Palatino is fine. There's also no problem using MkII. I tested with the context in vanilla TL2013 and in Norbert's latest Debian packages--the problem happens in both. 1. Use the normal and not the developer list for such a question. 2. You can omit the \usetypescript line. 3. Move the \setupbodyfont setting *before* \startcomponent. 4. Add \definebodyfontenvironment[10.5pt] to your document. 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] [***SPAM***] Placement of a table's footnotes
Am 06.07.2013 um 07:40 schrieb d.henman dhen...@gmail.com: Here is a minimal example of my attempt to get a footnot(s) just below a table. As it is the footnote is dislayed to the right of the table. Minimal example: %--- \starttext \midaligned { \startlocalfootnotes % [conversion=set fnsym] \setupnotation[footnote][rule=off] % change footnote symbols \starttable[|c|c|c|c|] \HL \VL col-1 \VL col-2 $\dagger$\footnote[myfootnote]{Re: X} \VL col-3 \VL col-4 \VL \MR \HL \stoptable %\placelocalfootnotes[here] \placelocalfootnotes[here] \stoplocalfootnotes \setupnotation[footnote][numberconversion=n,rule=on] % restore footnotes to global } \stoptext %-- \starttext \startplacetable[location={force,nonumber}] \startlocalfootnotes \setupnotation[footnote][numberconversion=set 1] \startplacelegend \startcontent \starttable[|c|c|c|c|] \HL \VL col-1 \VL col-2\footnote{Re: X} \VL col-3 \VL col-4 \VL \MR \HL \stoptable \stopcontent \startcaption \placelocalfootnotes \stopcaption \stopplacelegend \stoplocalfootnotes \stopplacetable \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 ___
[NTG-context] [***SPAM***] How to reduce vertical spacing after this table
I'Ve been trying dozens of combinations to try to reduce the vertical space between the a table and the local footer to some items in the table, but have just been running into a wall. Here is a minimal example. For my application there is just too much space between the bottom of the table and the footnote. That is the problem. Also is there a more elegant way to get the footnote aligned under the table to the left side. I am using narrower to force it to postion. This doesn't show up right in the minimal, but it works. Help in solving this would be greatly appreciated. % \defineconversion[fnsym][\m{\dagger},\m{*},\m{**},\m{***}] % footnote header symbols \starttext \subject{Subject Name} \blank \startlocalfootnotes % [conversion=set fnsym] \setupnotation[footnote][numberconversion=fnsym,rule=off] % change footnote symbols \midaligned { \placetable[here,none][]{} { \setuptables[bodyfont=10pt,after=\nowhitespace,spaceafter=none] \starttable[|c|c|c|c|c|c|c|c|c|] \HL \VL X-ITEM \VL \VL$\oplus$ \footnote[hanzi]{Traditional Characters} \VL \VL$\oplus$ \note[hanzi]\VL\VL$\oplus$ \VL \VL$\oplus$ \VL\MR \VL Y-ITEM\VL \VL$\oplus$ \VL \VL$\oplus$ \VL \VL$\oplus$ \VL \VL$\oplus$ \VL\MR \HL \stoptable } } \setupnarrower[left=2.5cm] % to align footnote under the table \startnarrower[left] \placelocalfootnotes[here] \stopnarrower \stoplocalfootnotes \setupnotation[footnote][numberconversion=n,rule=on] % restore footnotes to global \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] [***SPAM***] How to reduce vertical spacing after this table
Am 06.07.2013 um 11:09 schrieb hwit...@gmail.com: I'Ve been trying dozens of combinations to try to reduce the vertical space between the a table and the local footer to some items in the table, but have just been running into a wall. Here is a minimal example. For my application there is just too much space between the bottom of the table and the footnote. That is the problem. Also is there a more elegant way to get the footnote aligned under the table to the left side. I am using narrower to force it to postion. This doesn't show up right in the minimal, but it works. Help in solving this would be greatly appreciated. % \defineconversion[fnsym][\m{\dagger},\m{*},\m{**},\m{***}] % footnote header symbols \starttext \subject{Subject Name} \blank \startlocalfootnotes % [conversion=set fnsym] \setupnotation[footnote][numberconversion=fnsym,rule=off] % change footnote symbols \midaligned { \placetable[here,none][]{} { \setuptables[bodyfont=10pt,after=\nowhitespace,spaceafter=none] \starttable[|c|c|c|c|c|c|c|c|c|] \HL \VL X-ITEM \VL \VL$\oplus$ \footnote[hanzi]{Traditional Characters} \VL \VL$\oplus$ \note[hanzi]\VL\VL$\oplus$ \VL \VL$\oplus$ \VL\MR \VL Y-ITEM\VL \VL$\oplus$ \VL \VL$\oplus$ \VL \VL$\oplus$ \VL \VL$\oplus$ \VL\MR \HL \stoptable } } \setupnarrower[left=2.5cm]% to align footnote under the table \startnarrower[left] \placelocalfootnotes[here] \stopnarrower \stoplocalfootnotes \setupnotation[footnote][numberconversion=n,rule=on] % restore footnotes to global \stoptext Slightly modified solution I already wrote three hours ago for another thread regarding a similar question: \defineconversion[fnsym][\m{\dagger},\m{*},\m{**},\m{***}] \starttext \subject{Subject Name} \startplacetable[location={force,none}] \startlocalfootnotes \setupnotation[footnote][numberconversion=fnsym] \startplacelegend \startcontent \starttable[|c|c|c|c|c|c|c|c|c|][bodyfont=10pt] \HL \VL X-ITEM \VL \VL $\oplus$\footnote[hanzi]{Traditional Characters} \VL \VL $\oplus$\note[hanzi] \VL \VL $\oplus$ \VL \VL $\oplus$ \VL\MR \VL Y-ITEM \VL \VL $\oplus$ \VL \VL$\oplus$ \VL \VL $\oplus$ \VL \VL $\oplus$ \VL\MR \HL \stoptable \stopcontent \startcaption \placelocalfootnotes \stopcaption \stopplacelegend \stoplocalfootnotes \stopplacetable \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] suggestion: setups for \startitem
Am 04.07.2013 um 09:32 schrieb Thomas A. Schmitz thomas.schm...@uni-bonn.de: Hi, this is just a small suggestion for the interface: since a while, we've had \startitem \stopitem. Would it be possible / feasible / interesting to add a bit of configuration to it? I tried looking at the source. but couldn't find anything. This minimal example explains what I mean: \starttext \startitemize \item One \item Two \sym{$\Rightarrow$} Three \stopitemize \startitemize \startitem One \stopitem \startitem Two \stopitem \startitem[sym=$\Rightarrow$] Three \stopitem \stopitemize \stoptext How to achieve the result of #1 with the syntax in #2? You have the change the definition for \startitem but I would go for a bigger change which includes also \head, \txt etc. To do this one could write \startitem[alternative=head,text=…] one could use it as synonym for \starthead or with \startitem[alternative=symbol,text=…] as alternative for \sym. Since references are lost with this method you can write “reference=…” in the argument. 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] [dev-context] palatino at 10.5pt bold not found when using project structure w/ MkIV
Wolfgang, Thank you for all your solutions! 2. You can omit the \usetypescript line. Good to know. Does the palatino keyword in \setupbodyfont automatically do that now (in Mark IV)? Should I wikify that bit of information (as MkIV-only)? (Since I don't really understand how the fonts work, I am hesitant to wikify much about it and put up incorrect information.) 3. Move the \setupbodyfont setting *before* \startcomponent. Right, I found that by experiment. But how should you do that with projects? The \setupbodyfont is usually part of an environment file, which is loaded by the project file. Should the \project project_file line be placed before the \startcomponent? Like this: \project project_file \startcomponent component_name If that's the recommended way, I can update http://wiki.contextgarden.net/Project_structure 4. Add \definebodyfontenvironment[10.5pt] to your document. Thanks, that fixes everything. On the theory of teaching a man to fish, how did you learn so much about making ConTeXt do just the right thing? 1. Use the normal and not the developer list for such a question. I thought it was a bug (and it might be, though your definebodyfontenvironment solution makes me wonder if it is just my not knowing enough). In general, should bug reports go to the regular list? Best, -Sanjoy ___ 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] suggestion: setups for \startitem
On 7/6/2013 12:10 PM, Wolfgang Schuster wrote: To do this one could write \startitem[alternative=head,text=…] one could use it as synonym for \starthead or with \startitem[alternative=symbol,text=…] as alternative for \sym. Since references are lost with this method you can write “reference=…” in the argument. Currently I'm a bit careful with changes as I'm using a 'copy' of context mkiv that has been adapted to a potential upcoming Lua related speedup that Luigi and I are working on. We will present most of that at the context conference (among other things). Hans - 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] bar graphs, m-graph, sarith
When trying to make a bar graph with m-graph.mkiv and sarith, the command Ssub (string subtract) seems to Sadd instead. An mwe of a bar graph: (data1 is a separate file containing 01 02 02 03) \usemodule[m-graph] \startMPpage[instance=graph] input sarith; draw begingraph(5cm,5cm); gdata(data1, v, path p; augment.p(v1,0); augment.p(v1,v2) augment.p(v1 Sadd 0.4,v2); augment.p(v1 Sadd 0.4,0); gfill p--cycle withcolor .8white; gdraw p--cycle; ); endgraph; \stopMPpage ...which gives bars of width 0.4 starting at abscissa 1 and 2 as expected. To increase the width of the bars to 0.8 and have them centered over 1 and 2, I expect to Ssub from the first two augments: \usemodule[m-graph] \startMPpage[instance=graph] input sarith; draw begingraph(5cm,5cm); gdata(data1, v, path p; augment.p(v1 Ssub 0.4,0); augment.p(v1 Ssub 0.4,v2); augment.p(v1 Sadd 0.4,v2); augment.p(v1 Sadd 0.4,0); gfill p--cycle withcolor .8white; gdraw p--cycle; ); endgraph; \stopMPpage However, the Ssub adds instead and gives a line at 1.4 and 2.4. Compiling the above with mpost or mptopdf gives the desired result(s), but I am curious if this can be resolved so such bar graphs could be made within ConTeXT/METAFUN. Thanks! John ___ 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 ___