Re: [NTG-context] OT: Reflections on usability ConTeXt for typesetting of mathematics
Hello ConTeXist. 0. Do you think that this is only a problem for beginners of ConText or it is a general problem of ConTeXt? 1. How many of ConTeXt users use this tool for typesetting of non-elementary mathematics? 2. Are you satisfied with the results, which produces ConTeXt (thinking in the field of mathematics rate)? In general, yes. But there are some issues with TiKZ [http://www.ntg.nl/pipermail/ntg-context/2013/076384.html] and in some ocasions with columns (not balanced). Perhaps we could have a bug triage system for that? 3. What things do you need to have in ConTeXt study that one could bet mathematics at a reasonable level? One reason for ConTeXt is the ability of deal with XML and produce several outputs. Separation of content and presentation is also good. 4. Is ConTeXt able to substitute LaTeX to typesetting of math (e.g. in the future)? I join one person (I don't remember who) who says there could be more examples for learning people. I think an ideal think could be to have an equivalent The not so short introduction to LaTeX. 5. Can you think of any more questions that should be here? The community is good. All posted questions have posted answers. And Hans is the boss ;-) ___ 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] Appendix Page Numbering
I have now :-) which now reflects may changes, but now I have to figure out why my changes aren't working as expected. :-/ After trying for quite some time, I believe it's safe to say that someone with more knowledge of Lua and the internals of ConTeXt may have to look into this as I may be underqualified. Troy ___ 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] structure Mk II vs IV
On Tue, Feb 25, 2014 at 11:48:11PM +0100, Wolfgang Schuster wrote: Am 25.02.2014 um 23:37 schrieb Andrea Valle andrea.va...@unito.it: Ah, so I was a bit mislead by the wiki. Actually I hace this. \usemodule[simplefonts][size=8pt] \definefontfamily [myfamily][serif][TeX Gyre Termes] \definefontfamily[myfamily][mono][LM Typewriter] \definefontfamily[myfamily][sans][Avenir] \setupbodyfont[myfamily] You mean that I simply don’t need \usemodule[simplefonts][size=8pt]? The \definefontfamily command is part of the core and you don’t have to load the simplefonts module. PS. The monospace font for Latin Modern has the name “Latin Modern Mono”. Wolfgang Hello Wolfgang, according to [1] and Andrea's unanswered question: You mean that I simply don’t need \usemodule[simplefonts][size=8pt]? in which I'm very interested: How is fontswitching to other styles (5pt,11pt,17.3pt or bold etc.) performed with \definefontfamily? I.e. \switchtobodyfont[17.3pt] as in following example works, but is it in the official context line? And a, b, c, x, xx no more? \switchtobodyfont[17.3pt] and others will give me such messages: fontsdefining unable to define 'unknown' as 'mainface-17.3pt-rm-tf-0-a-0' therefore I think it's perhaps not the right command. Btw, I'd wish really complete context examples in the manuals. They could spare some of my stupid questions. Rudolf % -- \definefontfamily [mainface] [serif] [TeX Gyre Pagella DejaVu Serif] \definefontfamily [mainface] [sans] [DejaVu Sans] \definefontfamily [mainface] [mono] [DejaVu Sans Mono] [feature=none] \definefontfamily [mainface] [math] [TeX Gyre Pagella Math] \setupbodyfont[mainface] \starttext \startlines \rm rm: DejaVu Serif, yes works well. \tfx tfx: No \rma rma: No \rm {\switchtobodyfont[17.3pt] 17.3pt-rm seems to be ok.} {\switchtobodyfont[14.4pt] 14.4pt-rm seems to be ok too.} {\switchtobodyfont[12pt] 12pt-rm ok.} {\switchtobodyfont[11pt]\rm 11pt-rm ok..} {\rm\bf rm-bf doesn't work.} \stoplines \stoptext % -- Btw my context version: ConTeXt ver: 2014.02.14 17:07 MKIV beta fmt: 2014.2.26 [1] http://www.ntg.nl/pipermail/ntg-context/2013/075428.html ___ 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] font handling
I used uo-to-date minimal: \starttext test \stoptext voss@shania:/opt/context pdffonts torus.pdf name typeencodingemb sub uni object ID --- --- --- --- --- - WGBVOX+LMRoman12-Regular CID Type 0C Identity-H yes yes yes 18 0 \definefontfamily[Garamond][serif][Garamond Premier Pro] \setupbodyfont[Garamond] \starttext test \stoptext voss@shania:/opt/context pdffonts torus.pdf name typeencoding emb sub uni object ID -- --- -- --- --- --- - RTODGH+LatinModernMath-Regular CID Type 0C Identity-H yes yes yes 18 0 The Garamond is not found which is no real problem here, but why do I get a math font here as default? Herbert ___ 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] different page sizes on one sheet
hi all, using \setuppaper[nx=2, ny=2] \setuparranging[XY] \showframe[cut=true] \setuppapersize[A4] \starttext \setuppapersize[A6][A4] Page 1. A6 Portrait \input knuth \page Page 2. A6 Portrait \input knuth \page \setuppapersize[A5,landscape][A4] Page 3. A5 \input knuth \stoptext i ALMOST get the wished layout. the only problem is, that the A5 page is in landscape mode. is there a kind of quick hack to change the orientation of the A5 page to protrait, by leaving \setuppapersize[A5,landscape][A4] as it stands (othewise the layout doesn't function)? artur On 02/25/2014 11:28 PM, Wolfgang Schuster wrote: Am 25.02.2014 um 15:32 schrieb amerke artur.me...@udo.edu: hi wolfgang list, what/where would be a good starting point of implementing such a feature ... ? do i have to hack ConTeXt source code for this or can it be done with a user defined macro? my plan for now will be: to produce the pages with ConTeXt and produce then directly a PDF file, which will include the generated pages at the right position. but a pure ConTeXt solution would be nice in the end … Context has a interface which can be used to save finished pages before the page is put in the pdf file but what you want can only be done with low level tex code. The difficulty depends on your requirements and your own tex skills to write it. 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] different page sizes on one sheet
On Wed, Feb 26, 2014 at 03:37:48PM +0100, amerke wrote: hi all, using \setuppaper[nx=2, ny=2] \setuparranging[XY] \showframe[cut=true] \setuppapersize[A4] \starttext \setuppapersize[A6][A4] Page 1. A6 Portrait \input knuth \page Page 2. A6 Portrait \input knuth \page \setuppapersize[A5,landscape][A4] Page 3. A5 \input knuth \stoptext i ALMOST get the wished layout. the only problem is, that the A5 page is in landscape mode. is there a kind of quick hack to change the orientation of the A5 page to protrait, by leaving \setuppapersize[A5,landscape][A4] as it stands (othewise the layout doesn't function)? artur Hello Artur, Wonderful! Would rotating the A5-text by 90° solve your problem? Not tested and I fear, the pagenumber will remain on the side. Rudolf ___ 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] Additional typeface styles/alternatives with Selectfont
Dear List, I think Selectfont is great -- thank you, Wolfgang, for your work. However, I miss the features to define and use additional typeface styles and alternatives. Not everything fits in the predefined scheme of rm, ss, tt, hw, cg and mm, so it would be nice to have the possibility to define additional typeface styles. (I'm thinking for example about blackletter here.) It would also be nice if one could access arbitrary typeface alternatives, however the typeface creator has named them (e.g. something like semicondensed-ultrabold). At the moment, I think, it is only possible to map a few alternatives to the predefined switches. Kind regards, Joshua ___ 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] different page sizes on one sheet
On Wed, Feb 26, 2014 at 03:37:48PM +0100, amerke wrote: hi all, using \setuppaper[nx=2, ny=2] \setuparranging[XY] \showframe[cut=true] \setuppapersize[A4] \starttext \setuppapersize[A6][A4] Page 1. A6 Portrait \input knuth \page Page 2. A6 Portrait \input knuth \page \setuppapersize[A5,landscape][A4] Page 3. A5 \input knuth \stoptext i ALMOST get the wished layout. the only problem is, that the A5 page is in landscape mode. is there a kind of quick hack to change the orientation of the A5 page to protrait, by leaving \setuppapersize[A5,landscape][A4] as it stands (othewise the layout doesn't function)? artur Hello Artur, meanwhile I played a bit and got: % \setuppaper[nx=2, ny=2] \setuparranging[XY] \showframe[cut=true] \setuppapersize[A4] \starttext \setuppapersize[A6][A4] Page 1. A6 Portrait \input knuth \page Page 2. A6 Portrait \input knuth \page \setuppapersize[A5,landscape][A4] \rotate[rotation=90] { \vbox to 100mm { \hsize=80mm Page 3. A5 \input knuth } } \stoptext % Ofcourse, the pagenumber remains, where it has been before. Greetings, Rudolf ___ 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] \switchtobodyfont fails to load font with some sizes
Dear list, with some font sizes, \switchtobodyfont loads Latin Modern Roman instead of the specified typeface: \definefontfamily [firstfamily] [serif] [TeX Gyre Bonum] \definefontfamily [secondfamily] [serif] [TeX Gyre Termes] \setupbodyfont [firstfamily, 60pt] \starttext abc {\switchtobodyfont [secondfamily, 60pt] abc} abc abc {\switchtobodyfont [secondfamily, 50pt] abc} abc \stoptext Kind regards, Joshua Krämer ___ 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] Selectfont: extend and slant features
Dear list, the (fake) extend and slant features seem to be missing with Selectfont. Will they be made available sometimes in the future? Or am I simply doing something wrong? With simplefonts, they work. \definefontfeature [mainfeature] [default] [onum=yes] \definefontfeature [testfeature] [onum=no, extend=2, slant=0.25] \definefontfamily [mainfamily] [serif] [Latin Modern Roman] [features={mainfeature}] \setupbodyfont [mainfamily, 50pt] \starttext 1236 \addfeature [testfeature] 1236 \stoptext Kind regards, Joshua Krämer ___ 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] [Index] Indenting long primaries after secondaries
Dear All, when a long primary is preceded with the secondary or tertiary index entry, the second line is not indented as usual, see the following example: \setupregister[balance=no] \starttext \index{primary+secondary+tertiary} \index[primary long]{\dorecurse{5}{primary long }} \index[primary longer]{\dorecurse{5}{primary longer }} % but this is Ok \input{tufte} \completeindex \stoptext How can I avoid this? Thanks, Jan ___ 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] Feature Request: ToC page number alternative
Hi, The predefined alternative list setups (e.g., a, b, c...) provide various ways to format the ToC with the page number to the right of the list entry title. An alternative with the page number to the left of the list entry title would be useful. For example: \setupinteraction[state=start,] \setupcombinedlist[content][interaction=all,] \unprotect \define[3]\SectionToCEntry{% \hbox \strc_lists_get_reference_attribute\v!all{% \par \leftaligned\bgroup \hbox to 2em{#3}% \hskip 1em \vtop{\hsize\dimexpr\textwidth-3em\relax#2} \egroup \par% } } \protect \setuplist[section][ alternative=command, command=\SectionToCEntry, ] \starttext \placecontent \dorecurse{4}{ \chapter[title={Chapter}] \page \section[title={Section A}] \dorecurse{5}{\input knuth} \section[title={Section B}] \dorecurse{5}{\input ward} } \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] Update overwrites configuration
Hi, http://wiki.contextgarden.net/Custom_Configuration is now merged with http://wiki.contextgarden.net/texmf.cnf. Please review, correct anything I might have missed, and then delete the texmf.cnf page (the new page is a bit more search-friendly as the words configure and directory are present). ___ 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] Feature Request: ToC page number alternative
Am 26.02.2014 um 20:31 schrieb Thangalin thanga...@gmail.com: Hi, The predefined alternative list setups (e.g., a, b, c...) provide various ways to format the ToC with the page number to the right of the list entry title. An alternative with the page number to the left of the list entry title would be useful. \unprotect \define[3]\SectionToCEntry{% \hbox \strc_lists_get_reference_attribute\v!all{% \par \leftaligned\bgroup \hbox to 2em{#3}% \hskip 1em \vtop{\hsize\dimexpr\textwidth-3em\relax#2} \egroup \par% } } \protect \setuplist[section][ alternative=command, command=\SectionToCEntry, ] When you want a interactive list entry replace “alternative=command” with “alternative=interactive”. \define[3]\SectionToCEntry {\leftaligned\bgroup \hbox to 2em{#3}% \hskip 1em \vtop{\hsize\dimexpr\textwidth-3em\relax#2}% \egroup} \setuplist [section] [alternative=interactive, command=\SectionToCEntry] 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] \switchtobodyfont fails to load font with some sizes
Am 26.02.2014 um 18:10 schrieb Joshua Krämer joshua.krae...@gmail.com: Dear list, with some font sizes, \switchtobodyfont loads Latin Modern Roman instead of the specified typeface: \definefontfamily [firstfamily] [serif] [TeX Gyre Bonum] \definefontfamily [secondfamily] [serif] [TeX Gyre Termes] \setupbodyfont [firstfamily, 60pt] \starttext abc {\switchtobodyfont [secondfamily, 60pt] abc} abc abc {\switchtobodyfont [secondfamily, 50pt] abc} abc \stoptext Add \definebodyfontenvironment[50pt] before \starttext. 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] Selectfont: extend and slant features
Am 26.02.2014 um 18:18 schrieb Joshua Krämer joshua.krae...@gmail.com: Dear list, the (fake) extend and slant features seem to be missing with Selectfont. Will they be made available sometimes in the future? Or am I simply doing something wrong? With simplefonts, they work. \definefontfeature [mainfeature] [default] [onum=yes] \definefontfeature [testfeature] [onum=no, extend=2, slant=0.25] \definefontfamily [mainfamily] [serif] [Latin Modern Roman] [features={mainfeature}] \setupbodyfont [mainfamily, 50pt] \starttext 1236 \addfeature [testfeature] 1236 \stoptext 1. The problem is unrelated to the \definefontfamily command. \definefontfeature [default] [default] [onum=yes] \definefontfeature [testfeature] [onum=no,extend=2,slant=0.25] \setupbodyfont [modern, 50pt] \starttext 1236 {\feature[+][testfeature]1236} \stoptext 2. When you apply your “testfeature” to a certain font alternative (e.g. italic) it will work. \definefontfeature [mainfeature] [default] [onum=yes] \definefontfeature [testfeature] [onum=no,extend=2,slant=0.25] \definefontfamily [mainfamily] [serif] [Latin Modern Roman] [features=mainfeature,it={style:regular,features:{mainfeature,testfeature}}] \setupbodyfont [mainfamily,50pt] \starttext 1236 {\it 1236} \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] structure Mk II vs IV
Am 26.02.2014 um 13:56 schrieb Rudolf Bahr qu...@quasi.de: Hello Wolfgang, according to [1] and Andrea's unanswered question: You mean that I simply don’t need \usemodule[simplefonts][size=8pt]? in which I'm very interested: How is fontswitching to other styles (5pt,11pt,17.3pt or bold etc.) performed with \definefontfamily? I.e. \switchtobodyfont[17.3pt] as in following example works, but is it in the official context line? And a, b, c, x, xx no more? \switchtobodyfont[17.3pt] and others will give me such messages: fontsdefining unable to define 'unknown' as 'mainface-17.3pt-rm-tf-0-a-0' therefore I think it's perhaps not the right command. Btw, I'd wish really complete context examples in the manuals. They could spare some of my stupid questions. The \definefontfamily command doesn’t change the way how you change fonts or use a different font size. The reason why you can’t change the font size is this line \definefontfamily [mainface] [serif] [TeX Gyre Pagella DejaVu Serif] where you tries to load a not existing font. I’ll add a few error message to the code and a fallback solution which will use Latin Modern when no font was found. 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] starttexdefinition error in standalone, works in TL2013
The following code processes cleanly under TL2013 and fails with ConTeXt ver: 2014.02.14 17:07 MKIV beta fmt: 2014.2.16 int: english/english. I suspect a regression, but I am also open to being told that I am doing things incorrectly. I also notice that it fails (even under TL2013) if a space is inserted after [#SETUP] in the doTrans intro. I thought that spaces should be allowed in \starttexdefinition -- is this only in the body and not the parameter description? % macros=mkvi \showframe \let\EndTranslation\relax \starttexdefinition Trans \dosingleempty\doTrans \stoptexdefinition % The following should work, but fails with current beta \starttexdefinition doTrans [#SETUP]#TRANSLATION\EndTranslation \language[en] \doifsomething{#1}{\getparameters[TR][setup=,#SETUP]\TRsetup} \noindentation\blank[halfline] (\,\ignorespaces#TRANSLATION\removeunwantedspaces\,) \stoptexdefinition \starttexdefinition Translation \dosingleempty\doTranslation \stoptexdefinition % This version works with both Texlive and current standalone beta \def\doTranslation[#SETUP]#TRANSLATION\EndTranslation% {\language[en]% \doifsomething{#SETUP}% {\getparameters[TR][setup=,#SETUP]\TRsetup}% \noindentation\blank[halfline]% (\,\ignorespaces#TRANSLATION\removeunwantedspaces\,)% } \starttext Translation using \tex{def}{\tex{doTranslation}} works both with TL2013 and current beta. \Translation[language=en] It betrays a slow-witted mentality to pursue the streams, but not to see the sources of things. \EndTranslation \blank Translation using \tex{starttexdef doTrans} fails with current beta. \Trans[language=en] It betrays a slow-witted mentality to pursue the streams, but not to see the sources of things. \EndTranslation \stoptext -- Rik Kabel ___ 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 ___