Re: [NTG-context] grouped commands in MkIV
On 30-10-2011 21:57, Idris Samawi Hamid ادريس سماوي حامد wrote: On Sun, 30 Oct 2011 14:50:21 -0600, Wolfgang Schuster wrote: I can’t reproduce it, \/ works for me with the last beta but a while ago Hans posted a document about a new implementation in MkIV. Ok, updating to the latest beta seems to solve both issues, so I guess the reimplementation is done :-) THANKS!!! BTW Wolfgang (or Hans or ... ): Since you're the internals expert, what do you know about \emphasiscorrection as in the def to \em. I played around with using that instead of \/ but not sure what the difference between the two is. it a command that tries to be clever but you can read/try http://www.pragma-ade.com/preliminaries/hybrid-italics.pdf in which case no \/ etc is needed 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 ___
Re: [NTG-context] custom command \myframedsection does not always work. Bug?
Hi Wolfgang, Thanks very much. Your command worked great. Regards, Bharat On Sun, Oct 30, 2011 at 1:42 PM, Wolfgang Schuster wrote: > > Am 30.10.2011 um 16:00 schrieb Curiouslearn: > >> Hi All, >> >> Please see the working example below. I have defined a command called >> \myframedsection. It works the first two times I use it, but not the >> third time. I think it has something to do with using >> \startitemize...\stopitemize before the command is used the third >> time. But I am not sure. Can someone please tell me why it is not >> working, and how I can change my definition so that it works? Is this >> a bug? >> >> \definehead[mysection][section] >> \setuphead[mysection][color=blue*:3] >> >> \def\myframedsection#1{\bgroup\vskip 0.5in >> \framed[background=color, backgroundcolor=gray:10] >> {\mysection{#1}}% >> \egroup} > > No wonder you get unexpected results with this definition, better solutions > are > > \definehead[myframedsection][section] > > \setuphead > [myframedsection] > [before={\blank[0.5in]\startframedtext[background=color,backgroundcolor=gray:10]}, > after={\stopframedtext\blank[0.25in]}, > color=blue*:3] > > and > > \define[2]\MyframedsectionCommand > {\framed > [background=color,backgroundcolor=gray:10,align=flushleft] > {\hbox to 2cm{#1}\vtop{\hsize=\dimexpr\hsize-2cm\relax#2}}} > > \definehead[myframedsection][section] > > \setuphead > [myframedsection] > [before={\blank[0.5in]}, > command=\MyframedsectionCommand, > style=blue*:3] > > 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 > ___ > ___ 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] grouped commands in MkIV
On Sun, 30 Oct 2011 14:50:21 -0600, Wolfgang Schuster wrote: I can’t reproduce it, \/ works for me with the last beta but a while ago Hans posted a document about a new implementation in MkIV. Ok, updating to the latest beta seems to solve both issues, so I guess the reimplementation is done :-) THANKS!!! BTW Wolfgang (or Hans or ... ): Since you're the internals expert, what do you know about \emphasiscorrection as in the def to \em. I played around with using that instead of \/ but not sure what the difference between the two is. Best wishes Idris -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shīʿī Studies Department 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] grouped commands in MkIV
Am 30.10.2011 um 20:16 schrieb Idris Samawi Hamid ادريس سماوي حامد: > Dear syndicate, > > = > \def\TR{\groupedcommand \it} > % \def\TR{\groupedcommand \it\/} > \def\Test{{\TR Test}} > \starttext > \Test > \stoptext > = > > produces the attached strange result: The first letter gets put at the end. > > Also, is italic correction no longer supported in mkiv? \/ produces an > undefined control sequence. Is there another way now? I can’t reproduce it, \/ works for me with the last beta but a while ago Hans posted a document about a new implementation in MkIV. 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] \bodyfontsize in blank: MkIV
On Sun, 30 Oct 2011 14:40:08 -0600, Wolfgang Schuster wrote: Am 30.10.2011 um 20:59 schrieb Idris Samawi Hamid ادريس سماوي حامد: Dear knights, The following works in mkii but not mkiv: = \starttext test \blank[2\bodyfontsize] test \stoptext = MkIV use Lua to parse the arguments for \blank and for argument like above you need “\the\dimexpr2\bodyfontsize” or use arguments like “2*line”. Thank you, Wolfgang! and Best wishes -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shīʿī Studies Department 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] \bodyfontsize in blank: MkIV
Am 30.10.2011 um 20:59 schrieb Idris Samawi Hamid ادريس سماوي حامد: > Dear knights, > > The following works in mkii but not mkiv: > > = > \starttext > test > > \blank[2\bodyfontsize] > > test > \stoptext > = MkIV use Lua to parse the arguments for \blank and for argument like above you need “\the\dimexpr2\bodyfontsize” or use arguments like “2*line”. 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] \bodyfontsize in blank: MkIV
Dear knights, The following works in mkii but not mkiv: = \starttext test \blank[2\bodyfontsize] test \stoptext = = ! Illegal unit of measure (pt inserted). system > tex > error on line 8 in file bodyfontsize.tex: Illegal unit of measure (pt inserted) ... 1 \starttext 2 test 3 4 \blank[2\bodyfontsize] 5 6 test 7 \stoptext 8 >> 9 ^^H 2^^H odyfontsize \addaskedblankskip ...nce \blankskip #1\dimexpr #2 \relax l.8 } \dovspacingyes ...#1\else \currentvspacing \fi ")} \fi l.4 \blank[2\bodyfontsize] ? = Is there a new protocol for accomplishing this now in mkiv? What is it? Thnx and Best wishes Idris -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shīʿī Studies Department 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 ___
[NTG-context] grouped commands in MkIV
Dear syndicate, = \def\TR{\groupedcommand \it} % \def\TR{\groupedcommand \it\/} \def\Test{{\TR Test}} \starttext \Test \stoptext = produces the attached strange result: The first letter gets put at the end. Also, is italic correction no longer supported in mkiv? \/ produces an undefined control sequence. Is there another way now? Best wishes Idris -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shīʿī Studies Department of Philosophy Colorado State University Fort Collins, CO 80523 groupedcommand.pdf Description: Adobe PDF 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Project Structure in MkIV
On Sun, 30 Oct 2011 11:31:02 -0600, Idris Samawi Hamid ادريس سماوي حامد wrote: So I'll make a project file and report back Works ... and THANKS! Idris -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shīʿī Studies Department 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] custom command \myframedsection does not always work. Bug?
Am 30.10.2011 um 16:00 schrieb Curiouslearn: > Hi All, > > Please see the working example below. I have defined a command called > \myframedsection. It works the first two times I use it, but not the > third time. I think it has something to do with using > \startitemize...\stopitemize before the command is used the third > time. But I am not sure. Can someone please tell me why it is not > working, and how I can change my definition so that it works? Is this > a bug? > > \definehead[mysection][section] > \setuphead[mysection][color=blue*:3] > > \def\myframedsection#1{\bgroup\vskip 0.5in >\framed[background=color, backgroundcolor=gray:10] >{\mysection{#1}}% > \egroup} No wonder you get unexpected results with this definition, better solutions are \definehead[myframedsection][section] \setuphead [myframedsection] [before={\blank[0.5in]\startframedtext[background=color,backgroundcolor=gray:10]}, after={\stopframedtext\blank[0.25in]}, color=blue*:3] and \define[2]\MyframedsectionCommand {\framed [background=color,backgroundcolor=gray:10,align=flushleft] {\hbox to 2cm{#1}\vtop{\hsize=\dimexpr\hsize-2cm\relax#2}}} \definehead[myframedsection][section] \setuphead [myframedsection] [before={\blank[0.5in]}, command=\MyframedsectionCommand, style=blue*:3] 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] Project Structure in MkIV
On Sun, 30 Oct 2011 11:24:01 -0600, Wolfgang Schuster wrote: So it seems that \product islamwalayah in islamcosmology.tex is being ignored ... Is it a bug? Components read project and environment files but not product files because this would end in a loop. Take also a look at Hans magazine about project structure: http://pragma-ade.com/show-mag-13.htm Actually read that a couple of times. One thing missing from that article is any example of a component file, and I was unable to deduce the point you just made from the rest of the text. Looking again at the table on page three it is starting to make sense. Between, \start-stopcpmponent \product is run "none" and \project is run "once". Now I think I I see what the table is saying :-) So I'll make a project file and report back ... THNX! and Best wishes Idris -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shīʿī Studies Department 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] Project Structure in MkIV
Am 30.10.2011 um 18:17 schrieb Idris Samawi Hamid ادريس سماوي حامد: > On Sun, 30 Oct 2011 10:55:02 -0600, Hans Hagen wrote: > >> On 30-10-2011 14:58, Idris Samawi Hamid ادريس سماوي حامد wrote: > >>> I am porting a huge project from mkii to mkiv and am running into >>> structure problems. I now realize that >> >> - you can run with \enabletrackers[system.jobfiles] >> - and also see in the log file what structure is loaded (near the end) > > When I run the component islamcosmology.tex, I get > > ConTeXt ver: 2011.10.10 13:38 MKIV fmt: 2011.10.10 > > : > > system > files > stop used files > > > system > structure > start used structure > > used structure > text: islamcosmology > used structure > component: islamcosmology > > system > structure > stop used structure > > > > So it seems that > > \product islamwalayah > > in islamcosmology.tex is being ignored ... Is it a bug? Components read project and environment files but not product files because this would end in a loop. Take also a look at Hans magazine about project structure: http://pragma-ade.com/show-mag-13.htm 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] Project Structure in MkIV
On Sun, 30 Oct 2011 10:55:02 -0600, Hans Hagen wrote: On 30-10-2011 14:58, Idris Samawi Hamid ادريس سماوي حامد wrote: I am porting a huge project from mkii to mkiv and am running into structure problems. I now realize that - you can run with \enabletrackers[system.jobfiles] - and also see in the log file what structure is loaded (near the end) When I run the component islamcosmology.tex, I get ConTeXt ver: 2011.10.10 13:38 MKIV fmt: 2011.10.10 : system > files > stop used files system > structure > start used structure used structure > text: islamcosmology used structure > component: islamcosmology system > structure > stop used structure So it seems that \product islamwalayah in islamcosmology.tex is being ignored ... Is it a bug? Best wishes Idris -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shīʿī Studies Department 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] Project Structure in MkIV
On 30-10-2011 14:58, Idris Samawi Hamid ادريس سماوي حامد wrote: Dear gang, I am porting a huge project from mkii to mkiv and am running into structure problems. I now realize that - you can run with \enabletrackers[system.jobfiles] - and also see in the log file what structure is loaded (near the end) 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 ___
Re: [NTG-context] ⅛ not displayed
On 30-10-2011 09:44, Wolfgang Schuster wrote: Am 29.10.2011 um 18:27 schrieb Paul Menzel: Dear ConTeXt folks, some fractions (input using Compose) are not displayed in the resulting PDF files. \starttext ⅛ ist $\frac18$. ½, ⅓, ¼, ⅕, ⅙, ⅛ \stoptext I guess this is a font problem, but maybe fall backs could be added? You can’t expect from a font to have glyphs for each unicode symbol and automatic fallbacks are problematic because the fallback font should match with the regular font. Indeed, and we should not go the route of all kind of messy fallbacks just because tex could do it (using active characters or whatever trickery) which on the average looks bad anyway. One should just choose a proper font for the job to be done. I added a replace option to \enabletrackers[fonts.missing=replace] (can best be set before any font is loaded, so pretty soon) which will show missing characters. Also, context s-fonts-missing.mkiv will show the legend (in the next beta that is). Btw, we already have \enabletrackers [fonts.missing] and \enabletrackers [fonts.missing=remove] for quite a while. 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] custom command \myframedsection does not always work. Bug?
Hi All, Please see the working example below. I have defined a command called \myframedsection. It works the first two times I use it, but not the third time. I think it has something to do with using \startitemize...\stopitemize before the command is used the third time. But I am not sure. Can someone please tell me why it is not working, and how I can change my definition so that it works? Is this a bug? Minimal Example: \setuppapersize[letter][letter] \setupwhitespace[medium] \setuplayout[height=middle,width=middle,topspace=0.5in,header=1cm,backspace=1.25in] \setupcolors[state=start] \setupcolor[xwi] \setupinteraction[state=start] % Changing the location of the page numbers so that they appear in the footer. \setuppagenumbering[location=footer] \setupnarrower[left=2ex] \setupitemize[margin=0.5cm] \setupitemize[a] \setupitemize[stopper=)] %%% Defining \mysection and \myframedsection %%% \definehead[mysection][section] \setuphead[mysection][color=blue*:3] \def\myframedsection#1{\bgroup\vskip 0.5in \framed[background=color, backgroundcolor=gray:10] {\mysection{#1}}% \egroup} \starttext \myframedsection{Confidence Intervals from the normal and $t$-distributions} {\bf Here myframedsection commmand works.} \subsection{Confidence Interval for Mean} \subsection{Confidence Interval for Proportion} \subsection{Confidence Interval for Linear Transformation} SECTION \myframedsection{Classical Hypothesis Testing} SECTION {\bf Here myframedsection commmand works.} \startitemize \item some item here \item some item here \stopitemize SECTION \myframedsection{Problems with Statistical Significance} SECTION {\bf where is the section title??} Researchers often compare results based on statistical significance. There are two pitfalls in doing so: \startitemize \item Statistical significance does not mean practical significance. A result that is statistically significant may be practically insignificant. \item If one result is statistically significant and other is not, it does not necessarily mean that the difference in the two results is statistically significant. For example, suppose there are two independent studies, one with an effect estimate of 25 and standard error of 10. Another with an effect estimate of 10 and standard error of 10. The former is statistically significant at 1\% significance level. The latter is not significant at 1\%. From this one may be tempted to conclude that there is a large/significant difference between the results in two studies. However, this is not true. The estimate of difference in the effects is 15 with standard error of $ \sqrt{10^{2} + 10^{2}} = 14 $. This is not even close to being statistically significant at 1\% level. \stopitemize \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 ___
[NTG-context] Project Structure in MkIV
Dear gang, I am porting a huge project from mkii to mkiv and am running into structure problems. I now realize that \start-stopproject no longer compiles the entire project, just stick to products and components. I am also dividing what was one long book into two books, and I'd like to compile both books at once to keep cross-references between the two books operative: I've turned the project into a product, the products into components, and components into inputs. Obviously I'm running into problems ;-) : First:One thing that is unclear now is how the \environment is inherited. Attached is a basic test set. If I compile the product file islamwalayah.tex, I get the expected output it appears. If I compile the component file islamcosmology.tex, the alias \Islam gives an undefined control sequence. That is, it does not inherit env-aliases.tex. If I comment % \Islam the component file compiles, but the layout is not inherited from env-islamwalayah.tex. How do I fix this? Any related general advice? Files listed inline below, attached as well for testing, and Best wishes Idris ==islamwalayah.tex \environment env-islamwalayah \environment env-aliases \startproduct islamwalayah \component islamcosmology % Book One % \component islamspirituality % Book Two \stopproduct == ===env-islamwalayah.tex=== \startenvironment env-islamwalayah \setuplayout[width=7in] \stopenvironment == =env-aliases.tex== \startenvironment env-aliases \def \Islam{Islām} \stopenvironment == ===islamcosmology.tex= \startcomponent islamcosmology \product islamwalayah % below is actually \input title-cw \starttext \Islam \input tufte \stoptext \stopcomponent == -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shīʿī Studies Department of Philosophy Colorado State University Fort Collins, CO 80523 env-aliases.tex Description: TeX document env-islamwalayah.tex Description: TeX document islamcosmology.tex Description: TeX document islamwalayah.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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] title numbering
On 10/30/2011 01:19 PM, Wolfgang Schuster wrote: > Am 30.10.2011 um 09:08 schrieb Pablo Rodríguez: >> Many thanks, Wolfgang, for your help. >> >> I'm afraid that the code only works partially. Compiling it, gives the >> following result: >> >> 1 Chapter >> 1 Section >> >> And it should read: >> >> I Chapter >> A Section >> >> I'm using ConTeXt from TeXLive 2011. > > Try “\setupheads[sectionconversionset=pablo]” Thanks, it works in the sample, but not in my real document. I will try to find out why. Thanks again, 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] title numbering
Am 30.10.2011 um 09:08 schrieb Pablo Rodríguez: > On 10/30/2011 08:36 AM, Wolfgang Schuster wrote: >>> [...] >> \definestructureconversionset[pablo][n,R,A][n] >> >> \setuphead[sectionconversionset=pablo] >> >> \setuphead[chapter][sectionsegments=chapter] >> \setuphead[section][sectionsegments=section] >> >> \starttext >> >> \chapter{Chapter} >> >> \section{Section} >> >> \stoptext > > Many thanks, Wolfgang, for your help. > > I'm afraid that the code only works partially. Compiling it, gives the > following result: > > 1 Chapter > 1 Section > > And it should read: > > I Chapter > A Section > > I'm using ConTeXt from TeXLive 2011. Try “\setupheads[sectionconversionset=pablo]” 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] liga not working
On 10/30/2011 12:19 PM, Wolfgang Schuster wrote: > Am 30.10.2011 um 11:40 schrieb Pablo Rodríguez: >> On 10/30/2011 11:06 AM, Wolfgang Schuster wrote: >>> Am 30.10.2011 um 10:39 schrieb Pablo Rodríguez: >>> [...] AFAIK, all fonts have the liga feature correctly defined. >>> >>> Try “\setmainfont[…][script=latn]”. >> >> Replacing "\setmainfont[FreeSerif]" with >> "\setmainfont[FreeSerif][script=latn]" doesn't work either. >> >> What is wrong here? > > Set the script with \definefontfeature and it will work (I tested it with Old > Standard): > > \definefontfeature[default][default][script=latn] % “script=latin” works too > > \setmainfont[Old Standard] Many thanks, it worked now. BTW, how about the title numbering that I have reported as partially not working in a previous message today? Thanks again, 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Wiki: Procedure to update the reference (was: `\reference` does not print number)
Am Samstag, den 29.10.2011, 18:10 +0200 schrieb Wolfgang Schuster: > Am 29.10.2011 um 18:03 schrieb Paul Menzel: > > using > > > >ConTeXt ver: 2011.10.14 22:47 MKIV fmt: 2011.10.15 int: > > english/english > > > > the example from the Wiki page for `\reference` [1] does not work. > > > >\starttext > >See page \ref[p][myref 1] and \ref[p][myref 2]. > >\page > >\reference[myref 1]{} This is the first reference. > >\page > >\reference[myref 2]{} This is the second one. > >\stoptext > > > > The numbers are not printed into the resulting file. Please find the > > source file and resulting PDF file attached. > > Use “page” as keyword for the first argument or get the pagenumber with > “\at[myref 1]”. Thank you as always for the quick solution to my problem! Is the command reference in the Wiki auto generated or do I just expand or improve the article for `\reference`? Thanks, Paul [1] http://wiki.contextgarden.net/Reference/en/reference signature.asc Description: This is a digitally signed message part ___ 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] liga not working
Am 30.10.2011 um 11:40 schrieb Pablo Rodríguez: > On 10/30/2011 11:06 AM, Wolfgang Schuster wrote: >> Am 30.10.2011 um 10:39 schrieb Pablo Rodríguez: >> >>> Hi there, >>> >>> using the following code: >>> >>> \usemodule[simplefonts][size=50pt] >>> \setmainfont[FreeSerif] >>> \starttext >>> fi {\it fi} >>> \stoptext >>> >>> I get ligatures when using TeX Gyre Termes, but not with FreeSerif, Old >>> Standard or Theano Didot. >>> >>> AFAIK, all fonts have the liga feature correctly defined. >> >> Try “\setmainfont[…][script=latn]”. > > Replacing "\setmainfont[FreeSerif]" with > "\setmainfont[FreeSerif][script=latn]" doesn't work either. > > What is wrong here? Set the script with \definefontfeature and it will work (I tested it with Old Standard): \definefontfeature[default][default][script=latn] % “script=latin” works too \setmainfont[Old Standard] 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] [solved] No numbers with `\ref` and floats like `\placetable`
Am Sonntag, den 30.10.2011, 08:30 +0100 schrieb Wolfgang Schuster: > Am 29.10.2011 um 23:47 schrieb Paul Menzel: > > I am sorry for another reference related question. Using > > > >ConTeXt ver: 2011.10.14 22:47 MKIV fmt: 2011.10.15 int: > > english/english > > > > the following example does not work. Either no number is shown or »??«. > > > >\starttext > > > >Table \ref[][tab:reference] is a nice table. But referencing does > > not work \ref[tab:reference]. > > Use “\in[tab:reference]” to refer to the table number of give “\ref” a > keyword (in your case “number”) for the first argument. That indeed solved this issue. Thank you very much! Thanks, Paul ref.pdf Description: Adobe PDF document \starttext Table \ref[number][tab:reference] is a nice table. But referencing does not work \in[tab:reference]. \placetable[][tab:reference] {The table should be set up better.} { \startluacode context.bTABLE() context.bTR() context.bTD() context("n") context.eTD() for j=1,10 do context.bTD() context("$10^{" .. j .. "}$") context.eTD() end context.eTR() t = { 1, 2, 4, 8 } for index, i in ipairs(t) do context.bTR() context.bTD() context("$n^{" .. -i .. "}$") context.eTD() for j=1,10 do context.bTD() context("\%.4f", 10^(-j/i)) context.eTD() end context.eTR() end context.eTABLE() \stopluacode } \stoptext signature.asc Description: This is a digitally signed message part ___ 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] liga not working
On 10/30/2011 11:06 AM, Wolfgang Schuster wrote: > Am 30.10.2011 um 10:39 schrieb Pablo Rodríguez: > >> Hi there, >> >> using the following code: >> >> \usemodule[simplefonts][size=50pt] >> \setmainfont[FreeSerif] >> \starttext >> fi {\it fi} >> \stoptext >> >> I get ligatures when using TeX Gyre Termes, but not with FreeSerif, Old >> Standard or Theano Didot. >> >> AFAIK, all fonts have the liga feature correctly defined. > > Try “\setmainfont[…][script=latn]”. Replacing "\setmainfont[FreeSerif]" with "\setmainfont[FreeSerif][script=latn]" doesn't work either. What is wrong here? 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] liga not working
Am 30.10.2011 um 10:39 schrieb Pablo Rodríguez: > Hi there, > > using the following code: > > \usemodule[simplefonts][size=50pt] > \setmainfont[FreeSerif] > \starttext > fi {\it fi} > \stoptext > > I get ligatures when using TeX Gyre Termes, but not with FreeSerif, Old > Standard or Theano Didot. > > AFAIK, all fonts have the liga feature correctly defined. Try “\setmainfont[…][script=latn]”. 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] ⅛ not displayed
Am 30.10.2011 um 09:49 schrieb luigi scarso: > On Sun, Oct 30, 2011 at 9:44 AM, Wolfgang Schuster > wrote: >> >> Am 29.10.2011 um 18:27 schrieb Paul Menzel: >> >>> Dear ConTeXt folks, >>> >>> >>> some fractions (input using Compose) are not displayed in the resulting >>> PDF files. >>> >>>\starttext >>>⅛ ist $\frac18$. >>> >>>½, ⅓, ¼, ⅕, ⅙, ⅛ >>>\stoptext >>> >>> I guess this is a font problem, but maybe fall backs could be added? >> >> You can’t expect from a font to have glyphs for each unicode symbol >> and automatic fallbacks are problematic because the fallback font should >> match with the regular font. > For latin modern we can use Symbola > http://users.teilar.gr/~g1951d/ They don’t match that well, even when you scale Symbola to fit Latin Modern you can see a difference (simplefonts use only the 10pt size of LM). \usemodule[simplefonts] \setmainfontfallback[Symbola][range=numberforms] \setmainfont[Latin Modern Roman] \starttext ½ ⅓ ¼ ¾ ⅕ ⅙ ⅛ ↉ \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] liga not working
Hi there, using the following code: \usemodule[simplefonts][size=50pt] \setmainfont[FreeSerif] \starttext fi {\it fi} \stoptext I get ligatures when using TeX Gyre Termes, but not with FreeSerif, Old Standard or Theano Didot. AFAIK, all fonts have the liga feature correctly defined. What am I doing wrong? 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] No numbers with `\ref` and floats like `\placetable`
On 30.10.2011, at 09:45, Wolfgang Schuster wrote: > > Am 29.10.2011 um 23:57 schrieb Andreas Harder: > >> >> On 29.10.2011, at 23:47, Paul Menzel wrote: >> >>> Dear ConTeXt folks, >>> >>> >>> I am sorry for another reference related question. Using >>> >>> ConTeXt ver: 2011.10.14 22:47 MKIV fmt: 2011.10.15 int: >>> english/english >> >> That's also true for yesterdays beta. > > I’m aware of this but I hadn’t time so far to write a fix for this. Okay. Thank you in advance. Andreas ___ 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] ⅛ not displayed
On Sun, Oct 30, 2011 at 9:44 AM, Wolfgang Schuster wrote: > > Am 29.10.2011 um 18:27 schrieb Paul Menzel: > >> Dear ConTeXt folks, >> >> >> some fractions (input using Compose) are not displayed in the resulting >> PDF files. >> >> \starttext >> ⅛ ist $\frac18$. >> >> ½, ⅓, ¼, ⅕, ⅙, ⅛ >> \stoptext >> >> I guess this is a font problem, but maybe fall backs could be added? > > You can’t expect from a font to have glyphs for each unicode symbol > and automatic fallbacks are problematic because the fallback font should > match with the regular font. For latin modern we can use Symbola http://users.teilar.gr/~g1951d/ -- luigi ___ 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] No numbers with `\ref` and floats like `\placetable`
Am 29.10.2011 um 23:57 schrieb Andreas Harder: > > On 29.10.2011, at 23:47, Paul Menzel wrote: > >> Dear ConTeXt folks, >> >> >> I am sorry for another reference related question. Using >> >> ConTeXt ver: 2011.10.14 22:47 MKIV fmt: 2011.10.15 int: >> english/english > > That's also true for yesterdays beta. I’m aware of this but I hadn’t time so far to write a fix for this. 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] ⅛ not displayed
Am 29.10.2011 um 18:27 schrieb Paul Menzel: > Dear ConTeXt folks, > > > some fractions (input using Compose) are not displayed in the resulting > PDF files. > >\starttext >⅛ ist $\frac18$. > >½, ⅓, ¼, ⅕, ⅙, ⅛ >\stoptext > > I guess this is a font problem, but maybe fall backs could be added? You can’t expect from a font to have glyphs for each unicode symbol and automatic fallbacks are problematic because the fallback font should match with the regular font. 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] title numbering
On 10/30/2011 08:36 AM, Wolfgang Schuster wrote: >> [...] > \definestructureconversionset[pablo][n,R,A][n] > > \setuphead[sectionconversionset=pablo] > > \setuphead[chapter][sectionsegments=chapter] > \setuphead[section][sectionsegments=section] > > \starttext > > \chapter{Chapter} > > \section{Section} > > \stoptext Many thanks, Wolfgang, for your help. I'm afraid that the code only works partially. Compiling it, gives the following result: 1 Chapter 1 Section And it should read: I Chapter A Section I'm using ConTeXt from TeXLive 2011. Thanks again, 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] title numbering
Am 29.10.2011 um 22:02 schrieb Pablo Rodríguez: > Hi there, > > I have been searching in the documentation (ConTeXt Reference Manual, > ConTeXt: An Excursion and the wiki) and I don't know how to implement a > basic feature: different title numbers. > > I want to have chapters numbered with Roman numbers and sections with > capital letters and that none of them contains any other number than its > own (no part or/and chapter in chapter or section titles). > > How can I achieve that? I guess this is basic functionality, but I'm not > able to find it in the documentation. \definestructureconversionset[pablo][n,R,A][n] \setuphead[sectionconversionset=pablo] \setuphead[chapter][sectionsegments=chapter] \setuphead[section][sectionsegments=section] \starttext \chapter{Chapter} \section{Section} \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] No numbers with `\ref` and floats like `\placetable`
Am 29.10.2011 um 23:47 schrieb Paul Menzel: > Dear ConTeXt folks, > > > I am sorry for another reference related question. Using > >ConTeXt ver: 2011.10.14 22:47 MKIV fmt: 2011.10.15 int: > english/english > > the following example does not work. Either no number is shown or »??«. > >\starttext > >Table \ref[][tab:reference] is a nice table. But referencing does not > work \ref[tab:reference]. Use “\in[tab:reference]” to refer to the table number of give “\ref” a keyword (in your case “number”) for the first 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 ___