[NTG-context] \definelayout[first] does not yield to default layout on page 2
First-page layout is an issue that I have asked about before, but maybe I am doing something wrong. Here is my question in an earlier thread: http://archive.contextgarden.net/message/20111228.041922.c60f9cd5.en.html . I want to define a layout for the first page of my document with different header and footer formatting -- specifically, no header and a large footer to hold publication information. Based on examples on Contextgarden and this list, I think my code below is correct. However, the first page formatting is continued on all pages of the document. The effect is the same when using \definelayout[first] and \definelayout[1]. %%--- setuppapersize[letter][letter] \setupindenting[yes, medium] \setuplayout [width=middle, backspace=15mm, topspace=10mm, height=254mm, header=10mm, % normal header headerdistance=5mm, footer=5mm, footerdistance=5mm, grid=yes] \definelayout [first] [width=middle, backspace=15mm, topspace=10mm, height=254mm, header=0mm, % no header headerdistance=0mm, footer=25mm, % big footer footerdistance=5mm, grid=yes] \definecolumnset[body][n=2,balancing=yes] \setupheadertexts [This is a header] [pagenumber] [pagenumber] [Some text] \setupfootertexts [footer] [footer] [footer] [footer] \starttext \startcolumnset[body] \dorecurse{20}{\input tufte\par} \stopcolumnset \stoptext %%--- Thanks, -- Peter Park Nelson peter.park.nel...@gmail.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] "overscored" or "overlined" text … (or whatever it should be called)
On Thu, 26 Jan 2012, Philipp A. wrote: 2012/1/25 Aditya Mahajan Better is to use: \StrikeMeFrame{\mathsurround\zeropoint$#1$}. But for this to work in subscripts and superscripts, you must use math palette. IIRC, \mframed does that. In principle: \mframed[background=strikeme]{**...} should work (untested). @Hans: Can we have \definemframed etc as well? Aditya so this should work? ‒ \startuniqueMPgraphic{strikeme} path p ; p := OverlayBox topenlarged -ExHeight bottomenlarged -ExHeight ; draw llcorner p -- urcorner p withcolor OverlayColor ; \stopuniqueMPgraphic \defineoverlay[strikeme][\uniqueMPgraphic{strikeme}] \def\strike#1{% \ifmmode% \mframed[background=strikeme,frame=off]{#1}% \else% \inframed[background=strikeme,frame=off]{#1}% \fi} \starttext \startformula {\strike2a + \strike ab \over \strike a} = a \stopformula Works in text, \strike{two}too! \stoptext Don't use {... \over ...} as it will mess up the calculation of math style. \frac{...}{...} is more robust. 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 ___
Re: [NTG-context] "overscored" or "overlined" text … (or whatever it should be called)
2012/1/25 Aditya Mahajan > Better is to use: \StrikeMeFrame{\mathsurround\zeropoint$#1$}. But for > this to work in subscripts and superscripts, you must use math palette. > IIRC, \mframed does that. In principle: > > \mframed[background=strikeme]{**...} > > should work (untested). > > @Hans: Can we have \definemframed etc as well? > > Aditya > so this should work? ‒ \startuniqueMPgraphic{strikeme} path p ; p := OverlayBox topenlarged -ExHeight bottomenlarged -ExHeight ; draw llcorner p -- urcorner p withcolor OverlayColor ; \stopuniqueMPgraphic \defineoverlay[strikeme][\uniqueMPgraphic{strikeme}] \def\strike#1{% \ifmmode% \mframed[background=strikeme,frame=off]{#1}% \else% \inframed[background=strikeme,frame=off]{#1}% \fi} \starttext \startformula {\strike2a + \strike ab \over \strike a} = a \stopformula Works in text, \strike{two}too! \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] why no smallcaps?
Am 25.01.2012 um 23:12 schrieb Steffen Wolfrum: > Hi, > > whats wrong with this code? > > "Times New Roman.ttf" states to be an otf font. > > But the "\sc" gives no Times New Roman: The font has now smcp feature and the setting is ignored. Here is the info list from my system: mtx-fonts | mapping : timesnewromanpsmt mtx-fonts | fontname: timesnewromanpsmt mtx-fonts | fullname: timesnewroman mtx-fonts | filename: /Library/Fonts/Microsoft/Times New Roman.ttf mtx-fonts | family : timesnewroman mtx-fonts | weight : normal mtx-fonts | style : normal mtx-fonts | width : normal mtx-fonts | variant : normal mtx-fonts | subfont : mtx-fonts | fweight : conflict: book mtx-fonts | mtx-fonts | gpos features: mtx-fonts | mtx-fonts | feature script languages mtx-fonts | mtx-fonts | kern cyrl dflt mtx-fonts | grek dflt mtx-fonts | latn dflt lth mtx-fonts | mark arab dflt urd mtx-fonts | cyrl dflt mtx-fonts | grek dflt mtx-fonts | hebr dflt mtx-fonts | latn dflt lth mtx-fonts | mkmk arab dflt urd mtx-fonts | cyrl dflt mtx-fonts | grek dflt mtx-fonts | latn dflt lth mtx-fonts | mtx-fonts | gsub features: mtx-fonts | mtx-fonts | feature script languages mtx-fonts | mtx-fonts | anum arab URD dflt mtx-fonts | ccmp arab dflt urd mtx-fonts | grek dflt mtx-fonts | hebr dflt mtx-fonts | latn dflt lth mtx-fonts | dlig hebr dflt mtx-fonts | fina arab dflt urd mtx-fonts | init arab dflt urd mtx-fonts | isol arab dflt urd mtx-fonts | liga arab dflt urd mtx-fonts | locl arab urd mtx-fonts | latn lth mtx-fonts | medi arab dflt urd mtx-fonts | rlig arab dflt urd mtx-fonts | tcom all all mtx-fonts | tlig all all mtx-fonts | trep all all Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] why no smallcaps?
Hi, whats wrong with this code? "Times New Roman.ttf" states to be an otf font. But the "\sc" gives no Times New Roman: \definefontfeature[default][default] [mode=node,script=latn,smcp=yes] \definefontfeature[smcp][mode=node,smcp=yes] \unexpanded\def\sc{\addfs{smcp}} \starttypescript [serif] [TimesNewRomanPSMT] [name] \setups[font:fallback:sans] \definefontsynonym [Serif] [file:Times New Roman.ttf] [features=default] \definefontsynonym [SerifBold] [file:Times New Roman Bold.ttf] [features=default] \definefontsynonym [SerifItalic][file:Times New Roman Italic.ttf] [features=default] \definefontsynonym [SerifBoldItalic][file:Times New Roman Bold Italic.ttf][features=default] \stoptypescript \starttypescript[TheTimes] \definetypeface [TheTimes] [rm] [serif] [TimesNewRomanPSMT] [default] \stoptypescript \usetypescript[TheTimes] \setupbodyfont[TheTimes, 10pt]\setupinterlinespace[line=12pt] \starttext \sc{Name} \stoptext --- Steffen ___ 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] PI Number.
Dear all, Few months ago a PI letter surrounded with developed pi numbers in spherical case has been noticed in one Context publication. I would be very pleased if anyone knows in which document it is or how can I design set of numbers or text in spherical shape. Thank You very much in advance. Janez ___ 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 sort a list of content by chaptertitle
Hallo, Does anybody have a receipe for sorting a list of content by chapter title in stead of by chapternumber?? Or alternatively is there a way to use a manually sorted book.tui file in the compile cycle of a book? Thanks Jan de Kruyf. ___ 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] "overscored" or "overlined" text … (or whatever it should be called)
On Wed, 25 Jan 2012, Wolfgang Schuster wrote: Am 25.01.2012 um 20:20 schrieb Philipp A.: 2012/1/25 Hans Hagen \ifmmode thanks. that was obvious… $\StrikeMe{x}$ unfortunately this does the same as my tikz version: it exits math mode: $\StrikeMe{\ifmmode math mode! \else no math mode :( \fi} \ifmmode math mode. \else wat \fi$ returns no math mode :( math mode. \framed puts the content in a \hbox and when you put a \hbox in a math environment the text in the box is typeset in text mode, this feature is used for the \text command. To get now the content of the \StrikeMe command in math mode a different definition. \defineframed[StrikeMeFrame][background=strikeme,frame=off,offset=0pt,location=low,backgroundcolor=blue] \define[1]\StrikeMe {\ifmmode \StrikeMeFrame{$#1$}% \else \StrikeMeFrame{#1}% \fi} Better is to use: \StrikeMeFrame{\mathsurround\zeropoint$#1$}. But for this to work in subscripts and superscripts, you must use math palette. IIRC, \mframed does that. In principle: \mframed[background=strikeme]{...} should work (untested). @Hans: Can we have \definemframed etc as well? 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 ___
Re: [NTG-context] "overscored" or "overlined" text … (or whatever it should be called)
Am 25.01.2012 um 20:20 schrieb Philipp A.: > 2012/1/25 Hans Hagen > \ifmmode > > thanks. that was obvious… > > $\StrikeMe{x}$ > > unfortunately this does the same as my tikz version: it exits math mode: > > $\StrikeMe{\ifmmode math mode! \else no math mode :( \fi} \ifmmode math mode. > \else wat \fi$ > > returns > > no math mode :( math mode. \framed puts the content in a \hbox and when you put a \hbox in a math environment the text in the box is typeset in text mode, this feature is used for the \text command. To get now the content of the \StrikeMe command in math mode a different definition. \defineframed[StrikeMeFrame][background=strikeme,frame=off,offset=0pt,location=low,backgroundcolor=blue] \define[1]\StrikeMe {\ifmmode \StrikeMeFrame{$#1$}% \else \StrikeMeFrame{#1}% \fi} 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] "overscored" or "overlined" text … (or whatever it should be called)
2012/1/25 Hans Hagen > \ifmmode > thanks. that was obvious… $\StrikeMe{x}$ > unfortunately this does the same as my tikz version: it exits math mode: $\StrikeMe{\ifmmode math mode! \else no math mode :( \fi} \ifmmode math mode. \else wat \fi$ returns no math mode :( *mathmode.* ___ 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] formulas (display math) and grid
On Wed, Jan 25, 2012 at 2:16 AM, Wolfgang Schuster wrote: > > Am 25.01.2012 um 07:13 schrieb Peter Park Nelson: > >> I have a layout using a columset and grid. When I insert a formula >> into a column of text, the text following the formula is not snapped >> to the grid, and the next paragraph is not indented. How can I make >> the text return to the grid after a formula? > > Can you provide a full minimal example and not only a snipped? > >> And have normal paragraph indentation? > > \setupformulas[indentnext=yes] > > 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 > ___ Oops, I figured it out while putting together the minimal example -- I had set the grid tolerance to "verytolerant" while testing. A good reason to always make an MWE before asking. Thanks for responding, PPN -- Peter Park Nelson peter.park.nel...@gmail.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] "overscored" or "overlined" text … (or whatever it should be called)
On 25-1-2012 18:04, Philipp A. wrote: while we are at it: how to do do strikethrough text? there is a changelog on contextgarden which says it was added, but \strike or \strikethrough are not defined. i have (a diagonal) one here, but it doesn’t really work in math mode (the text inside is normal). that being said, is there something like \ifthiswascalledinmathmode{then}{else}? \ifmmode \def\strike#1{\tikz[baseline=(c.base)]{ \node[inner sep=0pt] (c) {#1}; \draw (c.south west) -- (c.north east); }} probably more efficient: \startuniqueMPgraphic{strikeme} path p ; p := OverlayBox topenlarged -ExHeight bottomenlarged -ExHeight ; draw llcorner p -- urcorner p withcolor OverlayColor ; \stopuniqueMPgraphic \defineoverlay[strikeme][\uniqueMPgraphic{strikeme}] \defineframed[StrikeMe][background=strikeme,frame=off,offset=0pt,location=low,backgroundcolor=blue] \starttext \dorecurse{100}{test \StrikeMe{now \recurselevel} test $\StrikeMe{x}$ test \StrikeMe{$x$} test } \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] "overscored" or "overlined" text … (or whatever it should be called)
while we are at it: how to do do strikethrough text? there is a changelog on contextgarden which says it was added, but \strike or \strikethrough are not defined. i have (a diagonal) one here, but it doesn’t really work in math mode (the text inside is normal). that being said, is there something like \ifthiswascalledinmathmode{then}{else}? \def\strike#1{\tikz[baseline=(c.base)]{ \node[inner sep=0pt] (c) {#1}; \draw (c.south west) -- (c.north east); }} ___ 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] math error in ConTeXt?
On 25-1-2012 17:29, Meer, H. van der wrote: Of these two variants the second works. The first gives as error an old enemy: the \Umathquad error % gives an error: \startsetups[test] $\displaystyle a=1 $ \stopsetups \setup[test] \stoptext % works: \starttext $$\displaylines{a=1\cr b+c+d=3\cr}$$ \stoptext ConTeXt ver: 2012.01.16 18:33 MKIV ! Math error: parameter \Umathquad\displaystyle is not set. \8>:test #1->$\displaystyle a=1$ Why this error? Because no font has been loaded and \starttext will load defaults. So best hav esomeghing \setupbodyfont[whatever-you-want] \startext \stoptext Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] math error in ConTeXt?
Of these two variants the second works. The first gives as error an old enemy: the \Umathquad error % gives an error: \startsetups[test] $\displaystyle a=1 $ \stopsetups \setup[test] \stoptext % works: \starttext $$\displaylines{a=1\cr b+c+d=3\cr}$$ \stoptext ConTeXt ver: 2012.01.16 18:33 MKIV ! Math error: parameter \Umathquad\displaystyle is not set. \8>:test #1->$\displaystyle a=1$ Why this error? Hans van der Meer ___ 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] \definevimtyping[...][escape=on]
On Wed, 25 Jan 2012, Peter Münster wrote: Hello, Which context version does support \definevimtyping[...][escape=on] ? I've tested 2011.09.27 and 2012.01.25 without success... 2context.vim is missing from the latest zip for t-vim. I will upload a new version; in the mean while, please download 2context.vim from github. Sorry about that. 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] \definevimtyping[...][escape=on]
Hello, Which context version does support \definevimtyping[...][escape=on] ? I've tested 2011.09.27 and 2012.01.25 without success... TIA for any help! -- Peter ___ 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] "overscored" or "overlined" text … (or whatever it should be called)
On 25-1-2012 13:14, Robert Blackstone wrote: Dear all, I am trying to reproduce with ConTeXt an old french text that contains numerous abbreviations, mostly of two types: - words cut off by means of a "period", with the last letter of the complete word as a superscript above the period. - "overscores" --either for single characters, for instance in words with double consonances, like "comme". One of these is sometimes omitted and replaced by an "overscore" on the previous vowel -- or on an entire abbreviation, such as "coe" for "comme" and "nre" for "notre"; they become coe and nre overscored. \overbar{test} btw, never do a \setupframed globally as it will infect many derived frames components ... best do a \defineframed ... then Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] "overscored" or "overlined" text … (or whatever it should be called)
Dear all, I am trying to reproduce with ConTeXt an old french text that contains numerous abbreviations, mostly of two types: - words cut off by means of a "period", with the last letter of the complete word as a superscript above the period. - "overscores" --either for single characters, for instance in words with double consonances, like "comme". One of these is sometimes omitted and replaced by an "overscore" on the previous vowel -- or on an entire abbreviation, such as "coe" for "comme" and "nre" for "notre"; they become coe and nre overscored. Now I would like to reproduce these as closely as possible. For the "period + superscript letter" I found a solution: \lohi[]{\cdot}{t} (for superscript t), nearly perfect. The only imperfection I can see is that the dot sits slightly below the baseline. Is there a way to get it on the baseline? The overscore on a single character presents no problem. For an overscore on a complete word I have not found a solution. Three individual overscores on a three-letter word give a broken line; I do not know how to merge the three line components. (Incidentally, this hack does not work with mkiv) The other solution I have tried is to put the word in a frame with a top-frame only. But this way the word (abbreviation) hangs underneath the base-line. Using \inframed instead of \framed makes no difference. There appears not to be something like \setupinframed. I have attached an example. Thanks in advance for any help. Regards, Robert Blackstone overscore-test1.tex Description: Binary data ___ 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] formulas (display math) and grid
Am 25.01.2012 um 07:13 schrieb Peter Park Nelson: > I have a layout using a columset and grid. When I insert a formula > into a column of text, the text following the formula is not snapped > to the grid, and the next paragraph is not indented. How can I make > the text return to the grid after a formula? Can you provide a full minimal example and not only a snipped? > And have normal paragraph indentation? \setupformulas[indentnext=yes] 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 ___