[NTG-context] Mobilephone Symbol
Hello Everyone, The following minimum example only produces the symbols for Neptune and Letter. Mobilephone and phone don't work. Am I doing something wrong? --- %\usesymbols[symb-imp-mvs] \usesymbols[mvs] \starttext %\showsymbolset \symbol[martinvogel 2][Mobilephone] \symbol[martinvogel 2][Letter] \symbol[martinvogel 2][Phone] \symbol[astronomic][Neptune] \stoptext --- Many thanks for any suggestions. -- Devendra Ghate ___ 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] Mobilephone Symbol
Thank you so much. Following works. --- \symbol[martinvogel 2][Mobilefone] \symbol[martinvogel 2][Telephone] --- But this doesn't work. -- \symbol[martinvogel 2][Mobilephone] \symbol[martinvogel 2][Telefon] -- Regards, Devendra Ghate On Mon, May 12, 2014 at 06:49:07PM +0200, Mikael P. Sundqvist wrote: In symb-imp-mvs.mkiv, there is a (note the spelling!) \definesymbol [Mobilefone] [\MartinVogelSymbol{Mobilefone}] and \definesymbol [Telephone] [\MartinVogelSymbol{Telefon}] I don't know if that helps, but it is a(ny) suggestion. /Mikael On Mon, May 12, 2014 at 6:35 PM, Devendra Ghate devendra.gh...@gmail.com wrote: Hello Everyone, The following minimum example only produces the symbols for Neptune and Letter. Mobilephone and phone don't work. Am I doing something wrong? --- %\usesymbols[symb-imp-mvs] \usesymbols[mvs] \starttext %\showsymbolset \symbol[martinvogel 2][Mobilephone] \symbol[martinvogel 2][Letter] \symbol[martinvogel 2][Phone] \symbol[astronomic][Neptune] \stoptext --- Many thanks for any suggestions. -- Devendra Ghate ___ 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 ___ -- Devendra Ghate ___ 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] Centering tabulate env. using \setuptabulate
I expect follow MWE to produce a centered table. But it does not. Am I making any obvious mistake. --- \definetabulate[centeredTable][|r|l|] \setuptabulate [centeredTable] [align={middle}] \starttext \startcenteredTable \HL \NC I want this table \NC aligned in the center.\NR \HL \stopcenteredTable \stoptext This also *doesn't* work. --- \setuptabulate [align={middle}] \starttext \starttabulate[|r|l|] \HL \NC I want this table \NC aligned in the center.\NR \HL \stoptabulate \stoptext -- Devendra Ghate ___ 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] Macro expansion inside \type
Hello Everyone, Consider the following MWE: \define\author{Devendra Ghate} \starttext \type{\author} \stoptext As mentioned on the wiki, this doesn't expand `\author` but rather prints it as it is. However, I would like `\author` to be expanded before it is typeset. Is this possible? Regards, Devendra Ghate ___ 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] White Space after \startalign
Dear all, I have noticed a new problem in the \startalign environment recently. \startalign adds whitespace after the formula. If I remove the *\NR* from the last equation then the white space disappears. But I need to keep it for numbering the last equation. In any case, I thought that the last *\NR* is required in the *math align* environment. I remember getting errors for not including the last \NR when I was just starting out with ConTeXt. May be something has changed or my memory is not quite what I thought it was. Please let me know if I am making a silly mistake. Thank you for your time in advance. *MWE* \starttext¬ Some text before the equation.¬ \placeformula¬ \startformula \startalign¬ \NC a \NC= b\NR¬ \NC c \NC= d\NR[eq:trivial]¬ \stopalign \stopformula¬ Some text after the equation.¬ \stoptext¬ Regards, Devendra Ghate ___ 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] White Space after \startalign
On Mon, Apr 08, 2013 at 05:49:51PM +0200, Hans Hagen wrote: On 4/8/2013 1:21 PM, Devendra Ghate wrote: Dear all, I have noticed a new problem in the \startalign environment recently. \startalign adds whitespace after the formula. If I remove the *\NR* from the last equation then the white space disappears. But I need to keep it for numbering the last equation. In any case, I thought that the last *\NR* is required in the *math align* environment. I remember getting errors for not including the last \NR when I was just starting out with ConTeXt. May be something has changed or my memory is not quite what I thought it was. Please let me know if I am making a silly mistake. Thank you for your time in advance. a side effect of \startalign being math or text aware (lookahead issue in low level tex align) ... fixed in next upload Thank you Hans. Problem solved. Cheers, Devendra ___ 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] Unusual error in Math mode
On Tue, Apr 02, 2013 at 09:25:02AM +0200, Hans Hagen wrote: On 3/31/2013 5:27 PM, Aditya Mahajan wrote: On Sun, 31 Mar 2013, Devendra Ghate wrote: Hello Everyone, \starttext $ E [ w ] = 1 $ \stoptext produces Eaw]=1 using my context (current version: 2013.03.29 01:03). I can confirm this. The bug does not depend on the font used, so it appears to be something wrong with the mappings. But I don't have time to debug this right now. fixed .. was side effect of addition of configurable upright greek symbols Thank you 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 ___
[NTG-context] Unusual error in Math mode
Hello Everyone, \starttext $ E [ w ] = 1 $ \stoptext produces Eaw]=1 using my context (current version: 2013.03.29 01:03). Needless to say that the MWE works as expected on the Context live @ contextgarden. I have no clue as to how to go about debugging the problem. So did a fresh install in a different directory but still get exactly the same result. I will be grateful for any suggestions on how to identify the problem in my context installation. -- Cheers, Devendra ___ 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] setups in the latest Context release
Hello Everyone I have been using the following setup (provided by Wolfgang on this list) to format my chapter headings till now. However, it does not work since I upgraded by context installation today. If the entire *\startlinealignment \stoplinealignment* block is copied outside the setups then it works fine. So the change must have been in the interface for *setups*. Please let me know if there has been a change OR I have made some kind of mistake. Thank you, Devendra Ghate - \startsetups[head:margin] \startlinealignment[left] \startframed [width=1cm, height=3cm, frame=on, align={flushleft,nothyphenated,verytolerant,low}] \headtextcontent \stopframed % \inmargin[location=outer,align={right}]{% \framed[% width=3cm, height=3cm, align={bottom,middle}, frame=on]{\headnumbercontent} } \stoplinealignment \stopsetups \defineheadalternative[margin][renderingsetup=head:margin] \definehead[dchapter][chapter] \setuphead[dchapter][alternative=margin] \starttext \dchapter{Inexpensive Monte Carlo} \stoptext -- Cheers, Devendra. ___ 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] Arranging framed text without gaps
On 03/01/2013 04:30 AM, Marco Patzer wrote: On 2013--02--28 Matthias Weber wrote: -- without gaps between horizontal rows -- with text centered in the frames also in MkIV? See Adityas answer for how to fix your current code. -- achieve the desired layout (exact dimensions, frames, no gaps) the right way, There is no right way. Here's how I would approach that: \usemodule [database] \definefont [MyBigFont] [Serif at 24pt] \defineseparatedlist [MyTable] [before=\bTABLE, after=\eTABLE, first=\bTR, last=\eTR, left=\bTD, right=\eTD, setups=my:table] \startsetups [my:table] \setupTABLE [split=yes, width=5cm, height=4cm, style=MyBigFont] \setupTABLE [each] [align={middle,lohi}] \stopsetups \starttext \startMyTable Jim, Mary , John Patsy , Bob , Linda Mike , Babsy , Bill Liz, Dave , Jenny Dick , Sue , Chuck Maggie , Joe , Dolley Tom, Lisa , Chris Nancy , Paul , Betty \stopMyTable \stoptext Marco This looks really clean. I wish I had known about this neat trick while working on my thesis. I guess this is the difference between a novice user and an expert user of ConTeXt. Thank you Marco, Devendra ___ 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] How to make all heads \ss?
On 02/22/2013 01:31 PM, Wolfgang Schuster wrote: Am 22.02.2013 um 08:40 schrieb Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz: Hello, is there a way how to change all heads style, e.g. to sans? This doesn't work for me: \setupheads[style=\ss] \starttext \section{Abc} Def \stoptext TIA. This doesn’t work because chapter, section etc. have a individual style which is used instead of the global setting. \setuphead[chapter][style=\ssc] \setuphead[section][style=\ssa] Wolfgang A slightly more verbose alternative which I have been using is: \definehead [chapter] [section] \setuphead [chapter] [section] [style=\ss] \setuphead [chapter] [style=\tfb] \setuphead [section] [style=\tfx] \starttext \chapter{Chapter} \section{Section} \stoptext Is this not recommended? Regards, Devendra ___ 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 ___
[NTG-context] extras in \cite
Hello Everyone, A while back Aditya provided a patch for using *alternative=authornum* in *\cite*. The patch adds et al. for the cases with more than two authors. I have been using it without a hitch since then. However, today I tried to use *extras* option with this patch and it won't work. The MWE works for *alternative=apa* and *alternative=num* Please let me know if this can be rectified. Regards, Devendra *MWE* \setupbibtex[database={bib}] \unprotect \def\dobibauthornumref#1% {\bibinsertrefsep \doifbibreferencefoundelse{#1} {\begingroup \cite[left=,right=,alternative=author][#1]% \bibalternative\c!inbetween \cite[num][#1]% \endgroup} {}} \protect \starttext \cite[alternative=authornum,extras={,\S 5.1}][citation1] \placepublications \stoptext --- bib.bib --- @article{citation1, title = {Kernel independent component analysis}, author = {Bach, F. R. and Jordan, M. I.}, journal = {Journal of {M}achine {L}earning {R}esearch}, volume = {3}, pages = {1-48}, year = {2002}, } ___ 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] Big double quotes
Hello, I am trying to reproduce as closely as possible the large double quotes in the attached file. Though the actual glyph of the double quotes is not important for me (I have gone through the glyphs for CM without any success!), I would like to keep the double quotes large to attract attention to the quote. So I have essentially two problems: 1. Get a close enough glyph. I tried standard double quotes and also tried to use ′′ (U+02033) with context name *m: doubleprime*. But it doesn't produce anything. Please let me know if I am doing anything wrong. 2. Whatever may be the glyph, make is large. I have tried *\quotation* environment but it enlarges the text as well. I didn't see any option for enlarging *only* the quotation marks in *typo-del.mkiv*. So I tried to enlarge them myself. However, this leaves a large interlinespace before the last sentence. I would be grateful for any suggestions though outright solutions won't go remiss. Devendra *MWE* \setupdelimitedtext [quotation] [style={\tfc}] \definefont [quotesStyle] [Serif at 20pt] \starttext %\getnamedglyphdirect{modern}{m: doubleprime} %\getnamedglyphdirect{modern}{second} {\quotesStyle \symbol[leftquotation]}This would be interesting.This would be interesting.This would be interesting.This would be interesting.This would be interesting.This would be interesting.This would be interesting.This would be interesting.This would be interesting.{\quotesStyle \symbol[rightquotation]} \blank \startquotation This is would be interesting. \stopquotation \stoptext attachment: quote-block-example.png___ 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] Big double quotes
On 02/11/2013 11:29 PM, Marco Patzer wrote: On 2013--02--11 Devendra Ghate wrote: I am trying to reproduce as closely as possible the large double quotes in the attached file. Here are two solutions, one uses the delimitedtext mechanism. The quotation marks are not printed within the quoted text, though. The second solution using the annotation module fixes that. \usemodule [annotation] \definesymbol [MyLeftQuote] [\raisebox-10pt\hbox\bgroup\getscaledglyph {2.5} %% scale {Serif} %% font {}\egroup] \definesymbol [MyRightQuote] [\raisebox-10pt\hbox\bgroup\getscaledglyph {2.5} %% scale {Serif} %% font {}\egroup] \setupdelimitedtext [quotation] [left={\symbol[MyLeftQuote]}, right={\symbol[MyRightQuote]}] \defineannotation [quotationTwo] [alternative=command, command=\QuotationCmd] \define[2]\QuotationCmd {\dontleavehmode\symbol[MyLeftQuote]%% \placeannotationcontent\symbol[MyRightQuote]} There is an extra space before the right quote. So I added *\hskip-5pt* before \symbol[MyRightQuote]. Thank you for the solution. Regards, Devendra \starttext \startquotation \input ward \stopquotation \startquotationTwo \input ward \stopquotationTwo \stoptext Marco ___ 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] margin notes in MKIV (doublesided pages)
On 02/09/2013 06:51 AM, Alan Bowen wrote: I need margin notes in a doublesided page environment in MKIV. The following: \setuppagenumbering[alternative=doublesided] \setupinmargin[location=both] \starttext \inmargin{n1}\input knuth\inmargin{note 1} \page \inmargin{n2}\input knuth\inmargin{note 2} \page \inmargin{n3}\input knuth\inmargin{note 4} \stoptext works in MKII. In MKIV, however, all the margin notes are on the left. So how can I get this right in MKIV? Alan Probably, \setupmargin[location=outer] should do the trick (*not tested*). I have been using \setupmargintext[margintext][location=outer] \margintext{Note 1} without a problem. Regards, Devendra PS: sidenotes style [http://wiki.contextgarden.net/Sidenotes_style] by Andy thomas uses this setup. ___ 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] Chapter headings macro
On 02/08/2013 06:43 PM, Wolfgang Schuster wrote: Am 08.02.2013 um 07:31 schrieb Devendra Ghate devendra.gh...@gmail.com: Hello everyone, I have defined a macro for the chapter layouts -- nothing fancy, but still it is giving me trouble. Essentially, I call this macro using *command=* in *\setuphead*. My philosophy was to add all the details in the macro, so that I don't have to call anyother keyvalue pairs in *\setuphead*. However, the macro gives two different results when called for typesetting a chapter heading by ConTeXt internals and explicitly by me in the document (see attached file). I don't know why the chapter number font style is not obeyed. If I add *numberstyle=dfont* in *\setuphead*, then the font size is increased but the frame size has spurious space at top and bottom. When I call the macro myself, there is a single whitespace before the chapter heading (as can be seen in the attached file). I have gone through the wiki as much as possible and I think that I could have easily copied *much better* heading styles from it. But I do not want to use code that I don't fully understand. Any suggestions/help will be most appreciated. \definefont [ChaperNumberStyle][Serif at 60pt] \definecolor[ChaperNumberColor][x=d8dcd6] \startsetups[head:devendra] \startlinealignment[left] \startframed [frame=on, rulethickness=3pt, framecolor=ChaperNumberColor, foregroundcolor=ChaperNumberColor, corner=00] \hspace[big]\headnumbercontent \stopframed \hspace[big] \startframed [width=.1\textwidth, strut=no, frame=on, align={flushleft,nothyphenated,verytolerant}] \headtextcontent \stopframed \stoplinealignment \stopsetups \defineheadalternative[devendra][renderingsetup=head:devendra] \setuphead [chapter] [alternative=devendra, numberstyle=ChaperNumberStyle, textstyle={\tfc\kap\kerncharacters[.5]}] \starttext \chapter{Introduction to thesis} \stoptext Wolfgang _ Thank you Wolfgang. I guess this is the proper ConTeXt way. Presumably I will have to define a plain set up for unnumbered chapters like bibliographies and call *\setuphead[chapter][alternative=plain]* for these chapters. Devendra __ 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 ___
[NTG-context] How to scale fonts?
Hello, I want to use truly huge (40pt) fonts for chapter numbers. In my latex code, I used \newfont{\chapterNumber}{pplr9d scaled 7000} From the context manual, I thought that \definebodyfont [11pt] [rm] [ tfH=cmr12 scaled 7000] should do it. Though the above code doesn't throw any errors, it doesn't do anything. What am I doing wrong? *MWE* \definebodyfont [11pt] [rm] [ tfH=cmr12 scaled 7000] \starttext {\tfH 1} \stoptext Devendra ___ 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 scale fonts?
On 02/07/2013 03:21 PM, Marco Patzer wrote: On 2013--02--07 Devendra Ghate wrote: I want to use truly huge (40pt) fonts for chapter numbers. In my latex code, I used \newfont{\chapterNumber}{pplr9d scaled 7000} From the context manual, I thought that \definebodyfont [11pt] [rm] [ tfH=cmr12 scaled 7000] should do it. Though the above code doesn't throw any errors, it doesn't do anything. What am I doing wrong? *MWE* \definebodyfont [11pt] [rm] [ tfH=cmr12 scaled 7000] \definebodyfont [default] [tfH=cmr12 scaled 7000] works for me. Or you can use: \definefont [TitleFont] [Serif at 40pt] \starttext \TitleFont FooBar \stoptext Marco I just updated by ConTeXt (ver: 2013.02.05 22:32 MKIV) and tried again. *\definefont* works but \definebodyfont [default] [tfH= cmr12 scaled 7000] still does not work and also wipes out definitions for \tfa \tfx etc. So {\tfa 1}{\tf 1}{\tfx 1} will just yield 111 Thank you, Devendra My MWE is: \definebodyfont [default] [tfH=cmr12 scaled 7000] \definefont [TitleFont] [Serif at 40pt] \starttext {\tfH 1}{\tf 1}{\tfx 1}\\ {\TitleFont 1. FooBar} \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 ___ ___ 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] Trademark symbols
Hello, In latex \textregistered gives the Regitered Trademark symbol. How do I get Trademark (TM) and Registered Trademark (encircled R) in ConTeXt? I will be using it with \high to get something like Simulink^® http://www.mathworks.in/products/simulink/ Regards, Devendra ___ 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] Chapter headings macro
Hello everyone, I have defined a macro for the chapter layouts -- nothing fancy, but still it is giving me trouble. Essentially, I call this macro using *command=* in *\setuphead*. My philosophy was to add all the details in the macro, so that I don't have to call anyother keyvalue pairs in *\setuphead*. However, the macro gives two different results when called for typesetting a chapter heading by ConTeXt internals and explicitly by me in the document (see attached file). I don't know why the chapter number font style is not obeyed. If I add *numberstyle=dfont* in *\setuphead*, then the font size is increased but the frame size has spurious space at top and bottom. When I call the macro myself, there is a single whitespace before the chapter heading (as can be seen in the attached file). I have gone through the wiki as much as possible and I think that I could have easily copied *much better* heading styles from it. But I do not want to use code that I don't fully understand. Any suggestions/help will be most appreciated. Regards, Devendra *MWE* \definefont [dfont] [Serif at 60pt] \definecolor[lightgrey][h=d8dcd6] \define[2]\dmaketitle{% \starttable[|r|r|] \NC \framed [frame=on, rulethickness=3pt, framecolor=lightgrey, foreground=color, foregroundcolor=lightgrey, corner=00, align=right] {\hspace[big]{\dfont#1}} \NC \framed [width=.1\textwidth, strut=no, frame=on, align={flushleft,nothyphenated,verytolerant}] {{\kap\kerncharacters[.5]\tfc#2}} \NR \stoptable } \setuphead [chapter] [command=\dmaketitle] %numberstyle=\dfont \starttext \chapter{Introduction to thesis} \dmaketitle{1}{Introduction to thesis} \stoptext attachment: Screenshot from 2013-02-08 11:53:14.png___ 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] Trademark symbols
On 02/07/2013 11:42 PM, Mari Voipio wrote: On Thu, Feb 7, 2013 at 12:40 PM, Devendra Ghate devendra.gh...@gmail.com wrote: How do I get Trademark (TM) and Registered Trademark (encircled R) in ConTeXt? I will be using it with \high to get something like Simulink® TM is high already, but with (R) you'll need that. This is what I ended up with years ago, before I went UTF-8 (that simplifies things quite a bit): (R), up high: \high{\registered} TM, default placement: {\trademark} TM, extra high up: \high{\trademark} I can't recall where I managed to find these in the end, but I remember that I really badly needed (R) for this: Teflon\high{\registered} :-) Thank you Marco and Mario. I ended up using the glyphs directly. Hope this helps, Mari ___ 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 ___
[NTG-context] Indentation in TOC
Hello, I am trying to indent my section/subsection etc. progressively. I am using *numbercommand* and added *hspace* before the numbers. But the section title is not moved to the right along with the section number and overlaps with it. I tried adding *loffset=2cm* (since all the options of *\framed* are valid for *setuplist*) also, but doesn't seem to have any effect. Please point out the mistake. Regards, Devendra *MWE* \definehspace[myem][2em] \def\secnum#1{\hspace[myem]#1} \setuplist [section] [numbercommand={\secnum}] \starttext \completecontent[alternative=c] \chapter{A} \section{B} \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] Indentation in TOC
On 02/05/2013 01:47 AM, Wolfgang Schuster wrote: Am 04.02.2013 um 21:11 schrieb Devendra Ghate devendra.gh...@gmail.com: Hello, I am trying to indent my section/subsection etc. progressively. I am using *numbercommand* and added *hspace* before the numbers. But the section title is not moved to the right along with the section number and overlaps with it. I tried adding *loffset=2cm* (since all the options of *\framed* are valid for *setuplist*) also, but doesn't seem to have any effect. Please point out the mistake. Regards, Devendra *MWE* \definehspace[myem][2em] \def\secnum#1{\hspace[myem]#1} \setuplist [section] [numbercommand={\secnum}] \setuplist[…][margin=2em] Wolfgang Thank you very much. Devendra ___ 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 ___
[NTG-context] Using num and authornum bibliography style simultaneously
Hi, I want to use *num* and *authornum* bibliiography style simultaneously in my document. \setuppublications[alternative=num] --- [1]. \setuppublications[alternative=num, refcommand=authornum] -- Author name [1]. So I have defined a macro as: \define[1]\citet{% \setuppublications[alternative=num, refcommand=authornum] \cite[#1] \setuppublications[alternative=num] } to give me the *authornum* format and default \cite behaviour is *num*. This works. However, I have a feeling that this is not the recommended way of doing things in ConTeXt. Do let me know. Regards, Devendra ___ 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] Using num and authornum bibliography style simultaneously
On 02/04/2013 11:13 AM, Devendra Ghate wrote: Hi, I want to use *num* and *authornum* bibliiography style simultaneously in my document. \setuppublications[alternative=num] --- [1]. \setuppublications[alternative=num, refcommand=authornum] -- Author name [1]. So I have defined a macro as: \define[1]\citet{% \setuppublications[alternative=num, refcommand=authornum] \cite[#1] \setuppublications[alternative=num] } to give me the *authornum* format and default \cite behaviour is *num*. This works. However, I have a feeling that this is not the recommended way of doing things in ConTeXt. Do let me know. Regards, Devendra After finding the bibliography manual for MkII, I realised that I should use \cite[alternative=authornum][] and \cite[alternative=num][]. Sorry for the spam, Devendra ___ 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] Possible inconsistency in the use of paragraphs in ConTeXt
On 02/01/2013 01:16 PM, Alain Delmotte wrote: Hi Wolfgang, Using MkIV, version 2013.01.24 i get an error about \defineparagraph: ! Undefined control sequence. system tex error on line 25 in file first.tex: Undefined control sequence ... [...] 24 25 \defineparagraph[german][setups=paragraph:german] 26 \defineparagraph[big] [setups=paragraph:double] [...] l.25 \defineparagraph [german][setups=paragraph:german] ? ! Emergency stop. Thanks for all the answers you, patiently, give to newbies. Regards, Alain Alain, Update MKIV. I had the same problem earlier. It works. Devendra Le 1/02/2013 04:58, Wolfgang Schuster a écrit : Am 31.01.2013 um 23:02 schrieb Keith J. Schultz keithjschu...@web.de mailto:keithjschu...@web.de: Hi Wolfgang, You do seem to understand what I am getting at! I purposely put paragraph in quotes. because the environment that I have suggest was one that had setups for bodyfont, color, indenting etc. and one can just like the headers have control over them. \startsetups[paragraph:german] \language[german] \stopsetups \startsetups[paragraph:double] \setupinterlinespace[big] \stopsetups \startsetups[paragraph:indenting] \setupindenting[yes,medium] \stopsetups \defineparagraph[german][setups=paragraph:german] \defineparagraph[big] [setups=paragraph:double] \defineparagraph[indent][setups=paragraph:indenting] \defineparagraph[red] [color=red] \defineparagraph[italic][style=italic] \setupwhitespace[line] \starttext \startparagraph \input reich \stopparagraph \startparagraph[german] \input reich \stopparagraph \startparagraph[big] \input reich \stopparagraph \startparagraph[indent] \input reich \stopparagraph \startparagraph[red] \input reich \stopparagraph \startparagraph[italic] \input reich \stopparagraph \stoptext Furthermore, you have stated on the on the 30th: ConTeXt provides also a paragraph environment but this add only tags when you export the document as XML or create a tagged PDF. The paragraphs (note the s) environment has a Hans already mentioned nothing to do with paragraphs, it just puts the content on columns where each column can con tai multiple paragraphs. The name for the environment is misleading because columns is already taken as name. Thank you anyway. I will look into creating what I need on my own. I already have an idea. Just need to figure out the implementation. You can use \definestartsetup or \definebuffer to create your own environments. 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 ___ ___ 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] Consistent Colors
I have been going through the concepts underlying pallet. I would like to define three basic colors in RGB. Then use various shades and tints of these basic three colors through out the document. Now the algorithm for getting various shades for RGB scheme is: Darker shades: Multiply each component by 1/4, 1/2, 3/4, etc. of its previous value, depending on how dark the color should be. Lighter tints: Calculate (1 - previous value), multiply that by 1/4, 1/2, 3/4, etc. and add that to the previous value. What I would like is a macro that is fed a color name and should define 3 shades above and below it. I have following problems: 1. How to get RGB values of an already defined color? If this is too involved then I can pass the RGB values to the macro as well. 2. How to create a loop and carry out the above arithmatic to create RGB values for various shades? Essentially the problem boils down to doing arithmetic calculations and creating loops in ConTeXt. Regards, Devendra MWE: -- \setupcolor[rgb] \definecolor[maroon][r=0.8, g=0.2, b=0.4] %\definecolorgroup %[maroon][rgb] %[0.9:0.6:0.7, %0.8:0.2:0.4, %0.4:0.1:0.2, %0.2:0.05:0.1] % A macro that generates three shades above and below the given color. % It is assumed here that the RGB values are also passed along with % the color name. \define[4]\generateColorGroup{ \definecolorgroup [#1] [#2:#3:#4] %\dimexpr#2/4:#3/4:#4/4] }% \generateColorGroup{maroon}{0.8}{0.2}{0.4} \starttext \showcolor \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] Consistent Colors
On 01/29/2013 01:41 PM, Devendra Ghate wrote: I have been going through the concepts underlying pallet. I would like to define three basic colors in RGB. Then use various shades and tints of these basic three colors through out the document. Now the algorithm for getting various shades for RGB scheme is: Darker shades: Multiply each component by 1/4, 1/2, 3/4, etc. of its previous value, depending on how dark the color should be. Lighter tints: Calculate (1 - previous value), multiply that by 1/4, 1/2, 3/4, etc. and add that to the previous value. What I would like is a macro that is fed a color name and should define 3 shades above and below it. I have following problems: 1. How to get RGB values of an already defined color? If this is too involved then I can pass the RGB values to the macro as well. 2. How to create a loop and carry out the above arithmatic to create RGB values for various shades? Essentially the problem boils down to doing arithmetic calculations and creating loops in ConTeXt. Regards, Devendra MWE: -- \setupcolor[rgb] \definecolor[maroon][r=0.8, g=0.2, b=0.4] %\definecolorgroup %[maroon][rgb] %[0.9:0.6:0.7, %0.8:0.2:0.4, %0.4:0.1:0.2, %0.2:0.05:0.1] % A macro that generates three shades above and below the given color. % It is assumed here that the RGB values are also passed along with % the color name. \define[4]\generateColorGroup{ \definecolorgroup [#1] [#2:#3:#4] %\dimexpr#2/4:#3/4:#4/4] }% \generateColorGroup{maroon}{0.8}{0.2}{0.4} \starttext \showcolor \stoptext --- I see now that this is a trivial question. Though I was not able to use a loop, I used \ctxlua{context(math expr.)} for floating point arithmetic. Devendra ___ 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] \thinrule in \margintext doesn't work
If \thinrule is used in \margintext, context gives error. \hairline works fine. *Details:* ConTeXt ver: 2013.01.10 01:04 MKIV fmt: 2013.1.13 *Error Message:* ! Undefined control sequence. system tex error on line 2 in file a.tex: Undefined control sequence ... 1 \starttext 2 \margintext{\thinrule A margintext with thinrule.} 3 %\margintext{\hairline A margintext with hairline.} 4 \stoptext 5 \thinrule -\strut \bgroup \edef \p_height {\directthinrulesparameter \c!hei... argument \thinrule A margintext with thinrule. \doifelsenothing #1-\edef \m_syst_string_one {#1 }\ifx \m_syst_string_one \e... \typo_margins_data_yes_indeed ...felsenothing {#3} \donefalse \donetrue \ifdo... l.2 ...text{\thinrule A margintext with thinrule.} **MWE** \starttext %\margintext{\thinrule A margintext with thinrule.} \margintext{\hairline A margintext with hairline.} \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 ___
[NTG-context] Can Tikz external library be used in Context?
Hi, Following MWE produces the error given below. I have been able to include other tikz libraries (arrows, decorations) successfully. *MWE* \usemodule[tikz] \usetikzlibrary{external} \starttext A \stoptext *Error* - ! Missing number, treated as zero. system tex error on line 1290 in file /home/deven/context/tex/texmf-modules/tex/generic/pgf/frontendlayer/tikz/libraries/tikzexternalshared.code.tex: Missing number, treated as zero ... 1280 \gdef\tikzexternal@activate@normal@dq{\let=\tikzexternal@normal@dq} 1281 \gdef\tikzexternal@activate@normal@sq{\let'=\tikzexternal@normal@sq} 1282 \gdef\tikzexternal@activate@normal@semic{\let;=\tikzexternal@normal@semic} 1283 \gdef\tikzexternal@activate@normal@and{\let=\tikzexternal@normal@and} 1284 \gdef\tikzexternal@activate@normal@dash{\let-=\tikzexternal@normal@dash} 1285 \catcode`\|=0 1286 \catcode`\\=12 1287 |xdef|tikzexternal@normal@backslash{\}% 1288 } 1289 { 1290 \catcode`\^^I=12 1291 \catcode`\$=12 1292 \catcode`\%=12 1293 \catcode`\#=12 1294 \gdef\tikzexternal@HASHchar{#} 1295 \gdef\tikzexternal@TABchar{^^I}\gdef\tikzexternal@PERCENTchar{%}\xdef\tikzexternal@DOLLARchar{$}} 1296 1297 % Creates the '/tikz/external/system call' command as string and 1298 % returns it into the (global!) macro #2. 1299 % #1: the image file name (as returned by 1300 % \tikzexternalgetnextfilename) to be read again ^ l.1290 \catcode`\^^ I=12 ___ 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] Can Tikz external library be used in Context?
On 01/24/2013 11:23 PM, Marco Patzer wrote: On 2013--01--24 Devendra Ghate wrote: \usemodule[tikz] \usetikzlibrary{external} Use brackets: \usetikzlibrary [external] \starttext A \stoptext This example works here with current version: 2013.01.24 16:47. Marco Just upgraded context installation( to 2013.01.24 16:47), corrected my MWE and I am still getting exactly the same error. I followed the guidelines from the wiki for upgrading: rsync -ptv rsync://contextgarden.net/minimals/setup/first-setup.sh . ./first-setup.sh --modules=all Is there any way of checking if my installation is correct? Regards, Devendra PS: Why didn't context throw an error when I made a mistake of using braces instead of brackets? In fact, I generated a flow chart in tikz using the arrows library like that. Everything worked fine. ___ 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 ___
[NTG-context] Equivalent commands for \big \Big etc. in mathmode
If I want to say that dy/dx is calculated at z then in latex I can write \frac{dy}{dx}\Big|_z The \Big is to scale | according to the size of the \frac. I am using newmat and amsl modules that have supported the native math mode commands till now. But context does not recognise \Big. What is the native context way of doing this? Regards, Devendra MWE (in case its needed)--- \usemodule[newmat] \usemodule[amsl] \starttext \startformula \frac{dy}{dx}\Big|_z \stopformula \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] Equivalent commands for \big \Big etc. in mathmode
On 01/23/2013 09:27 PM, Aditya Mahajan wrote: On Wed, 23 Jan 2013, Devendra Ghate wrote: If I want to say that dy/dx is calculated at z then in latex I can write \frac{dy}{dx}\Big|_z The \Big is to scale | according to the size of the \frac. I am using newmat and amsl modules that have supported the native math mode commands till now. But context does not recognise \Big. What is the native context way of doing this? Regards, Devendra MWE (in case its needed)--- \usemodule[newmat] \usemodule[amsl] \starttext \startformula \frac{dy}{dx}\Big|_z \stopformula \stoptext In MkIV, you don't need the newmat module and amsl module is deprecated in both MkII and MkIV. \starttext \startformula \left.\frac{dy}{dx}\right|_z \stopformula \stoptext Aditya Thanks Aditya. Need to read manuals more carefully. ___ 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] ToC - dots distance
On 01/24/2013 12:51 AM, Wolfgang Schuster wrote: Am 23.01.2013 um 20:10 schrieb ha...@wpb.cz: Hi, I need to change the default distance of dots in ToC using alternative c. Could anybody tell me, how can I achieve this? So it should look like this: default look: 1. First chapter ... 1 2. Second chapter ... 10 requested look: 1. First chapter . . . . . . . . . . 1 2. Second chapter . . . . . . . . . . 10 \definefiller [pavel] [alterntive=symbol, %method=global, width=1em, leftmargin=.5em, rightmargin=.5em] \setuplistalternative[c][filler={\filler[pavel]}] \starttext \completecontent[alternative=c] \chapter{First chapter} \chapter{Second chapter} \stoptext Wolfgang ___ Is that a complete MWE? It doesn't work on ConTeXt ver: 2013.01.10 01:04 MKIV. I get: --- ! Undefined control sequence. system tex error on line 1 in file a.tex: Undefined control sequence ... 1 \definefiller 2 [pavel] 3 [alterntive=symbol, 4 %method=global, Searching the wiki and mailing list also turned zero results for \definefiller. Regards, Devendra 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] ToC - dots distance
On 01/24/2013 01:35 AM, Wolfgang Schuster wrote: Am 23.01.2013 um 20:56 schrieb Devendra Ghate devendra.gh...@gmail.com: On 01/24/2013 12:51 AM, Wolfgang Schuster wrote: Am 23.01.2013 um 20:10 schrieb ha...@wpb.cz: Hi, I need to change the default distance of dots in ToC using alternative c. Could anybody tell me, how can I achieve this? So it should look like this: default look: 1. First chapter ... 1 2. Second chapter ... 10 requested look: 1. First chapter . . . . . . . . . . 1 2. Second chapter . . . . . . . . . . 10 \definefiller [pavel] [alterntive=symbol, %method=global, width=1em, leftmargin=.5em, rightmargin=.5em] \setuplistalternative[c][filler={\filler[pavel]}] \starttext \completecontent[alternative=c] \chapter{First chapter} \chapter{Second chapter} \stoptext Wolfgang ___ Is that a complete MWE? Yes. It doesn't work on ConTeXt ver: 2013.01.10 01:04 MKIV. You need a newer version, the command is new and provides a high level interface for the \leaders macro. This is some serious pace of development. I had just about installed context couple of weeks ago and already I need an update. Thank you. Devendra 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 ___
[NTG-context] Referencing a figure
I have written a macro to include figures. I pass the label name and the caption as the two arguments. But when I try to refer to the figure, it shows ??. Surely, my macro does not define the figure label as intended by me. What am I doing wrong? Also, while trying to debug this problem, I tried using *\version[temporary]* to see the labels as suggested in the Context manual (chapter on Cross References (page 207) of cont-ini.pdf). But it didn't show many the label of the figure. MWE: \useMPlibrary[dum] \unprotect \define[2]\dincludefigure{% \placefigure[fig:#1]{#2}{\externalfigure[dummy][width=10cm]}% }% \protect \starttext \dincludefigure{one}{A figure} I am refering to \in{Figure}[fig:one]. \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] Referencing a figure
On 01/22/2013 03:48 PM, Philipp Gesang wrote: Hi! ···date: 2013-01-22, Tuesday···from: Devendra Ghate··· I have written a macro to include figures. I pass the label name and the caption as the two arguments. But when I try to refer to the figure, it shows ??. Surely, my macro does not define the figure label as intended by me. What am I doing wrong? If you specify only one optional argument of \placefloat, then leftmost in the list is assumed, i.e. the location. To get around this, either specify a location or add empty brackets if you're content with the default: \define[2]\dincludefigure{% \placefigure[][fig:#1]{#2}{\externalfigure[dummy][width=10cm]}% }% Regards Philipp Thank you Philipp. Devendra Also, while trying to debug this problem, I tried using *\version[temporary]* to see the labels as suggested in the Context manual (chapter on Cross References (page 207) of cont-ini.pdf). But it didn't show many the label of the figure. MWE: \useMPlibrary[dum] \unprotect \define[2]\dincludefigure{% \placefigure[fig:#1]{#2}{\externalfigure[dummy][width=10cm]}% }% \protect \starttext \dincludefigure{one}{A figure} I am refering to \in{Figure}[fig:one]. \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 ___ ___ 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 ___
[NTG-context] Enable comments/highlighting in the output PDF
Hello everyone, I would like to create an output PDF file on which comments can be added by a reader for feedback. I do not know the settings to be applied in context to enable comments/highlighting of a section etc. in the generated PDF file. I am using free Adobe reader 9 on ubuntu presently. I have checked that adding comments works in this adobe reader for PDF files that have this enabled. Regards, Devendra ___ 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] Enable comments/highlighting in the output PDF
On 01/22/2013 11:45 PM, Martin Schröder wrote: 2013/1/22 Devendra Ghate devendra.gh...@gmail.com: I would like to create an output PDF file on which comments can be added by a reader for feedback. Use Adobe Acrobat and add that option to the PDF. Best Martin _ Dear Martin, Thank you for the pointer. Adobe Reader 9 (which is the latest version available for linux) does not allow this. However, Adobe Reader X (on windows) allowed comments and mark up straight away as no security settings are added while generation of the file. Regards, Devendra __ 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 ___
[NTG-context] Figure captions in margin
I am using a layout with wide right margin. For floats that are \textwidth wide, I can place captions in the margin using**\setupcaption[location=rightmargin,high/low]. However, for figures that are (*\textwidth+\marginwidth+\margindistance*) wide, I would like to *place the caption in the margin below the figure*. I have tried spacebefore=\vskip but it doesn't seem to do anything. Another option was to use default caption location (below the figure) and add \hspace before figure placement. None of these work as I am not able to make spacebefore do anything. *MWE* \setuplayout[width=5cm, height=13cm,rightmargin=5cm] \setupexternalfigures[option=empty] \setupfloat[figure][location=inner] % \setupcaption [figure] [width=5cm, location={rightmargin,low}, spacebefore=big] %\setupcaption %[figure] %[width=5cm] \starttext \showframe \placefigure{A small but important caption.}{\externalfigure[cow][width=10cm]} \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] Figure captions in margin
Hello Marco, Your code goes well beyond what I was looking for. As I am working on a deadline right now, I am just going to use the frame trick to place the caption for wide figures. However, expect to hear from me in future regarding this code. Regards, Devendra On 01/20/2013 09:31 PM, Marco Patzer wrote: On 2013--01--20 Devendra Ghate wrote: I am using a layout with wide right margin. For floats that are \textwidth wide, I can place captions in the margin using**\setupcaption[location=rightmargin,high/low]. However, for figures that are (*\textwidth+\marginwidth+\margindistance*) wide, I would like to *place the caption in the margin below the figure*. For a recent project I had the similar requirements. I did not find a proper solution. I attached an example of the code I used. However, it has several issues: 1) Margin floats and texts overlay and need manual adjustment. 2) The baseline of the float description does not match the baseline of the main text (fixed using manual trial and error). I used an ugly hack (toffset=7.5ex) to align the description vertically. 3) The \startplacesmartfigure is not very robust. My notes say Do not indent \startplacesmartfigure. I don't recall what the exact issue was. 4) Probably many more that I haven't discovered, yet. Feel free to suggest fixes for the mentioned issues. Marco ___ 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 ___
[NTG-context] \margintext overflows in bottom margin
I am using*\margintext* for comments in the margin. When a comment falls on the last line of a page, I have to manually add *\setupmargintext[voffset=-2em] *everytime to stop it from flowing into bottom margin. Is there a way to automatically offset margin text to stop it from flowing into bottom margin. I took a look at *typo-mar.mkiv* to see if an option exists to correct this without any success. *MWE* \setuplayout[height=6cm,width=5cm,rightmargin=5cm] \unprotect % setup the side notes \setupmargindata [margintext] [location=outer, width=4.5cm, align=flushleft, stack=yes] \starttext \showframe A \crlf A\crlf A\crlf %\setupmargindata[margintext][voffset=-2em] A\margintext{A margin text.A margin text.A margin text.A margin text.} \stoptext Devendra ___ 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] Bibliography in authornum format
I am using ConTeXt ver: 2013.01.10 01:04 MKIV and here is the MWE. I would like to create numbered bibliography with *Author name [1]* format. If multiple authors are present then it should produce *Author /et al./ [1]*. This does not happen. Instead I get *Author, [1]*. Since I am new to ConTeXt, I might be making a basic mistake. Devendra --- \setupbibtex[database={bib}] % As suggested by Aditya on TEX SX. \setuppublications[alternative=num, refcommand=authornum] \starttext I am refering to \cite{me13} . \placepublications[criterium=text] \stoptext bib.bib @article{me13, title = {This bibliography in context}, author = {Convert, Recent and User, Power and Fiddler, Amateur}, journal = {Tex SX}, volume = {1}, number = {1}, pages = {1-11}, year = {2013}, } --- ___ 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] Update: Bibliography in authornum format
Please see: http://tex.stackexchange.com/questions/93729/bibliography-in-context for a solution provided by Aditya at stackexchange. I shouldn't have asked the question on two forums. Sorry for the trouble. Regards, Devendra ___ 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 ___