Re: [NTG-context] Does a half-space or small space exist in ConTeXt?
On 3/8/2015 2:13 PM, Idris Samawi Hamid ادريس سماوي حامد wrote: Hi Robert, All the suggestions you have received are good, but ultimately you might want to look at the spaces that Unicode provides, for example 202F. Not sure sure which Unicode space character best suits your needs, but once you have determined that, you can map it to one of the commands suggested by others, or even define it to the exact width you want. For example, I use imacron (U+012B) so much that it clashes with other characters. So I map it to an alternate version that has a thinner macron: \defineactivecharacter ī {\fontchar{imacron.alt}} So what you want is a unicode space character that you can enter in your editor, then define it in ConTeXt to exactly what you want. fyi: the list that Wolfgang shows with verbose space names ... these are in fact unicode characters. 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] Problem with MkIV and TikZ picture remembering
On 3/8/2015 1:04 PM, Wolfgang Schuster wrote: Am 08.03.2015 um 12:55 schrieb Hans Hagen pra...@wxs.nl mailto:pra...@wxs.nl: On 3/8/2015 12:26 PM, Wolfgang Schuster wrote: Am 08.03.2015 um 11:11 schrieb Hans Hagen pra...@wxs.nl mailto:pra...@wxs.nl mailto:pra...@wxs.nl: this should help: \unexpanded\def\writeviatex#1#2% {\ifx\normalwrite\relax\else % the \detokenize makes sure we don't expand \noexpanded macros \normalwrite#1{\detokenize{#2}}% \fi} (in future version i might replace write completely) Only partially because the saved positions from \pdfsavepos are wrong. in what sense wrong? Content of the external file from MkIV (the entries on the first page show 0 and the values on page 2 and 3 are always the same): 1:0:0 2:0:0 3:4661756:45255023 4:4661756:45255023 5:4661756:45255023 6:4661756:45255023 Content of the external file from MkII (different values for the first and second position on each page): 1:6526435:46204089 2:4661756:45256000 3:6526435:46204089 4:4661756:45256000 5:6526435:46204089 6:4661756:45256000 ypositions can differ a bit because we use different fonts and so does the interlinespace 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] Problem with MkIV and TikZ picture remembering
On 3/8/2015 7:07 PM, Wolfgang Schuster wrote: Am 08.03.2015 um 18:39 schrieb Hans Hagen pra...@wxs.nl: On 3/8/2015 1:04 PM, Wolfgang Schuster wrote: Am 08.03.2015 um 12:55 schrieb Hans Hagen pra...@wxs.nl mailto:pra...@wxs.nl: On 3/8/2015 12:26 PM, Wolfgang Schuster wrote: Am 08.03.2015 um 11:11 schrieb Hans Hagen pra...@wxs.nl mailto:pra...@wxs.nl mailto:pra...@wxs.nl: this should help: \unexpanded\def\writeviatex#1#2% {\ifx\normalwrite\relax\else % the \detokenize makes sure we don't expand \noexpanded macros \normalwrite#1{\detokenize{#2}}% \fi} (in future version i might replace write completely) Only partially because the saved positions from \pdfsavepos are wrong. in what sense wrong? Content of the external file from MkIV (the entries on the first page show 0 and the values on page 2 and 3 are always the same): 1:0:0 2:0:0 3:4661756:45255023 4:4661756:45255023 5:4661756:45255023 6:4661756:45255023 Content of the external file from MkII (different values for the first and second position on each page): 1:6526435:46204089 2:4661756:45256000 3:6526435:46204089 4:4661756:45256000 5:6526435:46204089 6:4661756:45256000 ypositions can differ a bit because we use different fonts and so does the interlinespace But the values for both positions should be different which isn’t the case for MkIV and the first page saves 0 for the x and y positions. hm, after some playing with it i think that is a luatex bug (it expands the positions in a tex.write which is wrong so we need to revert to this: \def\syst_write_execute#1% {\ctxcommand{execute(\!!bs#1\!!es)}} \unexpanded\def\write#1#% {\ifnum#1=18 \expandafter\syst_write_execute \else \normalwrite#1% \fi} (context itself doesn't suffer from this as it does things differently; maybe i should make an api and then nil \pdf*pos) 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] Problem with MkIV and TikZ picture remembering
Am 08.03.2015 um 18:39 schrieb Hans Hagen pra...@wxs.nl: On 3/8/2015 1:04 PM, Wolfgang Schuster wrote: Am 08.03.2015 um 12:55 schrieb Hans Hagen pra...@wxs.nl mailto:pra...@wxs.nl: On 3/8/2015 12:26 PM, Wolfgang Schuster wrote: Am 08.03.2015 um 11:11 schrieb Hans Hagen pra...@wxs.nl mailto:pra...@wxs.nl mailto:pra...@wxs.nl: this should help: \unexpanded\def\writeviatex#1#2% {\ifx\normalwrite\relax\else % the \detokenize makes sure we don't expand \noexpanded macros \normalwrite#1{\detokenize{#2}}% \fi} (in future version i might replace write completely) Only partially because the saved positions from \pdfsavepos are wrong. in what sense wrong? Content of the external file from MkIV (the entries on the first page show 0 and the values on page 2 and 3 are always the same): 1:0:0 2:0:0 3:4661756:45255023 4:4661756:45255023 5:4661756:45255023 6:4661756:45255023 Content of the external file from MkII (different values for the first and second position on each page): 1:6526435:46204089 2:4661756:45256000 3:6526435:46204089 4:4661756:45256000 5:6526435:46204089 6:4661756:45256000 ypositions can differ a bit because we use different fonts and so does the interlinespace But the values for both positions should be different which isn’t the case for MkIV and the first page saves 0 for the x and y positions. 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] Update text variables inside metapost
On 3/8/2015 12:57 AM, Aditya Mahajan wrote: On Sat, 7 Mar 2015, DesdeChaves wrote: Why the metapost not updated the value of text variables that are generated inside luacode environment? In the code below, If I have \startitemize[columns,two] then metapost draw: 1. \Bolha[size=6cm]{text1}{text2}{text3}, 2. and four \Bolha[size=4cm]{text1}{text2}{text3}, but text1, text2 and text3 is not updated in every call; Use useMPgraphic instead of uniqueMPgraphic. uniqueMPgraphic recomputes the graphic only when the dimensions of figure has changed; otherwise, it reuses the previously drawn graphic. This behavior was useful for drawing page-backgrounds etc in MkII where calling metapost was slow. not only dimensions, also the overlay related colors (and if needed one can extend the hash used) .. an other advantage (also in mkiv) is that reuse also makes the pdf file smaller 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] Problem with MkIV and TikZ picture remembering
On 3/7/2015 7:22 PM, Wolfgang Schuster wrote: Am 07.03.2015 um 18:30 schrieb Jörg Weger joerg73@googlemail.com: Is that really an mkiv issue? If I understood well tikz has its own way of keeping track of positions independent of context. Normally yes. But there is TikZ’ “remember picture” mode. You can produce several independent TikZ pictures on a ConTeXt/LaTeX/plain text page. TikZ tells ConTeXt (or LaTeX or plain TeX) to give back the coordinates of those pictures on the page after the page has been typeset. TikZ can then draw interconnections between those images which are rendered in an extra run. Tikz uses the pdftex commands \pdfsavepos, \pdflastxpos and \pdflastypos to save the position of the graphics on the page. ConTeXt isn’t involved in this process which provides its own interface for this mechanism but Tikz doesn’t use it. In my example the rounded rectangles with the words inside are TikZ images which are put inline into the ConteXt text by the command \tikz[baseline] \node[form of node, draw, anchor=text] {text content} When I use \tikz[baseline, remember picture] … instead I activate the mode explained above and the arrows can be drawn according to the “remembered” coordinates after ConTeXt’s first typesetting run. According to Wolfgang Schuster in the first reply in this thread when using ConTeXt mkiv – other than mkii – file the coordinates given back after the first typesetting run look strange in TikZ’ auxiliary so there seems to be a mistake somnewhere between ConTeXt and TikZ in this regard. The problem is the \write command which differs in MkII and MkIV and Tikz way to prevent the expansion of a command which is written to the auxiliary file. The following example demonstrates the difference between MkII and MkIV. In MkII the \noexpand prevents the expansion of \dummytext when writes content is written to the external file but in MkIV \write is redefined and this doesn’t work anymore. begin example \newwrite\testwrite \starttext \immediate\openout\testwrite=\jobname-dummytext.tmp \def\dummytext{First sample text.} \immediate\write\testwrite{\noexpand\dummytext} \def\dummytext{Second sample text.} \immediate\write\testwrite{\noexpand\dummytext} \immediate\closeout\testwrite \stoptext end example this should help: \unexpanded\def\writeviatex#1#2% {\ifx\normalwrite\relax\else % the \detokenize makes sure we don't expand \noexpanded macros \normalwrite#1{\detokenize{#2}}% \fi} (in future version i might replace write completely) 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] Does a half-space or small space exist in ConTeXt?
On 8 Mar 2015, at 14:12 , Wolfgang Schuster schuster.wolfg...@gmail.com wrote To: mailing list for ConTeXt users ntg-context@ntg.nl Subject: Re: [NTG-context] Does a half-space or small space exist in ConTeXt? Message-ID: 49ac1148-387a-4934-932a-334cadbb5...@gmail.com Content-Type: text/plain; charset=utf-8 Am 08.03.2015 um 13:55 schrieb Robert Blackstone blackstone.rob...@gmail.com: On 8 Mar 2015, at 13:04 , Wolfgang Schuster schuster.wolfg...@gmail.com wrote 12:24 schrieb Robert Blackstone blackstone.rob...@gmail.com: Hi all, I would like to use something like a half-space or small space in a situation where neither no space, nor a normal space is ideal. You can use \thinspace or \, which is the short form of \thinspace. Oddly enough, \, gives no comma and a normal space, \. gives no period and no space with mkiv, and a superscript period with mkii. Could these forms for \thinspace perhaps be obsolete? I have no problem to use \, as a space command but when you use don’t put a space between the command and the following character. My mistake: I forgot to add a comma after \, ! \,, indeed works beautifully for my purpose. And thanks for the list of possibilities for spaces of various sizes. 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] Problem with MkIV and TikZ picture remembering
On 3/8/2015 7:07 PM, Wolfgang Schuster wrote: Am 08.03.2015 um 18:39 schrieb Hans Hagen pra...@wxs.nl: On 3/8/2015 1:04 PM, Wolfgang Schuster wrote: Am 08.03.2015 um 12:55 schrieb Hans Hagen pra...@wxs.nl mailto:pra...@wxs.nl: On 3/8/2015 12:26 PM, Wolfgang Schuster wrote: Am 08.03.2015 um 11:11 schrieb Hans Hagen pra...@wxs.nl mailto:pra...@wxs.nl mailto:pra...@wxs.nl: this should help: \unexpanded\def\writeviatex#1#2% {\ifx\normalwrite\relax\else % the \detokenize makes sure we don't expand \noexpanded macros \normalwrite#1{\detokenize{#2}}% \fi} (in future version i might replace write completely) Only partially because the saved positions from \pdfsavepos are wrong. in what sense wrong? Content of the external file from MkIV (the entries on the first page show 0 and the values on page 2 and 3 are always the same): 1:0:0 2:0:0 3:4661756:45255023 4:4661756:45255023 5:4661756:45255023 6:4661756:45255023 Content of the external file from MkII (different values for the first and second position on each page): 1:6526435:46204089 2:4661756:45256000 3:6526435:46204089 4:4661756:45256000 5:6526435:46204089 6:4661756:45256000 ypositions can differ a bit because we use different fonts and so does the interlinespace But the values for both positions should be different which isn’t the case for MkIV and the first page saves 0 for the x and y positions. It's a side effect of expansion at the wrong time (where such primitives can return wrong values but at least they return something) but something like this works: \def\syst_write#1#2% {\ctxcommand{write(\number#1,\!!bs\normalunexpanded{#2}\!!es)}} \unexpanded\def\writeviatex#1#2% {\ifx\normalwrite\relax\else \normalwrite#1{#2}% \fi} -- - 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] Problem with MkIV and TikZ picture remembering
Am 08.03.2015 um 11:11 schrieb Hans Hagen pra...@wxs.nl: this should help: \unexpanded\def\writeviatex#1#2% {\ifx\normalwrite\relax\else % the \detokenize makes sure we don't expand \noexpanded macros \normalwrite#1{\detokenize{#2}}% \fi} (in future version i might replace write completely) Only partially because the saved positions from \pdfsavepos are wrong. begin example \newwrite\testwrite \immediate\openout\testwrite=\jobname-testwrite.tmp \parindent=1cm \starttext \indent\pdfsavepos\write\testwrite{1:\number\pdflastxpos:\number\pdflastypos} \noindent\pdfsavepos\write\testwrite{2:\number\pdflastxpos:\number\pdflastypos} \page \indent\pdfsavepos\write\testwrite{3:\number\pdflastxpos:\number\pdflastypos} \noindent\pdfsavepos\write\testwrite{4:\number\pdflastxpos:\number\pdflastypos} \page \indent\pdfsavepos\write\testwrite{5:\number\pdflastxpos:\number\pdflastypos} \noindent\pdfsavepos\write\testwrite{6:\number\pdflastxpos:\number\pdflastypos} \stoptext end example 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] Does a half-space or small space exist in ConTeXt?
Am 08.03.2015 um 12:24 schrieb Robert Blackstone blackstone.rob...@gmail.com: Hi all, I would like to use something like a half-space or small space in a situation where neither no space, nor a normal space is ideal. See the ME: - \usemodule[simplefonts] \setmainfont[Verdana] \setupbodyfont[10pt] \starttext On the third beat a 6th between bass and tenor, {\em \lohi{B}{g}}, moves to the octave {\em \lohi{A}{a} . \medskip On the third beat a 6th between bass and tenor, {\em \lohi{B}{g}} , moves to the octave {\em \lohi{A}{a}} . \stoptext Without a space after {\em \lohi{B}{g}}, the normal situation, the comma is too close to the B, (and the period too close to the A), suggesting some superscript. A normal space does not look nice (but if necessary I could live with it) Is there an intermediate size for a space somehow? You can use \thinspace or \, which is the short form of \thinspace. BTW. The context version of \medskip is \blank[medium]. 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] Problem with MkIV and TikZ picture remembering
On 3/8/2015 12:26 PM, Wolfgang Schuster wrote: Am 08.03.2015 um 11:11 schrieb Hans Hagen pra...@wxs.nl mailto:pra...@wxs.nl: this should help: \unexpanded\def\writeviatex#1#2% {\ifx\normalwrite\relax\else % the \detokenize makes sure we don't expand \noexpanded macros \normalwrite#1{\detokenize{#2}}% \fi} (in future version i might replace write completely) Only partially because the saved positions from \pdfsavepos are wrong. in what sense wrong? begin example \newwrite\testwrite \immediate\openout\testwrite=\jobname-testwrite.tmp \parindent=1cm \starttext \indent\pdfsavepos\write\testwrite{1:\number\pdflastxpos:\number\pdflastypos} \noindent\pdfsavepos\write\testwrite{2:\number\pdflastxpos:\number\pdflastypos} \page \indent\pdfsavepos\write\testwrite{3:\number\pdflastxpos:\number\pdflastypos} \noindent\pdfsavepos\write\testwrite{4:\number\pdflastxpos:\number\pdflastypos} \page \indent\pdfsavepos\write\testwrite{5:\number\pdflastxpos:\number\pdflastypos} \noindent\pdfsavepos\write\testwrite{6:\number\pdflastxpos:\number\pdflastypos} \stoptext end example 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 ___ -- - 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] Does a half-space or small space exist in ConTeXt?
Hi all, I would like to use something like a half-space or small space in a situation where neither no space, nor a normal space is ideal. See the ME: - \usemodule[simplefonts] \setmainfont[Verdana] \setupbodyfont[10pt] \starttext On the third beat a 6th between bass and tenor, {\em \lohi{B}{g}}, moves to the octave {\em \lohi{A}{a} . \medskip On the third beat a 6th between bass and tenor, {\em \lohi{B}{g}} , moves to the octave {\em \lohi{A}{a}} . \stoptext Without a space after {\em \lohi{B}{g}}, the normal situation, the comma is too close to the B, (and the period too close to the A), suggesting some superscript. A normal space does not look nice (but if necessary I could live with it) Is there an intermediate size for a space somehow? Thanks in advance. Bets 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] Problem with MkIV and TikZ picture remembering
Am 08.03.2015 um 12:55 schrieb Hans Hagen pra...@wxs.nl: On 3/8/2015 12:26 PM, Wolfgang Schuster wrote: Am 08.03.2015 um 11:11 schrieb Hans Hagen pra...@wxs.nl mailto:pra...@wxs.nl mailto:pra...@wxs.nl mailto:pra...@wxs.nl: this should help: \unexpanded\def\writeviatex#1#2% {\ifx\normalwrite\relax\else % the \detokenize makes sure we don't expand \noexpanded macros \normalwrite#1{\detokenize{#2}}% \fi} (in future version i might replace write completely) Only partially because the saved positions from \pdfsavepos are wrong. in what sense wrong? Content of the external file from MkIV (the entries on the first page show 0 and the values on page 2 and 3 are always the same): 1:0:0 2:0:0 3:4661756:45255023 4:4661756:45255023 5:4661756:45255023 6:4661756:45255023 Content of the external file from MkII (different values for the first and second position on each page): 1:6526435:46204089 2:4661756:45256000 3:6526435:46204089 4:4661756:45256000 5:6526435:46204089 6:4661756:45256000 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] Does a half-space or small space exist in ConTeXt?
On 03/08/2015 01:45 PM, Jörg Weger wrote: You can use \thinspace or \, which is the short form of \thinspace. But \thinspace aka \, is a non-breaking space, isn’t it? Hi Jörg, I didn’t know, but it seems to be. Is there a way to let it break a line if needed in certain circumstances or is there something else like a “non-non-breaking thinspace”? Well, I would call it a ”breaking thinspace”. Adding \hskp0pt enables the breaking. \starttext \hsize\zeropoint a\,b a\,\hskip0pt{}b \stoptext I hope it might 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] Does a half-space or small space exist in ConTeXt?
Thank you very much for that list. Greetings Jörg On 08.03.2015 13:58, Wolfgang Schuster wrote: Am 08.03.2015 um 13:45 schrieb Jörg Weger joerg73@googlemail.com: You can use \thinspace or \, which is the short form of \thinspace. But \thinspace aka \, is a non-breaking space, isn’t it? Is there a way to let it break a line if needed in certain circumstances or is there something else like a “non-non-breaking thinspace”? Are these enough? \starttext %\hsize\zeropoint \startlines a\enskip b a\quad b a\qquad b a\twoperemspace b a\threeperemspaceb a\fourperemspace b a\sixperemspace b a\figurespaceb a\punctuationspace b a\breakablethinspace b a\hairspace b a\zerowidthspace b \stoplines \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 ___ ___ 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] Does a half-space or small space exist in ConTeXt?
Hi Robert, All the suggestions you have received are good, but ultimately you might want to look at the spaces that Unicode provides, for example 202F. Not sure sure which Unicode space character best suits your needs, but once you have determined that, you can map it to one of the commands suggested by others, or even define it to the exact width you want. For example, I use imacron (U+012B) so much that it clashes with other characters. So I map it to an alternate version that has a thinner macron: \defineactivecharacter ī {\fontchar{imacron.alt}} So what you want is a unicode space character that you can enter in your editor, then define it in ConTeXt to exactly what you want. Best wishes Idris On Sun, 08 Mar 2015 05:24:51 -0600, Robert Blackstone blackstone.rob...@gmail.com wrote: Hi all, I would like to use something like a half-space or small space in a situation where neither no space, nor a normal space is ideal. See the ME: - \usemodule[simplefonts] \setmainfont[Verdana] \setupbodyfont[10pt] \starttext On the third beat a 6th between bass and tenor, {\em \lohi{B}{g}}, moves to the octave {\em \lohi{A}{a} . \medskip On the third beat a 6th between bass and tenor, {\em \lohi{B}{g}} , moves to the octave {\em \lohi{A}{a}} . \stoptext Without a space after {\em \lohi{B}{g}}, the normal situation, the comma is too close to the B, (and the period too close to the A), suggesting some superscript. A normal space does not look nice (but if necessary I could live with it) Is there an intermediate size for a space somehow? Thanks in advance. Bets 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 ___ -- Idris Samawi Hamid Professor of Philosophy Colorado State University Fort Collins, CO 80523 ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Does a half-space or small space exist in ConTeXt?
You can use \thinspace or \, which is the short form of \thinspace. But \thinspace aka \, is a non-breaking space, isn’t it? Is there a way to let it break a line if needed in certain circumstances or is there something else like a “non-non-breaking thinspace”? Greetings Jörg On 08.03.2015 12:35, Wolfgang Schuster wrote: Am 08.03.2015 um 12:24 schrieb Robert Blackstone blackstone.rob...@gmail.com: Hi all, I would like to use something like a half-space or small space in a situation where neither no space, nor a normal space is ideal. See the ME: - \usemodule[simplefonts] \setmainfont[Verdana] \setupbodyfont[10pt] \starttext On the third beat a 6th between bass and tenor, {\em \lohi{B}{g}}, moves to the octave {\em \lohi{A}{a} . \medskip On the third beat a 6th between bass and tenor, {\em \lohi{B}{g}} , moves to the octave {\em \lohi{A}{a}} . \stoptext Without a space after {\em \lohi{B}{g}}, the normal situation, the comma is too close to the B, (and the period too close to the A), suggesting some superscript. A normal space does not look nice (but if necessary I could live with it) Is there an intermediate size for a space somehow? You can use \thinspace or \, which is the short form of \thinspace. BTW. The context version of \medskip is \blank[medium]. 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] Does a half-space or small space exist in ConTeXt?
Am 08.03.2015 um 13:45 schrieb Jörg Weger joerg73@googlemail.com: You can use \thinspace or \, which is the short form of \thinspace. But \thinspace aka \, is a non-breaking space, isn’t it? Is there a way to let it break a line if needed in certain circumstances or is there something else like a “non-non-breaking thinspace”? Are these enough? \starttext %\hsize\zeropoint \startlines a\enskip b a\quad b a\qquad b a\twoperemspace b a\threeperemspaceb a\fourperemspace b a\sixperemspace b a\figurespaceb a\punctuationspace b a\breakablethinspace b a\hairspace b a\zerowidthspace b \stoplines \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] Does a half-space or small space exist in ConTeXt?
Am 08.03.2015 um 13:55 schrieb Robert Blackstone blackstone.rob...@gmail.com: On 8 Mar 2015, at 13:04 , Wolfgang Schuster schuster.wolfg...@gmail.com wrote 12:24 schrieb Robert Blackstone blackstone.rob...@gmail.com: Hi all, I would like to use something like a half-space or small space in a situation where neither no space, nor a normal space is ideal. You can use \thinspace or \, which is the short form of \thinspace. BTW. The context version of \medskip is \blank[medium]. Thanks Wolfgang. “\thinspace” works perfectly for my purpose. Oddly enough, \, gives no comma and a normal space, \. gives no period and no space with mkiv, and a superscript period with mkii. Could these forms for \thinspace perhaps be obsolete? I have no problem to use \, as a space command but when you use don’t put a space between the command and the following character. The \. command is used to create a accented character but it shouldn’t be needed when you have a keyword which allows you to write the character. \starttext a\,b\par a\thinspace b \blank[line] \.{c} \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 ___