[NTG-context] Bug in latest beta: behavior of \text in StepCharts
Hi Hans, It seems that with the latest beta there is a bug in the way how the command \text is handled in step charts (plesae see the attached PDF). This bug is absent from mkii, and absent from previous versions of mkiv (up to a weak ago, I believe). This is a minimal example which shows that the font used in each cell of \text changes randomly (there are four instances of \text, and each time a different font is used…): begin random-text-size.tex \usemodule[steps] \starttext \input knuth.tex \placefigure[none][-]{}{ \startSTEPtable \cell {$(f\circ u)(x_{*} + o(1)) = $} \text{definition of $f\circ u$} \cell {$f\left(u\left(x_{*} + o(1)\right)\right) = $} \text {$u$ is continuous} \cell {$f\left(u(x_{*}) + o(1)\right) = $} \text {$f$ is continuous} \cell {$f\left(u(x_{*})\right) + o(1) =$} \text {definition of $f\circ u$} \cell {$(f\circ u)(x_{*}) + o(1)$.} \stopSTEPtable} \stoptext begin random-text-size.tex scaling-stepcharts.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] Index items
Hi, Same subject as in my previous post but a new question: On the ConTeXt wiki-page Command\index one finds: \index[...][...][…] […] text […] text […] text What is the first argument for? Could it somehow be used to provide a key? Another point, just for the sake of completeness: the example in my previous post yesterday, in ntg-context Digest, Vol 130, Issue 51, contains a small error, or rather an omission. Not damaging for the example. Corrected in the book. 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] Bug in latest beta: behavior of \text in StepCharts
On Thu, 16 Apr 2015 09:04:46 +0200 Otared Kavian ota...@gmail.com wrote: It seems that with the latest beta there is a bug in the way how the command \text is handled in step charts (plesae see the attached PDF). This bug is absent from mkii, and absent from previous versions of mkiv (up to a weak ago, I believe). This is a minimal example which shows that the font used in each cell of \text changes randomly (there are four instances of \text, and each time a different font is used…): begin random-text-size.tex \usemodule[steps] \starttext \input knuth.tex \placefigure[none][-]{}{ \startSTEPtable \cell {$(f\circ u)(x_{*} + o(1)) = $} \text{definition of $f\circ u$} \cell {$f\left(u\left(x_{*} + o(1)\right)\right) = $} \text {$u$ is continuous} \cell {$f\left(u(x_{*}) + o(1)\right) = $} \text {$f$ is continuous} \cell {$f\left(u(x_{*})\right) + o(1) =$} \text {definition of $f\circ u$} \cell {$(f\circ u)(x_{*}) + o(1)$.} \stopSTEPtable} \stoptext begin random-text-size.tex This bug arises from low-level changes in the handling text from MetaPost. I have reported this to Hans (in the context of graphs), although I have not understood how to fix it. The result is kind of fun: like something that many people produced at the time of the introduction of the Apple MacIntosh! 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] \setupinterlinespace not working in style
On 4/15/2015 7:50 PM, Pablo Rodriguez wrote: Dear list, the following sample: \definetyping [tycode] [option=TEX, style={\tt\setupinterlinespace[line=5em]}] \starttext \section{\input zapf} \starttycode legibilidad, {\en legibility}, {\de Lesbarkeit} \stoptycode \setupinterlinespace[line=5em] \input zapf\par \stoptext shows simple (wrong) interline spacing with latest beta and it has right interline spacing with stable from TeX Live 2014. Is this a bug or am I missing something? hm, i made it so that option would avoid setting style and color (normally one will plug things like interlinespacing in before) i'll bring back style but not color (when option is set) 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] next beta
On 4/15/2015 7:08 PM, Aditya Mahajan wrote: On Tue, 19 Mar 2013, Hans Hagen wrote: \starttext \starttabulate[||CL{darkred}|CM{darkgreen}CT{white}|CR{darkblue}||] \NC first \NC left \NC middle \NC right \NC last \NC \NR \NC first \NC \color[white]{left} \NC middle \NC \color[white]{right} \NC last \NC \NR \NC first \NC left \NC middle \NC right \NC last \NC \NR \stoptabulate \stoptext i.e. we already had CL CM and CR, so CT is new .. should be wikified. I am using a two-week old beta (2015.04.03). CL has the same alignment as r and CR has the same aligned as l. I understand the historic reason for the difference between left and flushleft, but shouldn't the alignment keys within the same mechanism have the same meaning? (Or was this a bug that has been corrected in the current beta). this doesn't look that unnatural does it? \starttext \starttabulate[|l|lCL{darkred}|CM{darkgreen}CT{white}|rCR{darkblue}|r|] \NC first 1 \NC left 1 \NC middle \NC right 1 \NC last 1 \NC \NR \NC first 22 \NC \color[white]{left 22} \NC middle \NC \color[white]{right 22} \NC last 22 \NC \NR \NC first 333\NC left 333 \NC middle \NC right 333 \NC last 333 \NC \NR \stoptabulate \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 ___
Re: [NTG-context] Index items
On Thu, 16 Apr 2015 09:50:23 +0200 Robert Blackstone blackstone.rob...@gmail.com wrote: Hi, Same subject as in my previous post but a new question: On the ConTeXt wiki-page Command\index one finds: \index[...][...][…] […] text […] text […] text What is the first argument for? Could it somehow be used to provide a key? The key is used allow proper alphabetization of the entries, also for alternate formatting of some entries. I do not know about three (or two) argument variants. \index{entry} \index[key]{entry} \index[form::]{entry} \index[form::key]{entry} \index{form::entry} \index[key]{form::entry} \index[form::]{form::entry} \index[form::key]{form::entry} (p.176 of The Manual) -- Alan Braslau CEA DSM-IRAMIS-SPEC CNRS URA 2464 Orme des Merisiers 91191 Gif-sur-Yvette cedex FRANCE tel: +33 1 69 08 73 15 fax: +33 1 69 08 87 86 mailto:alan.bras...@cea.fr ___ 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] Index items
On 4/15/2015 11:41 PM, Robert Blackstone wrote: On 15 Apr 2015, at 19:51 , Alan BRASLAU alan.bras...@cea.fr wrote Hans Hagen pra...@wxs.nl wrote: On 4/14/2015 1:48 PM, Robert Blackstone wrote: Dear all, The book I am typesetting contains a very extensive and detailed index. The number of index items is probably around 1200, 16 pages. A fair number of them occur in more than one chapter. Like bibliography items, and for the sake of consistency, I have stored them in some auxiliary files and it is a matter of copy and paste to get them into the text in the proper place and way. (With always a risk of accidentally deleting or adding a spurious brace or bracket, with nasty results.) I wonder therefore whether it would be possible to handle them like bibliography items, by means of a key, and leave their expansion to ConTeXt. Would it be possible? And if it is not (yet) possible, how could I perhaps tackle it? so you want to remap given index entries to new ones? at what moment? We index pretty heavily now in the new bibliography dataset subsystem, that is one can create an index of authors, an index of keywords, an index of titles, etc. as well as index the pages on which a reference is cited. All of the information is there. So say that you want to create a database of anything: words, images, phrases. You can put these into the database structure and then insert them or any associated information wherever you want in your text, later producing lists and indexes. Can you give an example of what type of information you extensively index with detail? Alan Hi Alan, I realize that I have not yet reacted to Hans’ reply. So let me do that first (it was written but not yet sent). Hi Hans, Do I want to remap given index entries? Assuming I understand your reply correctly the answer is: Yes, in principle. I would want to be able to change them if there are errors, or if some publisher has different views about the presentation of titles of items that are in the index (titles of songs, for instance). And also when (parts of) the text has (have) to be reused for other purposes. Change them in one operation, that is, not by digging up all occurrences in the book of the item that has to be changed. In answer to Alan’s question: names, theoretical treatises and manuscripts, musical works, musical terms. Nearly all examples in the book have several features that have to be indexed: composer’s name, title of the published work (an opera for instance), title of the particular aria of which the example shows a fragment, and the special features that are shown in the example, parallel 7ths, for example. The not-so-minimal example below (best processed iwth mkiv) gives an impression, also of the optical clumsiness that makes the unprocessed text practically unreadable. That is another reason why I would like to be able to call an index entry by means of some sort of key, like in bibliographic items for footnotes. \startluacode document.indexentries = { [rule] = [[Rule(s)]], [ruleimperfect] = [[+ \quote{imperfect to perfect, from}]], [galilei] = [[Galilei, Vincenzo]], } function document.getindexentry(n) context(\\index[%s]{%s},n,document.indexentries[n] or ( .. n .. )) end \stopluacode \unexpanded\def\InEn[#1]% {\ctxlua{document.getindexentry(#1)}} \starttext That this rule \InEn[rule] \InEn[ruleimperfect] was not applied by everybody is for example shown in {\em Fronimo}% \InEn[galilei] etc etc Kind regards, Robert Blackstone \starttext That this rule% \index[Rule]{Rule(s)}%% \index[RuleImperfect]{ + \quote{imperfect to perfect, from}} was not applied by everybody is for example shown in {\em Fronimo}% \index[Galilei]{Galilei, Vincenzo}% \index[GalileiFronimo]{ +{\em Fronimo}}% \index[Cadence]{cadence(s)}%% \index[CadenceP]{ + plagal}% \index[PlagalCad]{plagal cadence}% \index[Fronimo]{{\em Fronimo} (Galilei)} (1584), Vincenzo Galileo's treatise on lute playing and the intabulation% \index[Intabulation]{intabulation} of vocal music. \page Artusi\index[Artusi]{Artusi, Giovanni Maria} showed examples (Ex.~4.34) with parallel 4th% \index[Dissonance]{dissonance(s)}% \index[Dissonance4]{ + 4th(s)}% \index[Dissonance4Parall]{ + + parallel}s and 7th% \index[Dissonance]{dissonance(s)}% \index[Dissonance7]{ + 7th(s)}% \index[Dissonance7Paral]{ + + parallel}s in a contrapuntally oriented fashion. These parallels were to appear in works with basso continuo around 1610 but now between the bass and the solo part. They occur in vocal and instrumental music as well as in works for keyboard solo. Most examples have parallel 7th% \index[Dissonance]{dissonance(s)}% \index[Dissonance7]{ + 7th(s)}% \index[Dissonance7Paral]{ + + parallel}s but some examples of parallel 4th% \index[Dissonance]{dissonance(s)}% \index[Dissonance4]{ +
[NTG-context] beta / mp
Hi, I uploaded a beta with some fixes. Indeed as Alan mentioned some of the tex-mp interface has changed deep down (more efficient). 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] setupthinrules
On Wed, 15 Apr 2015, Thangalin wrote: Pandoc uses thinrule (probably because it spans the page by default) when generating ConTeXt documents. Using only thinrule, how would you go about making a totally sweet (ornamental) horizontal rule, such as those shown at: http://tex.stackexchange.com/a/76555/2148 Have a look at the fancybreak module. Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] how to set figure label ?
Hi, how can I set a label for a figure without \placefigure[][fig:...]{} for some figures I use strange macros -- and at those places I get errors when calling \placefigure BUT I'd like to check the page numbers of those places using \doifreferencefoundelse{fig:bild\the\bildnr}% and right now I get references unknown reference '[][fig:bild5]' for those pictures... thanks -- and greetings from the DANTE meeting in Stralsund, Germany Harald PS: Hans -- we miss you so much!!! -- I hope to die ___ _ before I *have* to use Microsoft Word., 0--,|/OOO\ Donald E. Knuth, 02-Oct-2001 in Tuebingen._/ / /OOO\ \ \/OOO\ \ O|// \/\/\/\/\/\/\/\/\/ Harald Koenig // / \\ \ koe...@tat.physik.uni-tuebingen.de ^ ^ ___ 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] \setupinterlinespace not working in style
On 04/16/2015 02:36 PM, Hans Hagen wrote: On 4/15/2015 7:50 PM, Pablo Rodriguez wrote: [...] shows simple (wrong) interline spacing with latest beta and it has right interline spacing with stable from TeX Live 2014. Is this a bug or am I missing something? hm, i made it so that option would avoid setting style and color (normally one will plug things like interlinespacing in before) i'll bring back style but not color (when option is set) Many thanks for all the fixes, Hans. I have always thought that adding anything to an element in before would cause to have it after the element. But it seems that I was wrong. Many 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] how to set figure label ?
On Thu, 16 Apr 2015 17:27:17 +0200 Harald Koenig koe...@tat.physik.uni-tuebingen.de wrote: how can I set a label for a figure without \placefigure[][fig:...]{} for some figures I use strange macros -- and at those places I get errors when calling \placefigure BUT I'd like to check the page numbers of those places using \doifreferencefoundelse{fig:bild\the\bildnr}% and right now I get references unknown reference '[][fig:bild5]' for those pictures... I much prefer the syntax \startplacefigure [reference=fig:,location={here,force},title={}] \externalfigure[]... \stopplacefigure Depending on the strange macros that you want to use, this should generally work. I find that this gives one many more options. 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 ___
[NTG-context] line numbers position
Dear list, I have the following sample: \mainlanguage[es] \setuppapersize[A7] \setuppagenumbering[location=,] \starttext \startlinenumbering \input cervantes-es \stoplinenumbering \stoptext Compiled with latest beta, line numbers are partly off the page: http://www.ousia.tk/latestbeta-linenumbers.png. Compiled with beta from 2014.03.07 11:42, they fit in the page: http://www.ousia.tk/20140307-linenumbers.png. Is this an old bug or am I missing something? Many 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 ___
[NTG-context] wrong vertical spacing in latest beta
Hans, this sample: \showgrid \setupbodyfont[30pt] \starttext {\tfa\setupinterlinespace \ConTeXt\par}\\ {\tfxx\setupinterlinespace Author\par}\\ {\tfxx\setupinterlinespace\currentdate\par}\\ {\tf\setupinterlinespace url\par} \stoptext With either latest beta or beta from 2015.03.25 22:13, last line in the sample is on grid line number 3. With stable beta from TL14 (2014.05.21 22:04), last line from sample is after grid line 6. I’m afraid it might be a bug. Many 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] Handling line numbers in frontmatter.
On 04/16/2015 09:19 PM, John Culleton wrote: In the sample shown below I get correct (roman) line numbers but the very first page, imported from plug.tex has an unwanted page number. If I surround that page with: \startstandardmakeup[doublesided=no,page=yes] and \stopstandardmakeup the page number disappears but the page count is wrong by one. Page numbers are roman. Hi John, this isn’t wrong. Makeup pages aren’t numbered by default. Add pagestate=start to the makeup you want to get its page numbered. To avoid adding the same options to every single makeup, add in the preamble: \setupmakeup[pagestate=start, doublesided=no, page=yes] BTW, I don’t know whether this is is the best way to surpress page numbers in texts. Because makeups don’t split texts in pages. I hope it helps, 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] How to exclude certain figures from list of figures in ConTeXt?
Am 15.04.2015 um 22:12 schrieb Geert Verhaag verhaagg...@ziggo.nl: Hi Wolfgang, Thank you very much for your suggestion! Can you explain a bit the trick behind this mechanism? I created only a new float environment which copies all values from the figure environment but it saves all caption entries in its own nofigure list and when you show only the figure entries in the list the others are hidden. \setupexternalfigures[location=default] \definefloat[nofigure][nofigures][figure] \starttext \subject{Figure entries} \placelist[figure] \subject{Figure and nofigure entries} \placelist[figure,nofigure] \blank[4*line] \startplacefloat[figure][title=A dutch cow] \externalfigure[cow][width=6cm] \stopplacefloat \startplacefloat[nofigure][title=A dutch mill] \externalfigure[mill][width=6cm] \stopplacefloat \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] wrong vertical spacing in latest beta
On 04/16/2015 10:38 PM, Hans Hagen wrote: On 4/16/2015 10:20 PM, Pablo Rodriguez wrote: On 04/16/2015 09:51 PM, Hans Hagen wrote: [...] I have seen strut in the past, but I’m afraid that I don’t know what it may be or what I can use it for (besides your sample). tex has no built-in concept of lineheight and depth only of distance so, if you want consistency you need to make sure the first line has height and the last line depth for normal running text this goes ok (thanks to baselineskip being the sum of wanted height and depth) but ... as soon as you start boxing you need to make sure you enforce the proper ht and dp is needed \begstrut ... \endstrut can be used for that most mechanisnm in context deal with this themselves (for instance framed and tables .. tables would look horrible otherwise) (try \showstruts before \starttext so see where \struts are used) Many thanks for your explanation, Hans. 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] ConTeXt-defined colours broken in TikZ in MkIV with latest betas
Hi Hans sorry to ask again. But the different color handling between context-version before 2015.04.14 00:54 and context-version 2015.04.14 00:54 is remarkable and annoying. See attached pdf-documents. Both have exactly the same source: \usemodule[tikz] \setupbodyfont[40pt] \starttext \definecolor[mycola][c=0.23,m=0.58,y=0.88,k=0.45] \definecolor[mycolb][c=0.115,m=0.29,y=0.44,k=0.225] \definecolor[mycolc][c=0.055,m=0.145,y=0.22,k=0.1125] \starttikzpicture \node[fill=mycola,rectangle, minimum height=4cm,minimum width=2cm,anchor=south west] {\startcolor[mycola]T\stopcolor}; \node[fill=mycolb,rectangle, minimum height=4cm,minimum width=2cm,anchor=south west] at (2,0) {\startcolor[mycolb]T\stopcolor}; \node[fill=mycolc,rectangle, minimum height=4cm,minimum width=2cm,anchor=south west] at (4,0) {\startcolor[mycolc]T\stopcolor}; \stoptikzpicture \stoptext I write in each box the letter T with exactly the same color as the underlying box. Textcolor is set using context, fill color of the box is set using tikz. old.pdf shows the correct color handling. The letter T has exactly the same color as the box and therefore disappears. With newest beta (new.pdf) the letter T is visible. Must I now stay with an old beta or can this bug be fixed? Perhaps it's a bug in tikz... Thanks Christian Am Don, 16. Apr, 2015 um 9:58 schrieb Hans Hagen pra...@wxs.nl: On 4/16/2015 9:34 PM, Christian Prim wrote: Hi Hans is it correct, that with the new beta one can just use rgb-colors using tikz or is there a bug preventing the usage of cmyk-colors as it used to work before? cmyk should work ok but afaik tikz assumes rgb in some cases so that prohibits that we can do automatic conversion tp other color spaces at he context end Thanks! Christian PS.: See mail below for MWE showing false cmyk colors in tikz. 2015-04-14 11:54 GMT+02:00 Christian Prim christian.p...@gmx.ch mailto:christian.p...@gmx.ch: Thanks Hans for clarification. But even with simple context color models (that worked before) I get other colors. MWE: \usemodule[tikz] \setupbodyfont[40pt] \starttext \definecolor[mycol][c=0.23,m=0.58,y=0.88,k=0.45] \definecolor[mycol_h][c=0.115,m=0.29,y=0.44,k=0.225] \definecolor[mycol_q][c=0.055,m=0.145,y=0.22,k=0.1125] \startcolor[mycol] {\bfa Test} \stopcolor \starttikzpicture \fill[mycol] (0, 0) rectangle (2,4); \fill[mycol_h] (2, 0) rectangle ++(2,4); \fill[mycol_q] (4, 0) rectangle ++(2,4); \stoptikzpicture \stoptext I'm not so familiar with metafun, so I couldn't do the rectangle with metafun (the different colors between context/metafun and tikz would certainly be better visible so). But the bullet shows, that the text color isn't the same as the tikz-figure. But they should as they are identical. Something must have changed in color handling. Christian 2015-04-14 10:42 GMT+02:00 Hans Hagen pra...@wxs.nl mailto:pra...@wxs.nl: On 4/14/2015 10:29 AM, Christian Prim wrote: Thanks Hans for the fix! I have noticed, that spotcolors can be used in tikz, but they are darker. Is that wanted or a bug? they will map onto cmyk or rgb depending on definitions ... don't expect advanced context color models to work with tikz (but they do work with metafun) Hans --__--__- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 tel:087%20875%2068%2074 | www.pragma-ade.com http://www.pragma-ade.com | www.pragma-pod.nl http://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 mailto:ntg-context@ntg.nl / http://www.ntg.nl/mailman/__listinfo/ntg-context 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/ 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 /
Re: [NTG-context] setupthinrules
Thank you. Here is an example that changes the \thinrule to something fancier: \usemodule[fancybreak] \setupfancybreak[symbol=star] \define\thinrule\fancybreak ___ 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] Handling line numbers in frontmatter.
In the sample shown below I get correct (roman) line numbers but the very first page, imported from plug.tex has an unwanted page number. If I surround that page with: \startstandardmakeup[doublesided=no,page=yes] and \stopstandardmakeup the page number disappears but the page count is wrong by one. Page numbers are roman. I have tried changing the page number sequence using e.g,: \setcounter[userpage][-4] but that has no effect. I tried iv instead of 4 but that didn't work either. MKIV and Texlive 2014. --- \starttext \startfrontmatter \setuppagenumbering[state=start] %\startstandardmakeup[doublesided=no,page=yes] \input plug.tex %\stopstandardmakeup \page[yes] \startstandardmakeup[doublesided=no,page=yes] \stopstandardmakeup \startstandardmakeup[doublesided=no,page=yes] \externalfigure[graph1.pdf][width=\paperwidth, height=\paperheight] \stopstandardmakeup %\setcounter[userpage][number=4] \startstandardmakeup[doublesided=no,page=yes] {\obeylines {\bf From Kitchen to Market-Sell Your Specialty Food} 6th Edition Stephen F. Hall (etc.) } \stopstandardmakeup \stoptext --- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html Updated PDF e-book: Create Book Covers with Scribus 1.4.5 coming soon at http://www.booklocker.com/! ___ 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] wrong vertical spacing in latest beta
On 4/16/2015 6:50 PM, Pablo Rodriguez wrote: Hans, this sample: \showgrid \setupbodyfont[30pt] \starttext {\tfa\setupinterlinespace \ConTeXt\par}\\ {\tfxx\setupinterlinespace Author\par}\\ {\tfxx\setupinterlinespace\currentdate\par}\\ {\tf\setupinterlinespace url\par} \stoptext With either latest beta or beta from 2015.03.25 22:13, last line in the sample is on grid line number 3. With stable beta from TL14 (2014.05.21 22:04), last line from sample is after grid line 6. I’m afraid it might be a bug. hm, more likely a fix (prevdepth or so) \startbuffer[a] \ruledvbox{x\tfa \setupinterlinespace \strut \ConTeXt \par \strut x\par}\blank \ruledvbox{x\tfxx\setupinterlinespace \strut Author \par \strut x\par}\blank \ruledvbox{x\tfxx\setupinterlinespace \strut \currentdate \par \strut x\par}\blank \ruledvbox{x\tf \setupinterlinespace \strut url \par \strut x\par}\blank \stopbuffer \startbuffer[b] \ruledvbox{x\tfa \setupinterlinespace\ConTeXt \par x\par}\blank \ruledvbox{x\tfxx\setupinterlinespaceAuthor \par x\par}\blank \ruledvbox{x\tfxx\setupinterlinespace\currentdate \par x\par}\blank \ruledvbox{x\tf \setupinterlinespaceurl \par x\par}\blank \stopbuffer \starttext \showstruts \getbuffer[a] \page \getbuffer[b] \stoptext you can use use \begstrut ... \endstrut in such local situations - 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] wrong vertical spacing in latest beta
On 4/16/2015 10:20 PM, Pablo Rodriguez wrote: On 04/16/2015 09:51 PM, Hans Hagen wrote: On 4/16/2015 6:50 PM, Pablo Rodriguez wrote: [...] I’m afraid it might be a bug. hm, more likely a fix (prevdepth or so) \startbuffer[a] \ruledvbox{x\tfa \setupinterlinespace \strut \ConTeXt \par \strut x\par}\blank \ruledvbox{x\tfxx\setupinterlinespace \strut Author \par \strut x\par}\blank \ruledvbox{x\tfxx\setupinterlinespace \strut \currentdate \par \strut x\par}\blank \ruledvbox{x\tf \setupinterlinespace \strut url \par \strut x\par}\blank \stopbuffer \startbuffer[b] \ruledvbox{x\tfa \setupinterlinespace\ConTeXt \par x\par}\blank \ruledvbox{x\tfxx\setupinterlinespaceAuthor \par x\par}\blank \ruledvbox{x\tfxx\setupinterlinespace\currentdate \par x\par}\blank \ruledvbox{x\tf \setupinterlinespaceurl \par x\par}\blank \stopbuffer \starttext \showstruts \getbuffer[a] \page \getbuffer[b] \stoptext you can use use \begstrut ... \endstrut in such local situations Many thanks for your help, Hans. I have seen strut in the past, but I’m afraid that I don’t know what it may be or what I can use it for (besides your sample). tex has no built-in concept of lineheight and depth only of distance so, if you want consistency you need to make sure the first line has height and the last line depth for normal running text this goes ok (thanks to baselineskip being the sum of wanted height and depth) but ... as soon as you start boxing you need to make sure you enforce the proper ht and dp is needed \begstrut ... \endstrut can be used for that most mechanisnm in context deal with this themselves (for instance framed and tables .. tables would look horrible otherwise) (try \showstruts before \starttext so see where \struts are used) 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] line numbers position
On 4/16/2015 7:14 PM, Pablo Rodriguez wrote: Dear list, I have the following sample: \mainlanguage[es] \setuppapersize[A7] \setuppagenumbering[location=,] \starttext \startlinenumbering \input cervantes-es \stoplinenumbering \stoptext Compiled with latest beta, line numbers are partly off the page: http://www.ousia.tk/latestbeta-linenumbers.png. Compiled with beta from 2014.03.07 11:42, they fit in the page: http://www.ousia.tk/20140307-linenumbers.png. Is this an old bug or am I missing something? can you run with \showframe? -- - 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] line numbers position
On 04/16/2015 10:50 PM, Hans Hagen wrote: On 4/16/2015 7:14 PM, Pablo Rodriguez wrote: [...] Compiled with latest beta, line numbers are partly off the page: http://www.ousia.tk/latestbeta-linenumbers.png. Compiled with beta from 2014.03.07 11:42, they fit in the page: http://www.ousia.tk/20140307-linenumbers.png. Is this an old bug or am I missing something? can you run with \showframe? Updated images. Latest beta: http://www.ousia.tk/latestbeta-linenumbers.png. Beta from 2014.03.07 11:42: http://www.ousia.tk/20140307-linenumbers.png. 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] ConTeXt-defined colours broken in TikZ in MkIV with latest betas
Hi Hans is it correct, that with the new beta one can just use rgb-colors using tikz or is there a bug preventing the usage of cmyk-colors as it used to work before? Thanks! Christian PS.: See mail below for MWE showing false cmyk colors in tikz. 2015-04-14 11:54 GMT+02:00 Christian Prim christian.p...@gmx.ch: Thanks Hans for clarification. But even with simple context color models (that worked before) I get other colors. MWE: \usemodule[tikz] \setupbodyfont[40pt] \starttext \definecolor[mycol][c=0.23,m=0.58,y=0.88,k=0.45] \definecolor[mycol_h][c=0.115,m=0.29,y=0.44,k=0.225] \definecolor[mycol_q][c=0.055,m=0.145,y=0.22,k=0.1125] \startcolor[mycol] {\bfa Test} \stopcolor \starttikzpicture \fill[mycol] (0, 0) rectangle (2,4); \fill[mycol_h] (2, 0) rectangle ++(2,4); \fill[mycol_q] (4, 0) rectangle ++(2,4); \stoptikzpicture \stoptext I'm not so familiar with metafun, so I couldn't do the rectangle with metafun (the different colors between context/metafun and tikz would certainly be better visible so). But the bullet shows, that the text color isn't the same as the tikz-figure. But they should as they are identical. Something must have changed in color handling. Christian 2015-04-14 10:42 GMT+02:00 Hans Hagen pra...@wxs.nl: On 4/14/2015 10:29 AM, Christian Prim wrote: Thanks Hans for the fix! I have noticed, that spotcolors can be used in tikz, but they are darker. Is that wanted or a bug? they will map onto cmyk or rgb depending on definitions ... don't expect advanced context color models to work with tikz (but they do work with metafun) 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 ___ ___ 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] ConTeXt-defined colours broken in TikZ in MkIV with latest betas
On 4/16/2015 9:34 PM, Christian Prim wrote: Hi Hans is it correct, that with the new beta one can just use rgb-colors using tikz or is there a bug preventing the usage of cmyk-colors as it used to work before? cmyk should work ok but afaik tikz assumes rgb in some cases so that prohibits that we can do automatic conversion tp other color spaces at he context end Thanks! Christian PS.: See mail below for MWE showing false cmyk colors in tikz. 2015-04-14 11:54 GMT+02:00 Christian Prim christian.p...@gmx.ch mailto:christian.p...@gmx.ch: Thanks Hans for clarification. But even with simple context color models (that worked before) I get other colors. MWE: \usemodule[tikz] \setupbodyfont[40pt] \starttext \definecolor[mycol][c=0.23,m=0.58,y=0.88,k=0.45] \definecolor[mycol_h][c=0.115,m=0.29,y=0.44,k=0.225] \definecolor[mycol_q][c=0.055,m=0.145,y=0.22,k=0.1125] \startcolor[mycol] {\bfa Test} \stopcolor \starttikzpicture \fill[mycol] (0, 0) rectangle (2,4); \fill[mycol_h] (2, 0) rectangle ++(2,4); \fill[mycol_q] (4, 0) rectangle ++(2,4); \stoptikzpicture \stoptext I'm not so familiar with metafun, so I couldn't do the rectangle with metafun (the different colors between context/metafun and tikz would certainly be better visible so). But the bullet shows, that the text color isn't the same as the tikz-figure. But they should as they are identical. Something must have changed in color handling. Christian 2015-04-14 10:42 GMT+02:00 Hans Hagen pra...@wxs.nl mailto:pra...@wxs.nl: On 4/14/2015 10:29 AM, Christian Prim wrote: Thanks Hans for the fix! I have noticed, that spotcolors can be used in tikz, but they are darker. Is that wanted or a bug? they will map onto cmyk or rgb depending on definitions ... don't expect advanced context color models to work with tikz (but they do work with metafun) Hans --__--__- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 tel:087%20875%2068%2074 | www.pragma-ade.com http://www.pragma-ade.com | www.pragma-pod.nl http://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 mailto:ntg-context@ntg.nl / http://www.ntg.nl/mailman/__listinfo/ntg-context 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/ 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 ___ -- - 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] setupthinrules
Wikified. http://wiki.contextgarden.net/Command/setupfancybreak http://wiki.contextgarden.net/Modules/fancybreak Might need some corrections and additions. ___ 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] wrong vertical spacing in latest beta
On 04/16/2015 09:51 PM, Hans Hagen wrote: On 4/16/2015 6:50 PM, Pablo Rodriguez wrote: [...] I’m afraid it might be a bug. hm, more likely a fix (prevdepth or so) \startbuffer[a] \ruledvbox{x\tfa \setupinterlinespace \strut \ConTeXt \par \strut x\par}\blank \ruledvbox{x\tfxx\setupinterlinespace \strut Author \par \strut x\par}\blank \ruledvbox{x\tfxx\setupinterlinespace \strut \currentdate \par \strut x\par}\blank \ruledvbox{x\tf \setupinterlinespace \strut url \par \strut x\par}\blank \stopbuffer \startbuffer[b] \ruledvbox{x\tfa \setupinterlinespace\ConTeXt \par x\par}\blank \ruledvbox{x\tfxx\setupinterlinespaceAuthor \par x\par}\blank \ruledvbox{x\tfxx\setupinterlinespace\currentdate \par x\par}\blank \ruledvbox{x\tf \setupinterlinespaceurl \par x\par}\blank \stopbuffer \starttext \showstruts \getbuffer[a] \page \getbuffer[b] \stoptext you can use use \begstrut ... \endstrut in such local situations Many thanks for your help, Hans. I have seen strut in the past, but I’m afraid that I don’t know what it may be or what I can use it for (besides your sample). Many 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 ___
[NTG-context] imposition not working in latest beta
Hans, I’m afraid that imposition is not working with latest beta. Either the command (it crashes): context --extra=arrange --printformat=2UP --paperformat=A4*A3,landscape a.pdf Or the following sample has no text in output: \setuppapersize [A5][A4,landscape] \setuparranging [2UP] \setuplayout [backspace=0pt, topspace=0pt, width=middle, height=middle, location=middle, header=0pt, footer=0pt] \starttext \input knuth \stoptext Many 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] imposition not working in latest beta
On 4/16/2015 11:21 PM, Pablo Rodriguez wrote: Hans, I’m afraid that imposition is not working with latest beta. indeed, also side effect of the mp upgrade .. fixed in next beta - 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] Change counter of chapters (sections, subsections...)
Hello ConTeXistI need to start writing any text from 53 page and such from the 5th chapter (or section). It is possible in a similar way as I set the start page number set also the counter of chapters (sections)? Here is my minimal example: \starttext \chapter{Fictive chapter} \chapter{Fictive chapter} \chapter{Fictive chapter} \chapter{Fictive chapter} \page \setcounter[userpage][53] \chapter{Fifth (actually first) nonfictive chapter} blablabla \stoptext Thanx for help. Jaroslav Hajtmar___ 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] line numbers position
On 4/16/2015 11:32 PM, Pablo Rodriguez wrote: On 04/16/2015 10:50 PM, Hans Hagen wrote: On 4/16/2015 7:14 PM, Pablo Rodriguez wrote: [...] Compiled with latest beta, line numbers are partly off the page: http://www.ousia.tk/latestbeta-linenumbers.png. Compiled with beta from 2014.03.07 11:42, they fit in the page: http://www.ousia.tk/20140307-linenumbers.png. Is this an old bug or am I missing something? can you run with \showframe? Updated images. Latest beta: http://www.ousia.tk/latestbeta-linenumbers.png. Beta from 2014.03.07 11:42: http://www.ousia.tk/20140307-linenumbers.png. indeed there has been some changes -- location=begin|end|text|margin -- margin=dimen so you can set a different margin than the default one -- - 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] setupthinrules
On Thu, 16 Apr 2015, Thangalin wrote: \define\thinrule\fancybreak Or \definefancybreak[thinrule][symbol=star] I wish there was a custom context-writer for pandoc, where markdown elements were mapped to semantic commands rather than visual commands (pandoc maps **text** to {\bf text}, which is worse). Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Caption location with vertical \startplacefigure
How can I get the caption for the vertical figures (figures 2 and 4 in the example) aligned below the figures with the caption width limited to the figure width? Sorry for the noise -- I am sure I am missing something simple, but I cannot find it at this point. (Running current beta and earlier versions, so it does not appear to be a regression.) \showframe \setuppapersize[A4][A3,landscape] \useMPlibrary[dum] %% Enable the first set of three for wider picture margins, %% and the second set of three for standard picture margins \def\FullWidth{\the\dimexpr(\textwidth+2\margindistance)} \def\PicWidth{\the\dimexpr((\FullWidth-2em)/3)} \def\RPicMaxWidth{\the\dimexpr(\PicWidth-\margindistance)} %\def\FullWidth{\textwidth} %\def\PicWidth{\the\dimexpr((\FullWidth-2em)/3)} %\def\RPicMaxWidth{\the\dimexpr(\PicWidth)} \setupcombinations[width=\FullWidth] \definefloat [rightFigure][rightFigures] [figure] \setupfloat [rightFigure] [ location=right, % this does nothing! maxwidth=\RPicMaxWidth, ] \setupcaption[rightFigure] [ width=\PicWidth, location=bottom, align=middle, ] \definefloat [leftFigure][leftFigures] [figure] \setupfloat [leftFigure] [ location=left, % this does nothing! maxwidth=\textwidth, ] \setupcaption[leftFigure] [ width=\PicWidth, location=bottom, align=middle, ] \define\testtext{\dorecurse{5}{This is some text to fill up the space. }This is some text to fill up the space.\par} \starttext \testtext \startplacefigure[title={You see this caption!}] \startcombination[3*1] \startcontent \externalfigure[dummy][width=\PicWidth] \stopcontent \startcaption {\bf a.} Subfigure \stopcaption \startcontent \externalfigure[dummy][width=\PicWidth] \stopcontent \startcaption {\bf b.} Subfigure \stopcaption \startcontent \externalfigure[dummy][width=\PicWidth] \stopcontent \startcaption {\bf c.} Subfigure \stopcaption \stopcombination \stopplacefigure {\em\testtext} \startplacerightFigure[title={Can you see this one?}, location=right, ] \startcombination[1*2] \startcontent \externalfigure[dummy][width=\PicWidth] \stopcontent \startcaption {\bf a.} Subfigure \stopcaption \startcontent \externalfigure[dummy][width=\PicWidth] \stopcontent \startcaption {\bf b.} Subfigure \stopcaption \stopcombination \stopplacerightFigure \dorecurse{5}{\testtext} \page \testtext \startplacefigure[title={You see this caption!}] \startcombination[3*1] \startcontent \externalfigure[dummy][width=\PicWidth] \stopcontent \startcaption {\bf a.} Subfigure \stopcaption \startcontent \externalfigure[dummy][width=\PicWidth] \stopcontent \startcaption {\bf b.} Subfigure \stopcaption \startcontent \externalfigure[dummy][width=\PicWidth] \stopcontent \startcaption {\bf c.} Subfigure \stopcaption \stopcombination \stopplacefigure {\em\testtext} \startplaceleftFigure[title={Can you see this one?}, location=left, ] \startcombination[1*2] \startcontent \externalfigure[dummy][width=\PicWidth] \stopcontent \startcaption {\bf a.} Subfigure \stopcaption \startcontent \externalfigure[dummy][width=\PicWidth] \stopcontent \startcaption {\bf b.} Subfigure \stopcaption \stopcombination \stopplaceleftFigure \dorecurse{5}{\testtext} \stoptext -- Rik ___ 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] ConTeXt-defined colours broken in TikZ in MkIV with latest betas
On 4/16/2015 11:29 PM, Christian Prim wrote: Hi Hans sorry to ask again. But the different color handling between context-version before 2015.04.14 00:54 and context-version 2015.04.14 00:54 is remarkable and annoying. See attached pdf-documents. Both have exactly the same source: \usemodule[tikz] \setupbodyfont[40pt] \starttext \definecolor[mycola][c=0.23,m=0.58,y=0.88,k=0.45] \definecolor[mycolb][c=0.115,m=0.29,y=0.44,k=0.225] \definecolor[mycolc][c=0.055,m=0.145,y=0.22,k=0.1125] \starttikzpicture \node[fill=mycola,rectangle, minimum height=4cm,minimum width=2cm,anchor=south west] {\startcolor[mycola]T\stopcolor}; \node[fill=mycolb,rectangle, minimum height=4cm,minimum width=2cm,anchor=south west] at (2,0) {\startcolor[mycolb]T\stopcolor}; \node[fill=mycolc,rectangle, minimum height=4cm,minimum width=2cm,anchor=south west] at (4,0) {\startcolor[mycolc]T\stopcolor}; \stoptikzpicture \stoptext I write in each box the letter T with exactly the same color as the underlying box. Textcolor is set using context, fill color of the box is set using tikz. old.pdf shows the correct color handling. The letter T has exactly the same color as the box and therefore disappears. With newest beta (new.pdf) the letter T is visible. Must I now stay with an old beta or can this bug be fixed? Perhaps it's a bug in tikz... i found out that it relates to the lack of gray support (which in fact seems to be rgb support) so the next beta might work ok for you (no upload yet) 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] Index items
On 16 Apr 2015, at 15:38 , Hans Hagen pra...@wxs.nl wrote To: mailing list for ConTeXt users ntg-context@ntg.nl Subject: Re: [NTG-context] Index items Message-ID: 552fbb35.9050...@wxs.nl Content-Type: text/plain; charset=utf-8; format=flowed On 4/15/2015 11:41 PM, Robert Blackstone wrote: On 15 Apr 2015, at 19:51 , Alan BRASLAU alan.bras...@cea.fr wrote Hans Hagen pra...@wxs.nl wrote: On 4/14/2015 1:48 PM, Robert Blackstone wrote: Dear all, The book I am typesetting contains a very extensive and detailed index. The number of index items is probably around 1200, 16 pages. A fair number of them occur in more than one chapter. Like bibliography items, and for the sake of consistency, I have stored them in some auxiliary files and it is a matter of copy and paste to get them into the text in the proper place and way. (With always a risk of accidentally deleting or adding a spurious brace or bracket, with nasty results.) I wonder therefore whether it would be possible to handle them like bibliography items, by means of a key, and leave their expansion to ConTeXt. Would it be possible? And if it is not (yet) possible, how could I perhaps tackle it? so you want to remap given index entries to new ones? at what moment? We index pretty heavily now in the new bibliography dataset subsystem, that is one can create an index of authors, an index of keywords, an index of titles, etc. as well as index the pages on which a reference is cited. All of the information is there. So say that you want to create a database of anything: words, images, phrases. You can put these into the database structure and then insert them or any associated information wherever you want in your text, later producing lists and indexes. Can you give an example of what type of information you extensively index with detail? Alan Hi Alan, I realize that I have not yet reacted to Hans’ reply. So let me do that first (it was written but not yet sent). Hi Hans, Do I want to remap given index entries? Assuming I understand your reply correctly the answer is: Yes, in principle. I would want to be able to change them if there are errors, or if some publisher has different views about the presentation of titles of items that are in the index (titles of songs, for instance). And also when (parts of) the text has (have) to be reused for other purposes. Change them in one operation, that is, not by digging up all occurrences in the book of the item that has to be changed. In answer to Alan’s question: names, theoretical treatises and manuscripts, musical works, musical terms. Nearly all examples in the book have several features that have to be indexed: composer’s name, title of the published work (an opera for instance), title of the particular aria of which the example shows a fragment, and the special features that are shown in the example, parallel 7ths, for example. The not-so-minimal example below (best processed iwth mkiv) gives an impression, also of the optical clumsiness that makes the unprocessed text practically unreadable. That is another reason why I would like to be able to call an index entry by means of some sort of key, like in bibliographic items for footnotes. \startluacode document.indexentries = { [rule] = [[Rule(s)]], [ruleimperfect] = [[+ \quote{imperfect to perfect, from}]], [galilei] = [[Galilei, Vincenzo]], } function document.getindexentry(n) context(\\index[%s]{%s},n,document.indexentries[n] or ( .. n .. )) end \stopluacode \unexpanded\def\InEn[#1]% {\ctxlua{document.getindexentry(#1)}} \starttext That this rule \InEn[rule] \InEn[ruleimperfect] was not applied by everybody is for example shown in {\em Fronimo}% \InEn[galilei] etc etc Wow, this is super! Great improvement, also for the readability of the text. Thank you very much, Hans. Kind 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 ___