[NTG-context] Float placement problem
Hello, I've recently updated my standalone (32-bit Linux) ConTeXT from 2011.02.25 to 2011.09.20, and I'm now having some trouble with float placement. I'm using MkIV. I'm trying to have figures protruding into the outer margins with a double-sided layout, as described here: http://wiki.contextgarden.net/Floating_Objects#Protruding_Floats_in_Double-Sided_Documents Here is my minimal example: \setuplayout[location=doublesided] \setuppagenumbering[alternative=doublesided,location={margin,header}] \setupfloat[figure][location=inner] \showframe \starttext % An extra page. \page[yes] \dorecurse{4}{ \placefigure[]{caption}{\externalfigure[cow.pdf][width=17cm]}} \stoptext With version 2011.02.25 this produces the desired result; with 2011.09.20, the first figure is placed correctly, and all subsequent figures protrude in the same direction, whether they're on an even or odd page. So in the given example they all protrude to the right. If an extra page is inserted at the start so that the first figure is on an even page, they all protrude to the left. Does anyone have any ideas or insights? Thanks in advance, Pont ___ 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 signs in itemize
On Sat, Sep 24, 2011 at 11:29:32AM +0200, R. Ermers wrote: > Dear all, > After my update a few days ago I have run into the problem earlier described > under the subject "new beta" (Marco Pessotto). The file processed nicely > until then. I use gentium as the main font. > > \definefont[gentium][Xserif][name:Gentium at 12pt] Gentium currently does not have good support for math fonts. Xits gives the best results for math, it appears at the moment. Alan ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] math signs in itemize
Thanks Alan, But I use very, very little math, only once or twice, as in 7$^{th}$, but I could solve that otherwise. My main problem occurs in itemization. Please have a look at this: l.741 \item h et type van de abc abc abc ? ! \textfont0 is undefined (character 8226). Regards, Robert Op 25 sep 2011, om 12:17 heeft Alan Braslau het volgende geschreven: > On Sat, Sep 24, 2011 at 11:29:32AM +0200, R. Ermers wrote: >> Dear all, >> After my update a few days ago I have run into the problem earlier described >> under the subject "new beta" (Marco Pessotto). The file processed nicely >> until then. I use gentium as the main font. >> >> \definefont[gentium][Xserif][name:Gentium at 12pt] > > Gentium currently does not have good support for math fonts. > Xits gives the best results for math, it appears at the moment. > > Alan > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___ ___ 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 signs in itemize
Am 24.09.2011 um 11:29 schrieb R. Ermers: > Dear all, > After my update a few days ago I have run into the problem earlier described > under the subject "new beta" (Marco Pessotto). The file processed nicely > until then. I use gentium as the main font. > > \definefont[gentium][Xserif][name:Gentium at 12pt] What do you want to achieve with the line above because it doesn’t make any sense. When you want to change the main font to Gentium you can do this with “\setupbodyfont[gentium]”. \setupbodyfont[gentium] \starttext \startitemize \startitem One \stopitem \startitem Two \stopitem \stopitemize \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] math signs in itemize
On Sun, Sep 25, 2011 at 01:02:07PM +0200, R. Ermers wrote: > > But I use very, very little math, only once or twice, as in 7$^{th}$, but I > could solve that otherwise. You may want to use 7\high{th}. > My main problem occurs in itemization. Please have a look at this: > > l.741 \item h > et type van de abc abc abc > ? > ! \textfont0 is undefined (character 8226). 1. Are you using mkiv (or mkii)? 2. Would you provide a minimal example? Alan ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] colon in lucida math
I get the impression there is something wrong with typesetting math with the lucida setup in ConTeXt. I find that the \colon is not printed. Below is a minimal example. See the colon in the first formula that is absent in the second. Perhaps someone is willing to check if this is ConTeXt in general or my own setup in particular. In both cases I will be pleased with a remedy. Hans van der Meer \setuppapersize [A6][A6] \starttext \start \setupbodyfont[lmodern] Using: \verbatim{\setupbodyfont[lmodern]}\par $K\colon\quad A\cdots Z$\par \stop \start \setupbodyfont[lucida] Using: \verbatim{\setupbodyfont[lucida]}\par $K\colon\quad A\cdots Z$\par \stop \stoptext test.pdf Description: test.pdf ___ 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 signs in itemize
Thanks for all your replies! I changed the superscript e into \high{e}. There is one other math item: $\frac1{40}$ in the whole text. I am using mkiv. Until the recent update the document (90 pp.) was processed fine. I add a minimal example below. Thanks again for looking into this problem. Regards, Robert +++ \enableregime[utf] \setuppapersize[A4][A4] \startsectionblockenvironment[bodypart] \setupheader[text][location=text,state=high,strut=yes,after=\vskip-0.8em\thinrule] \setupfootertexts[{\tfx \copyright R. Ermers}][][][{\tfx \copyright R. Ermers}] \setuppagenumber[number=1] \stopsectionblockenvironment %\setmainfont[Antykwa Poltawskiego] \usemodule[t][lettrine] \usemodule[t][annotation] \usemodule[newmat] %vanwege de breuk \newdimen\Margin \Margin=20mm \newdimen\Tekstbreedte \Tekstbreedte=14cm \setupinitial [state=start, n=3, distance=.15pc, font=SerifBold, ] \definefontfeature [arabic] [mode=node,language=dflt,script=arab,ccmp=yes, init=yes,medi=yes,fina=yes,isol=yes, liga=yes,dlig=yes,rlig=yes,clig=yes,calt=yes, mark=yes,mkmk=yes,kern=yes,curs=yes] \usemodule[t][simplefonts] \setuplayout [width=148mm,height=268mm\relax, backspace=25mm,topspace=20mm, header=12pt,headerdistance=15mm, footer=5mm,footerdistance=8mm, %rightmargin=\zeropoint, location=middle,marking=off] \setupwhitespace[halfline] \definelayer[graphics][position=yes] \setupbackgrounds[page][background=graphics] \setuplanguage[nl] [leftquote=\upperleftsinglesixquote, rightquote=\upperrightsingleninequote, leftquotation=\leftguillemot, rightquotation=\rightguillemot] \mainlanguage[nl] \hyphenation{lam-pet-stel} \definefloat[figureonder][figure] \definefloat[edgefigure][figure] \setupcaption[figure][location=right] \setupcaption[figureonder][location=bottom] \setupcaption[edgefigure][location=bottom] \setupfloat[edgefigure] [leftmargindistance=-\leftmargintotal,rightmargindistance=-\rightmargintotal, default={outer,low},criterium=.67\textwidth,numbering=no] \setupcaptions[width=max,align=middle,style=small,number=no] \defineitemgroup[ongenummerd][levels=3] \setupitemgroup[ongenummerd][1][5] \setupitemgroup[ongenummerd][2][4] \setupitemgroup[ongenummerd][2][3] \defineitemgroup[genummerd][levels=3] \setupitemgroup[genummerd][1][n] \setupitemgroup[genummerd][2][a] \setupitemgroup[genummerd][2][r] \setuptolerance[horizontal,verytolerant] %hyphenation \setuppagenumbering[state=start,alternative=doublesided,location=footer,style=bold] \setupheadertexts [{\getmarking[subsectionnumber]\enskip\getmarking[subsection]}] [] [] [{\getmarking[sectionnumber]\enskip\getmarking[section]}]% \setuphead[part][placehead=no] \defineblankmethod[nobreak]{\penalty\plustenthousand} \defineblankmethod[endgraf]{\endgraf} \setuphead[section][grid=line] \setupheader[style=small] \definepagebreak[chapter][yes,empty,right] \setupinmargin[location=both,line=1,align=normal,stack=yes,style=small,color=red,distance=5mm] \hyphenation{ver-ant-woor-de-lijk-heid} \setupindenting[yes,medium,first] \setupfloats[indentnext=no] \setupfootnotedefinition[location=left,distance=1em,headalign=flushleft] \setupnote[footnote][textstyle=,numbercommand=,margindistance=8mm,rule=off,before=,interaction=yes,align={normal,hyphenated}] \setupinteraction[style=] \define[2]\QuotationCommand { \setupindenting[no] \switchtobodyfont[arial,10pt] \textrule{#1}\blank \vfil\nobreak\penalty1\endgraf \startcolumns#2\stopcolumns \hspace \nobreak\penalty1000 \textrule } \definetypeface[braqqadocio][ss][Xsans][Braqqadocio] \usetypescriptfile[type-gentium] \setupbodyfont[gentium,11pt] \definefontfeature [default] [default] [protrusion=quality,expansion=quality] \setupalign[hz,hanging] \setuplettrine[Nindent=0pt,Lines=2,Oversize=0,TextFont=\sc] \setuplettrine[T][Findent=0.2em,Hang=.12,TextFont=\sc] \setuplettrine[A][Slope=0.4em,Findent=0.2em,Hang=0.12] \setuplettrine[V][Slope=-0.1em,Findent=0.2em,Hang=0.12] \setuplettrine[W][Slope=-0.1em,Findent=0.2em,Hang=0.12] \sethyphenatedurlnormal{:=?&} \sethyphenatedurlbefore{?&} \sethyphenatedurlafter {:=} \setupbackground[frame=on] \setupexternalfigures[directory={./../../MOP}] \setupitemize[1][paragraph,atmargin][width=3mm,distance=5pt,itemalign=flushleft,indentnext=no] \setupitems[align=right] \starttext \lettrine{E}{lk} mens wordt gevormd door zijn omgeving \startitemize \item het type van de \item ideeën over \item de koeien \item overige factoren (zoals paarden) \stopitemize The text continues ... The text continues The text continues The text continues \stoptext Op 25 sep 2011, om 13:39 heeft Alan Braslau het volgende geschreven: > On Sun, Sep 25, 2011 at 01:02:07PM +0200, R. Ermers wrote: >> >> But I use very, very little math, only once or twice, as in 7$^{th}$, but I >> could solve that otherwise. > > You may want to use 7\high{th}. > >> My main problem occurs in itemization. Please have a look at this: >> >> l.741 \it
[NTG-context] Frame around float and its caption, how to?
Hi list, I'm using 201100920 00:09 MkIV standalone. Some time ago Marcin Borkowski asked [1] on this list about framing floats together with their captions. It seems to be unanswered and now I stumbled upon a similar problem. I want to have a figure with a caption together in a frame as wide as the surrounding text, aka \textwidth and the caption filling the available horizontal space. I.e. I want something like \setupcaption[width=\textwidth] \starttext \placefigure[here]{\input tufte}{\externalfigure[cow]} \stoptext with a frame around it. I see two approaches here and none of them gives me what I need. First using \setupfloat[frame=on] only frames the cow and not the caption. I think I can manually correct this with "framedepth" and "width" but doing something "manually" in ConTeXt seems not like a good idea. Am I overlooking something about \setupfloat? Secondly, I tried \framed{...} around \placefigure but there are two issues here: How do I setup the caption to fit nicely into the frame? "\setupcaption[width=\textwidth]" is to much because of the frame spacing... And there is another serious issue, see the following minimal example. The frame is where the figure was placed but is empty, because the figure floated to the next page. \setupcaption[width=max] \starttext \dorecurse{2}{\input tufte \par} \framed{\placefigure[here][fig:muh]{\input tufte}{\externalfigure[cow]}} \input tufte \stoptext I have no idea how to procede with this. Hopefully someone on this list knows how to do this right. Thanks in advance, Stefan. [1] http://archive.contextgarden.net/message/20090724.123610.ddad55af.en.html ___ 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] Frame around float and its caption, how to?
Am 25.09.2011 um 18:10 schrieb Stefan Müller: > Hi list, > > I'm using 201100920 00:09 MkIV standalone. Some time ago Marcin Borkowski > asked [1] on this list about framing floats together with their captions. It > seems to be unanswered and now I stumbled upon a similar problem. I want to > have a figure with a caption together in a frame as wide as the surrounding > text, aka \textwidth and the caption filling the available horizontal space. > I.e. I want something like > > \setupcaption[width=\textwidth] > \starttext > \placefigure[here]{\input tufte}{\externalfigure[cow]} > \stoptext > > with a frame around it. Found this in my mail archive: % engine=pdftex \setupexternalfigures[location={local,global,default}] \setupfloats[frame=on,frameoffset=1mm] \starttext \section{A figure with a background} \placefigure {none} {\placelegend {\externalfigure[mill][scale=2000]} {\placefloatcaption[figure]{A dutch mill}}} \stoptext It works only with MkII because \placefloatcaption isn’t yet rewritten for the new MkIV code. 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] bibmodule acquired problem
I used the following macro for typsetting literature references in footnotes. It worked without problems until now, but then I didn't use the bib module for some time. It looks like a problem has crept in with the type. the macro setup: \usepublications[literature] \setuppublications [alternative=apa] \setuppublications [numbering=short,refcommand=data] \setuppublicationlist [% editor=\normalauthor,% author=\normalauthor,% artauthor=\normalauthor] \setuppublicationlist[firstnamesep={ },surnamesep={}] \def\bibentry#1{\bibentrypar \doifemptyelse{#1}{\def\bibentryspace{}}{\def\bibentryspace{\ }}% \cite[data][#1]\strut} \def\footnotecite{\dodoubleargument\dofootnotecite} \def\dofootnotecite[#1][#2]{% \def\bibentrypar{\def\bibentrypar{\par}}% \unskip\footnote{\processcommalist[#1]\bibentry \doifnotempty{#2}{\bibentryspace#2\strut\par}} } It fails for the following entry: \startpublication[k=campbell:92,t=inproceedings, a={{Campbell},{Wiener}},y=1992, n=54,s=CW92] \author[]{K.~W.}[K.~W.]{}{Campbell} \author[]{M.~J.}[M.~J.]{}{Wiener} \pubyear{1992} \arttitle{{DES is not a group}} \crossref{crypto92} \pages{512--517} \pubname{Springer-Verlag} \stoppublication But it works ok when is replaced by . The error message: \pbd: \bibgetvart #1->\csname pbd:#1\endcsname \plussix \bibalternative ... \??pv \@@currentalternative #1 \endcsname \dotypesetapublication ...ative {\bibgetvart {#1}} \removeunwantedspaces \egr... \next3 #1,->\dobibdata {#1} \doprocesscommaitem \doprocesscommalist ...item \gobbleoneargument #1, ]\relax \global \advance \... ... l.34 \par 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] math signs in itemize
Am 25.09.2011 um 15:08 schrieb R. Ermers: > Thanks for all your replies! > > I changed the superscript e into \high{e}. There is one other math item: > $\frac1{40}$ in the whole text. > > I am using mkiv. > Until the recent update the document (90 pp.) was processed fine. > > I add a minimal example below. 1. The example runs without errors on my machine. 2. This example *isn’t* minimal. 3. There are a few unnecessary things in your code. 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] math signs in itemize
On Sun, 25 Sep 2011, Wolfgang Schuster wrote: Am 25.09.2011 um 15:08 schrieb R. Ermers: Thanks for all your replies! I changed the superscript e into \high{e}. There is one other math item: $\frac1{40}$ in the whole text. I am using mkiv. Until the recent update the document (90 pp.) was processed fine. I add a minimal example below. 1. The example runs without errors on my machine. 2. This example *isn’t* minimal. 3. There are a few unnecessary things in your code. An alternative is to use \definesymbol[1][\textbullet] As an added benefit, it gives a better output when exporting to xhtml. 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] Multipages registers
> Where is such a macro given in the garden. A quick search did not show it. > > Aditya Hum... It's a long time ago...I think I've heavily modified the initial macro... Thank you for your much cleaner version. Pierre-François. -- Bonnefoi Pierre-Francois|E-mail : bonne...@unilim.fr Universite de Limoges, Laboratoire XLIM | Tel : 06 28 18 03 38 83, rue d'Isle | Mrs. Peel, we're needed... 87000 Limoges - FRANCE | The Avengers. smime.p7s Description: S/MIME cryptographic signature ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] math signs in itemize
Am 25.09.2011 um 20:36 schrieb Aditya Mahajan: > On Sun, 25 Sep 2011, Wolfgang Schuster wrote: > >> >> Am 25.09.2011 um 15:08 schrieb R. Ermers: >> >>> Thanks for all your replies! >>> >>> I changed the superscript e into \high{e}. There is one other math item: >>> $\frac1{40}$ in the whole text. >>> >>> I am using mkiv. >>> Until the recent update the document (90 pp.) was processed fine. >>> >>> I add a minimal example below. >> >> 1. The example runs without errors on my machine. >> 2. This example *isn’t* minimal. >> 3. There are a few unnecessary things in your code. > > An alternative is to use > > \definesymbol[1][\textbullet] > > As an added benefit, it gives a better output when exporting to xhtml. You can get text symbols for itemize with “\setupsymbolset[text]”. 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] Missing booktitle in "incollection" bib-entries
Hi list, I have an @incollection-entry with "booktitle" set in a bib-file used in a ConTeXt document. Unfortunately there is no \title, generated from "booktitle", in the respective .bbl file. Only \arttitle, generated from the bib-key "title", is present. Guess it's a bug(?) Best regards, Stefan ___ 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] [Layout] Problem with ConTeXt mkII
Hello, I use extensively ConTeXt for my work as a teacher. I run into this problem : I've defined the following layout for giving work for my students : \setuptolerance[verytolerant,stretch] \setuppapersize[A4][A4] \setuplayout[ backspace=3cm, topspace=1.5cm, rightmargin=0cm,leftmargin=1.3cm, width=15cm, leftmargindistance=0.2cm, height=26.7cm, header=0cm, footer=1cm ] \definelayout[1][ topspace=5.2cm, height=23cm, textheight=22cm] \definelayout[2][reset] The purpose is to give some space on the first page to put a layer with a big title (it's for a document full of exercices, an example could be found at http://ishtar.msi.unilim.fr/uploads/media/Reseaux_I_TD_1_2011_2012.pdf). But, after having the correct layout for the first page, the second page gives me a reduced textheight : the text don't flow on the lower part of the page. That could be explain as the textheight variable is not computed for the second page. This is very annoying. I've found a workaround by using the same layout for the whole document and put some blank lines on the first page. I use the following version "ConTeXt ver: 2011.05.18 18:04 MKII fmt: 2011.8.31 int: english/english". Thank you for your help, Pierre-François. -- Bonnefoi Pierre-Francois|E-mail : bonne...@unilim.fr Universite de Limoges, Laboratoire XLIM | Tel : 06 28 18 03 38 83, rue d'Isle | Mrs. Peel, we're needed... 87000 Limoges - FRANCE | The Avengers. smime.p7s Description: S/MIME cryptographic signature ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Frame around float and its caption, how to?
Thank you for taking a look at this. Too bad your solution is only MkII. The document I'm currently working on is to be written in APA style and unfortunately the frame around figure+caption is required... I'm not really interested in changing to MkII... ;) I hope there can also be a not too involed solution for this in MkIV. Best regards, Stefan On 25.09.2011 18:32, Wolfgang Schuster wrote: Am 25.09.2011 um 18:10 schrieb Stefan Müller: Hi list, I'm using 201100920 00:09 MkIV standalone. Some time ago Marcin Borkowski asked [1] on this list about framing floats together with their captions. It seems to be unanswered and now I stumbled upon a similar problem. I want to have a figure with a caption together in a frame as wide as the surrounding text, aka \textwidth and the caption filling the available horizontal space. I.e. I want something like \setupcaption[width=\textwidth] \starttext \placefigure[here]{\input tufte}{\externalfigure[cow]} \stoptext with a frame around it. Found this in my mail archive: % engine=pdftex \setupexternalfigures[location={local,global,default}] \setupfloats[frame=on,frameoffset=1mm] \starttext \section{A figure with a background} \placefigure {none} {\placelegend {\externalfigure[mill][scale=2000]} {\placefloatcaption[figure]{A dutch mill}}} \stoptext It works only with MkII because \placefloatcaption isn’t yet rewritten for the new MkIV code. 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] Missing booktitle in "incollection" bib-entries
On Sun 25 Sep 2011, Stefan Müller wrote: > I have an @incollection-entry with "booktitle" set in a bib-file used in > a ConTeXt document. Unfortunately there is no \title, generated from > "booktitle", in the respective .bbl file. Only \arttitle, generated > from the bib-key "title", is present. Guess it's a bug(?) Hmm, can't reproduce here. Here's what I'm using: file test.tex: \setupbibtex[database=test] \starttext \cite[ernst1989anisotropy] \placepublications[criterium=cite] \stoptext file test.bib: @incollection{ernst1989anisotropy, title = {Averaging of anisotropy of magnetic susceptibility data}, author = {Ernst, R. E. and Pearce, G. W.}, booktitle = {Statistical Applications in the Earth Sciences}, editor = {Agterberg, F. P. and Bonham-Carter, G. F.}, note = {Paper 89-9}, pages = {297--305}, year = {1989}, publisher = {Geological Survey of Canada} } produces the following test.bbl: \setuppublicationlist[samplesize={EP89},totalnumber=1] \startpublication[k=ernst1989anisotropy,t=incollection, a={{Ernst},{Pearce}},y=1989, n=1,s=EP89] \artauthor[]{R.~E.}[R.~E.]{}{Ernst} \artauthor[]{G.~W.}[G.~W.]{}{Pearce} \pubyear{1989} \arttitle{Averaging of anisotropy of magnetic susceptibility data} \editor[]{F.~P.}[F.~P.]{}{Agterberg} \editor[]{G.~F.}[G.~F.]{}{Bonham-Carter} \title{Statistical Applications in the Earth Sciences} \pages{297--305} \pages{297--305} \pubname{Geological Survey of Canada} \note{Paper 89-9} \stoppublication ... and the PDF shows both the article and book title. This works with MkIV 2011.02.25 and 2011.09.20. Pont ___ 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 signs in itemize
Thanks for all advices! I solved the problem, at least partially. I now use \usetypescriptfile[type-gentium] For some reason I have to change the signs in the unnumbered lists. My one and only math item -- $\frac1{40}$ -- does cause a problem though. Apparently there is no math fallback. Any suggestions? Regards Robert Op 25 sep 2011, om 20:45 heeft Wolfgang Schuster het volgende geschreven: >> \definesymbol[1][\textbullet] ___ 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 signs in itemize
On Mon, 26 Sep 2011, R. Ermers wrote: My one and only math item -- $\frac1{40}$ -- does cause a problem though. Apparently there is no math fallback. Hard to say without an example. Any suggestions? Use text mode fractions! \frac{1}{40}. 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] handling fonts with missing math (was: math signs in itemize)
On Sat, Sep 24, 2011 at 11:29, R. Ermers wrote: > > Snippets from log file: > > ! Math error: parameter \Umathquad\displaystyle is not set. Independent of everything else that has been said in that thread: wouldn't it be nice to simply fall back on Latin Modern for math when some font doesn't provide accompanying math glyphs instead of giving up in the middle of the run? Of course that will give suboptimal result (in particular everything inside $math$ will be in LM as opposed to original font), but at least it won't complain about a missing $\bullet$ and one can always use $\frac{\text{1}}{\text{2}}$ or something similar :). Mojca ___ 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 ___