[NTG-context] Different fonts for titles
Hi there, how can I use a different font for titles using simplefont? (chapter, section, subsection, ) At now, I use (e.g.) \definedfont[name:fontname at 12pt], but for many fonts, that results in bad kerning (empty space between characters), but for some fonts, that works. So, is there a better way to change easily the font (using Simplefont maybe), and how to set the title-fonts (no typescript, if possible :)) Thanks! Huseyin ___ 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] Too many word-breaks in consecutive lines
100 % automated typesetting with 100 % perfect results is impossible Hans, I dont think so. Manual typesetting is not 100 % perfect, too. Why automated typesetting shouldn't be able to obtain the same results, like men – some day. Of course that needs much more than just typesetting-rules, e.g. some times one has to rephrase some sentences to get a good result, but this will be possible for programms in future, too. For typesetting alorithms it holds the same, like for chess programms in the past, now fulfilled: They will get to the men-level, and even (far) beyond that. Huseyin ___ 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] float combinations
Dear all, A few days ago (10 April 2013, Vol.106, Issue 25) I posted a question about giving related but not necessarily adjacent floats the same number, as for example Fig. 2a and Fig. 2b. In the meantime I found a, not very elegant, solution that only partly satisfies me. Here is a working example: (I trust the cow and the mill can be found). %--- \useexternalfigure[SmallCow][cow.pdf][height=2cm] \useexternalfigure[MediumCow][cow.pdf][height=3cm] \useexternalfigure[Mill][mill.png][height=3cm] \definelist[figure] \setuplist[figure][prefix=yes,label=yes,alternative=c] \starttext This file is for testing the possibility of giving two related musical examples (in old and modern notation respectively) the same figure number with a. and b. as suffixes to the number proper. \placefigure[here][SmallCow1]{A small cow.} {\externalfigure[SmallCow]} A cow again, in two sizes. \in{Figure}[SmallCow2]a shows the same cow as \in{Figure}[SmallCow1]. \placefigure[here][SmallCow2]{{\bf a}. Another small cow.} {\externalfigure[SmallCow]} And here a larger cow (\in{Figure}[MediumCow1]b). \setnumber[figure][1] \placefigure[here][MediumCow1]{{\bf b}. A larger cow.} {\externalfigure[MediumCow]} And here comes a mill. \placefigure[here][Mill1]{A mill.} {\externalfigure[Mill]} \page {\bf List of Figures} \placelist[figure] \completecontent \stoptext % This way a and b become part of the caption text, resulting in: Figure 2 a A small ….. etc., and: Figure 2 b A larger …etc. Likewise in the List of Figures. This is not what I would like. Is there a possibility, when not using Combinations, to get: Figure 2aA small ….. etc? Wherever possible I use Combinations but in some cases examples to be combined are very different in size and shape and/or too large to fit on one page together, so that one of them gets cut off. Is there a possibility, when using a combination of figures, to split it, in other words, to separate the figures spatially, to allow them to appear on consecutive pages, and maybe even allowing some text in between? Thanks in advance. Best regards, Robert Blackstone ___ 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] Too many word-breaks in consecutive lines
On 4/13/2013 11:53 AM, H. Özoguz wrote: 100 % automated typesetting with 100 % perfect results is impossible Hans, I dont think so. Manual typesetting is not 100 % perfect, too. Why automated typesetting shouldn't be able to obtain the same results, like men – some day. Of course that needs much more than just typesetting-rules, e.g. some times one has to rephrase some sentences to get a good result, but this will be possible for programms in future, too. For typesetting alorithms it holds the same, like for chess programms in the past, now fulfilled: They will get to the men-level, and even (far) beyond that. Chess has quite precise rules (and I wonder if a chess program will choose an nice but risky step over a winning one) while typesetting also involves esthetics and therefore only a simulation of what goes on into someones head can help out. It will probably take some years to reach the point where we have hard/software that can match or bypass human brains in that area but at that point there might be no reason for typesetting any more as we then can as well render (given proper sources) realtime using implants and directly project on our retina or even skip that step of rendering altogether and consume raw data. Also, given that in education currently we struggle with the fact that kids have a small attention span and get difficulties with reading texts longer than a tweet (I have to admit I never twet myself) we might as well start thinking simple and small: ragged right, not hyphenated, etc. the fashion in dutch education already for years (thanks to professional dtp systems not capable of doing flushed properly so that designers entered 'no risk mode'). http://www.fontaineuitgevers.nl/wp/kleine-twittercursus-van-het-heelal/ So, what remains of typesetting is the craft and somewhat manual aspect: liking 'this' more that 'that' and messing a bit around. 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] float combinations
This is probably not exactly what you want, however, one can use list= in \startplacefigure\stopplacefigure to differentiate between the figure caption and its listing in the list of figures. \startplacefigure [title={Dutch scenery. \startitemize [n] \startitem A cow. \stopitem \startitem A mill. \stopitem \stopitemize}, list=Figure title, reference=fig:scenery] \startcombination [2] {\externalfigure [cow] [width=.5\textwidth]} {a} {\externalfigure [mill] [width=.45\textwidth} {b} \stopcombination \stopplacefigure A cow is shown in \in{figure} [fig:scenery]a. The above example raises the following (low priority) feature suggestion: How about some way of automatically numbering/labeling combinations just like item lists? Sort-of a hybrid between combination and itemize. Say, \startcombination [r*c] [item=a] \startitem \externalfigure [cow] \stopitem \startitem \externalfigure [mill] \stopitem \stopcombination Hmm. A challenge for Hans (as if he is not busy enough). (However, I am sure that Wolfgang can suggest an obvious solution that is already available, that I overlook... :) Alan ___ 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***] \setscript blocking \hskip functionality
On 4/13/2013 4:44 AM, hwit...@gmail.com wrote: I found that using \setscript{nihongo} breaks the functioning of \hskip. Here is a minimal example. MKIV required. Text source is UTF-8 encoded text. In the first case without \setscript the Japanese \hskip properly functions, but just after the \setscript macro it fails (without err or mention). However, it is interesting to note that \hfill does work in both cases with standard alphabet text. % \usemodule[simplefonts] \setmainfont[ipaexm]% using a font having Japanese characters \starttext \underbars{Without setscript:} Alphabet\hskip 2cm text 漢字\hskip 2cm 文書 \setscript[nihongo] \underbars{With setscript:} Alphabet\hskip 2cm text 漢字\hskip 2cm 文書 \stoptext % end It's because spaces are stripped and there is currently no distinction in luatex (on the todo list is to tag glue coming from spaces with their own subtype). I made a cheat. For the moment only in the japanese analyzer but it might also be needed for korean and chinese, so can you check that with cjk context users? \usemodule[art-01] \enabletrackers[scripts.*] \definefont[testfont][ipaexm.ttf][script=kana,language=jan] \startTEXpage \startformula test \stopformula \par \testfont \startscript[nihongo]\ruledhbox{漢字\hskip 2cm 文 書}\stopscript\par \testfont \startscript[nihongo]\ruledhbox to 7cm{漢字\hfill 文 書}\stopscript\par \testfont \startscript[nihongo]\ruledhbox{漢字文書}\stopscript\par \testfont \startscript[nihongo]\ruledhbox{漢字 文書}\stopscript\par \testfont \startscript[nihongo]\ruledhbox{漢字\kern 2cm 文 書}\stopscript\par \testfont \startscript[nihongo]\ruledhbox{\hskip 2cm 漢字文 書}\stopscript\par \stopTEXpage \stoptext I'll upload a new beta. Btw, what gives these threads a spam subject. 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] float combinations
On 2013–04–13 Alan BRASLAU wrote: A cow is shown in \in{figure} [fig:scenery]a. A cow is shown in \in{figure}{a}[fig:scenery] The above example raises the following (low priority) feature suggestion: How about some way of automatically numbering/labeling combinations just like item lists? Sort-of a hybrid between combination and itemize. I think this could be a useful feature. Say, \startcombination [r*c] [item=a] It's not that simple. You need other itemgroup settings as well, otherwise you don't know the lefttext, righttext, stopper, etc. options which are required for consistency, the sole purpose of this feature. Marco signature.asc Description: Digital signature ___ 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] float combinations
On 13 Apr 2013, at 13:30 , Alan BRASLAU alan.bras...@cea.fr wrote: This is probably not exactly what you want, however, one can use list= in \startplacefigure\stopplacefigure to differentiate between the figure caption and its listing in the list of figures. \startplacefigure [title={Dutch scenery. \startitemize [n] \startitem A cow. \stopitem \startitem A mill. \stopitem \stopitemize}, list=Figure title, reference=fig:scenery] \startcombination [2] {\externalfigure [cow] [width=.5\textwidth]} {a} {\externalfigure [mill] [width=.45\textwidth} {b} \stopcombination \stopplacefigure A cow is shown in \in{figure} [fig:scenery]a. Hi Alan, Thank you for your reaction and your suggestions. Indeed, it is not exactly what I envisaged. I would be happiest if there were a way to add a and b as a suffix to the number, like Figure 2a. With combinations it is easy to have a general Caption and specific captions for the components of the combination. But for the List of Figures I see no other possibility than, for instance 2 Dutch scenery. a. Cow, b. Mill. In fact I have no problems when I can make use of a combination, but, as I wrote, sometimes combinations are impossible for lack of space on the page. What you describe as a challenge for Hans could be perfect, I think, provided an itemization can be interrupted and continued on next page. (I tried your liitle code snippet but ConText would not have it.) Splitting a float combination might turn out to be simpler. Only I have no clue as to how to achieve that. Thanks again. Best regards, Robert ___ 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] float combinations
On 2013–04–13 Robert Blackstone wrote: (I tried your liitle code snippet but ConText would not have it.) He's missing a closing bracket on the \externalfigure[mill] line. Here's a complete example: \setupexternalfigures [location=default] \defineitemgroup [subfigure] [lefttext=, stopper=] \setupitemgroup [subfigure] [a, text] \starttext \startbuffer Dutch scenery \startsubfigure \startitem A cow \stopitem \startitem A mill \stopitem \stopsubfigure \stopbuffer \startplacefigure [title=\getbuffer, list=Dutch scenery, reference=fig:scenery] \startcombination \startcontent \externalfigure[cow][width=.5\textwidth] \stopcontent \startcaption a) \stopcaption \startcontent \externalfigure[mill][width=.45\textwidth] \stopcontent \startcaption b) \stopcaption \stopcombination \stopplacefigure A cow is shown in \in{figure}{a}[fig:scenery] and a mill in \in{figure}{b}[fig:scenery]. \stoptext Marco signature.asc Description: Digital signature ___ 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] float combinations
On 4/13/2013 12:33 PM, Robert Blackstone wrote: Dear all, A few days ago (10 April 2013, Vol.106, Issue 25) I posted a question about giving related but not necessarily adjacent floats the same number, as for example Fig. 2a and Fig. 2b. In the meantime I found a, not very elegant, solution that only partly satisfies me. I cooked up something experimental ... after several variants i ended up with a solution that is only available in the keyword variant: \useMPlibrary[dum] \starttext First line. \startplacefigure[location=here,reference=first,title=first] \externalfigure[dummy][height=2cm] \stopplacefigure Second line. \startplacefigure[location=here,reference=second,title=second,group=alpha,groupsuffix=.a] \externalfigure[dummy][height=2cm] \stopplacefigure Third line. \startplacefigure[location=here,reference=third,title=third] \externalfigure[dummy][height=2cm] \stopplacefigure Fourth line. \startplacefigure[location=here,reference=fourth,title=fourth,group=alpha,groupsuffix=.b] \externalfigure[dummy][height=2cm] \stopplacefigure Fifth line. \startplacefigure[location=here,reference=fifth,title=fifth,group=alpha,groupsuffix=.c] \externalfigure[dummy][height=2cm] \stopplacefigure Last line: \in[first] / \in[second] / \in[third] / \in[fourth] / \in[fifth]. \page \placelist[figure] \stoptext (beware: it's groupsuffix, and not suffix as that will add another one not tracked in the lists) 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] float combinations
On 4/13/2013 1:13 PM, Alan BRASLAU wrote: (However, I am sure that Wolfgang can suggest an obvious solution that is already available, that I overlook... :) \useMPlibrary[dum] \starttext \definelabel[test][text=,numberconversion=character,stopper=!] \resetcounter[test] \startcombination[2*2] {first} {\test} {first} {\test} \stopcombination \startcombination[2*2] {first} {\test} {first} {\test} \stopcombination \resetcounter[test] \startcombination[2*2] {first} {\test} {first} {\test} \stopcombination \resetcounter[test] \startcombination[2*2] {first} {\test} {first} {\test} \stopcombination \stoptext - 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] Is the lastest beta broken?
Today, I updated my ConTeXt standalone but after that, if I ran `context' it would give these message: d:\context contextmtxrun | forcing cache reload resolvers | resolving | looking for 'texmfcnf.lua' on given path 'C:/Users/peng/texmf/web2c' from specification 'home:texmf/web2c' resolvers | resolving | looking for 'texmfcnf.lua' on weird path 'D:/context/tex/texmf-mswin/bin/' from specification 'selfautoloc:' resolvers | resolving | looking for 'texmfcnf.lua' on weird path 'D:/context/tex/texmf-mswin/bin/share/texmf-local/web2c' from specification 'selfautoloc:/share/texmf-local/web2c' resolvers | resolving | looking for 'texmfcnf.lua' on weird path 'D:/context/tex/texmf-mswin/bin/share/texmf-dist/web2c' from specification 'selfautoloc:/share/texmf-dist/web2c' resolvers | resolving | looking for 'texmfcnf.lua' on weird path 'D:/context/tex/texmf-mswin/bin/texmf-local/web2c' from specification 'selfautoloc:/texmf-local/web2c' resolvers | resolving | looking for 'texmfcnf.lua' on weird path 'D:/context/tex/texmf-mswin/bin/texmf-dist/web2c' from specification 'selfautoloc:/texmf-dist/web2c' resolvers | resolving | looking for 'texmfcnf.lua' on weird path 'D:/context/tex/texmf-mswin/' from specification 'selfautodir:' resolvers | resolving | looking for 'texmfcnf.lua' on weird path 'D:/context/tex/texmf-mswin/share/texmf-local/web2c' from specification 'selfautodir:/share/texmf-local/web2c' resolvers | resolving | looking for 'texmfcnf.lua' on weird path 'D:/context/tex/texmf-mswin/share/texmf-dist/web2c' from specification 'selfautodir:/share/texmf-dist/web2c' resolvers | resolving | looking for 'texmfcnf.lua' on weird path 'D:/context/tex/texmf-mswin/texmf-local/web2c' from specification 'selfautodir:/texmf-local/web2c' resolvers | resolving | looking for 'texmfcnf.lua' on weird path 'D:/context/tex/texmf-mswin/texmf-dist/web2c' from specification 'selfautodir:/texmf-dist/web2c' resolvers | resolving | looking for 'texmfcnf.lua' on given path 'D:/context/tex/../texmf-local/web2c' from specification 'selfautoparent:/../texmf-local/web2c' resolvers | resolving | looking for 'texmfcnf.lua' on weird path 'D:/context/tex/' from specification 'selfautoparent:' resolvers | resolving | looking for 'texmfcnf.lua' on given path 'D:/context/tex/share/texmf-local/web2c' from specification 'selfautoparent:/share/texmf-local/web2c' resolvers | resolving | looking for 'texmfcnf.lua' on given path 'D:/context/tex/share/texmf-dist/web2c' from specification 'selfautoparent:/share/texmf-dist/web2c' resolvers | resolving | looking for 'texmfcnf.lua' on given path 'D:/context/tex/texmf-local/web2c' from specification 'selfautoparent:/texmf-local/web2c' resolvers | resolving | looking for 'texmfcnf.lua' on given path 'D:/context/tex/texmf-dist/web2c' from specification 'selfautoparent:/texmf-dist/web2c' resolvers | resolving | resolvers | resolving | warning: no lua configuration files found resolvers | resolving | no texmf paths are defined (using TEXMF) resolvers | resolving | mtxrun | the resolver databases are not present or outdated resolvers | resolving | using suffix based filetype 'lua' resolvers | resolving | remembering file 'mtx-context.lua' resolvers | resolving | using suffix based filetype 'lua' resolvers | resolving | remembering file 'mtx-contexts.lua' resolvers | resolving | remembered file 'mtx-context.lua' resolvers | resolving | using suffix based filetype 'lua' resolvers | resolving | remembering file 'mtx-t-context.lua' resolvers | resolving | using suffix based filetype 'lua' resolvers | resolving | remembering file 'mtx-t-contexts.lua' resolvers | resolving | remembered file 'mtx-t-context.lua' resolvers | resolving | using suffix based filetype 'lua' resolvers | resolving | remembering file 'context.lua' mtxrun | unknown script 'context.lua' or 'mtx-context.lua' d:\ Is this suggesting that the new beta is broken? If not, how can I solve this problem? I like ConTeXt very much! ___ 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 ___