[NTG-context] the new simplefonts stuff
This is probably a pretty basic question, but how do I find out the name of the font that \definefontfamily expects in the third argument? For example, \definefontfamily [dejavu] [serif] [DejaVu Serif] works fine and sets the text in DejaVu Serif, but that’s not a name I can find with mtxrun –scripts font: ellen% mtxrun --script fonts --list --all --pattern='*DejaVu*'|wc -l 28 ellen% mtxrun --script fonts --info --list --all --pattern='*DejaVu*'|grep -i "DejaVu Serif"|wc -l 0 mtxrun --script fonts --info for Deja Vu doesn't show that identifier anywhere. I want to find out what, for example, Bookman is called. \definetypeface [five] [rm] [serif] [bookman] works fine and sets the text in some font that sure looks a lot like Bookman to my eyes, but \definefontfamily [five] [serif] [bookman] doesn’t work at all and the text doesn’t show up. ellen% mtxrun --script fonts --list --all --pattern='*bookman*'|wc -l 5 I’ve looked all over for this... even tried understanding font-sel.mkvii (with mediocre success). Sandra PS Extra thanks if there’s a way to get ligatures and protrusion to work for it. ___ 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] Placement of a figure
Hi, In this code, the figure is placed on the base line. How to make the numbering at the top of the figure ? \starttext \startitemize[n][stopper=),style=bf] \item \midaligned{\externalfigure[figure1_reperage.pdf]} \startitemize[a][stopper=),style=bf] \item Donner les coordonnées des points $A$ et $B$ dans le repère $\left(O,\, I,\, J\right)$. \item Compléter les phrases suivantes : les abscisses des points $A$ et $B$ sont $\ldots$ ; les ordonnées des points $A$ et $B$ sont $\dots\;$. \item Placer les points $C$ et $D$ de coordonnées respectives $\left(-2\,;3\right)$ et $\left(4\,;0\right)$. \item Placer le point $E$ de même abscisse que $C$ et d'ordonnée $-1$. \stopitemize \stoptext With LaTeX, I did this : \raisebox{-\height+1em}{\includegraphics{}} thank you ___ 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] Placement of a figure
Am 02.09.2014 um 12:43 schrieb Fabrice Couvreur : > > Hi, > In this code, the figure is placed on the base line. How to make the > numbering at the top of the figure ? > > \starttext > \startitemize[n][stopper=),style=bf] > \item \midaligned{\externalfigure[figure1_reperage.pdf]} \item \framed[frame=off,width=local,location=top]{\externalfigure[figure1_reperage.pdf]} 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] Placement of a figure
Hi Wolfgang, I have to put myself in the head that the command \framed[] is very important with ConteXt ! Fabrice ___ 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] the new simplefonts stuff
On 09/01/2014 09:20 PM, Sandra Snan wrote: > [...] > PS > Extra thanks if there’s a way to get ligatures and protrusion to work for it. Hi Sandra, I’m afraid I cannot help you with font names, since I use system fonts. But standard ligatures an protrusion work with these commands: \definefontfeature[default][default][script=latn, protrusion=quality] \setupalign[hanging] I hope it helps, Pablo -- http://www.ousia.tk ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] setups not working
Dear list, I have the following sample: \startsetups[footssetups] \setupinterlinespace[line=5ex] \stopsetups \setupnote[footnote][setups=footsetups] \starttext \footnote{\input zapf}\input knuth \stoptext AFAIK, the footnote should have extra interline space. But I don’t get it. I’m using beta from 2014.08.29 20:57. Am I missing something? Many thanks for your help, Pablo -- http://www.ousia.tk ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Framed text and page breaks
Colleagues I've been struggling today with trying to change paragraph width of selected paragraphs within the body text of a novel I'm typesetting. I thought that the way to do this would be by framing the text that I would like to reduce the paragraph width off. However the framed text doesn't seem to honour page breaks and just seems to disappear off the page bottom. Also the framed text starts on a new page which I do not want to happen. Any suggestions on how I may go about solving this problem? Best Wishes Keith McKay Here is an example tex file which shows these effects: \definepapersize[book][width=5.06in,height=7.81in] \setuppapersize [book][] \setuplayout [width=middle,backspace=12.5mm,cutspace=12.5mm,height=middle,topspace=12.7mm,bottomspace=12.7mm] \starttext \dorecurse{2}{\input ward \blank} \midaligned \framed[frame=off,width=5cm,align={width,nothyphenated,verytolerant,stretch},before=\blank]{\dorecurse{4}{\input ward \blank}} \dorecurse{2}{\input ward \blank} \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] Framed text and page breaks
If you just want to reduce the width of paragraphs, use the narrower environment. If you also want frames or background colors that break across page, use the background environment. If you want floats and parshape to also work, use the textbackground environment. Aditya On Tue, 2 Sep 2014, Keith McKay wrote: Colleagues I've been struggling today with trying to change paragraph width of selected paragraphs within the body text of a novel I'm typesetting. I thought that the way to do this would be by framing the text that I would like to reduce the paragraph width off. However the framed text doesn't seem to honour page breaks and just seems to disappear off the page bottom. Also the framed text starts on a new page which I do not want to happen. Any suggestions on how I may go about solving this problem? Best Wishes Keith McKay Here is an example tex file which shows these effects: \definepapersize[book][width=5.06in,height=7.81in] \setuppapersize [book][] \setuplayout [width=middle,backspace=12.5mm,cutspace=12.5mm,height=middle,topspace=12.7mm,bottomspace=12.7mm] \starttext \dorecurse{2}{\input ward \blank} \midaligned \framed[frame=off,width=5cm,align={width,nothyphenated,verytolerant,stretch},before=\blank]{\dorecurse{4}{\input ward \blank}} \dorecurse{2}{\input ward \blank} \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] Framed text and page breaks
Thank you Aditya! Your hint to using the narrower environment lead me to \startnarrower \stopnarrower on the wiki which was exactly what I was looking for. Thanks again Best Wishes Keith McKay On 02/09/2014 17:22, Aditya Mahajan wrote: If you just want to reduce the width of paragraphs, use the narrower environment. If you also want frames or background colors that break across page, use the background environment. If you want floats and parshape to also work, use the textbackground environment. Aditya On Tue, 2 Sep 2014, Keith McKay wrote: Colleagues I've been struggling today with trying to change paragraph width of selected paragraphs within the body text of a novel I'm typesetting. I thought that the way to do this would be by framing the text that I would like to reduce the paragraph width off. However the framed text doesn't seem to honour page breaks and just seems to disappear off the page bottom. Also the framed text starts on a new page which I do not want to happen. Any suggestions on how I may go about solving this problem? Best Wishes Keith McKay Here is an example tex file which shows these effects: \definepapersize[book][width=5.06in,height=7.81in] \setuppapersize [book][] \setuplayout [width=middle,backspace=12.5mm,cutspace=12.5mm,height=middle,topspace=12.7mm,bottomspace=12.7mm] \starttext \dorecurse{2}{\input ward \blank} \midaligned \framed[frame=off,width=5cm,align={width,nothyphenated,verytolerant,stretch},before=\blank]{\dorecurse{4}{\input ward \blank}} \dorecurse{2}{\input ward \blank} \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 ___
Re: [NTG-context] setups not working
On 9/2/2014 5:08 PM, Pablo Rodriguez wrote: Dear list, I have the following sample: \startsetups[footssetups] ^^ 2 \setupinterlinespace[line=5ex] \stopsetups \setupnote[footnote][setups=footsetups] ^ 1 \starttext \footnote{\input zapf}\input knuth \stoptext AFAIK, the footnote should have extra interline space. But I don’t get it. I’m using beta from 2014.08.29 20:57. Am I missing something? Many thanks for your help, Pablo -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] setups not working
Many thanks for your help, Hans. Pablo On 09/02/2014 08:02 PM, Hans Hagen wrote: > On 9/2/2014 5:08 PM, Pablo Rodriguez wrote: >> Dear list, >> >> I have the following sample: >> >> \startsetups[footssetups] > ^^ 2 > >> \setupinterlinespace[line=5ex] >> \stopsetups >> \setupnote[footnote][setups=footsetups] > ^ 1 >> \starttext >> \footnote{\input zapf}\input knuth >> \stoptext >> >> AFAIK, the footnote should have extra interline space. But I don’t get >> it. I’m using beta from 2014.08.29 20:57. >> >> Am I missing something? >> >> Many thanks for your help, >> >> >> Pablo -- http://www.ousia.tk ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Internal clickable links
Colleagues I'm setting up a document which at the end of each chapter will have a Glossary of word definitions. To get to these definitions one would click on the word in the chapter which would take them to the page where the definition of the word is in the Glossary. Once the user has done this, they could then click on the definition to go back to the original word in the chapter. \footnote works after a fashion, however I would like the word to be clickable and the definition not to appear at the bottom of the page. It's not really what I want. Is there another way to get the functionality I'm looking for? Thanks Best Wishes Keith McKay ___ 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] Internal clickable links
Am 02.09.2014 um 23:49 schrieb Keith McKay : > Colleagues > > I'm setting up a document which at the end of each chapter will have a > Glossary of word definitions. To get to these definitions one would click on > the word in the chapter which would take them to the page where the > definition of the word is in the Glossary. Once the user has done this, they > could then click on the definition to go back to the original word in the > chapter. \footnote works after a fashion, however I would like the word to > be clickable and the definition not to appear at the bottom of the page. > It's not really what I want. > > Is there another way to get the functionality I'm looking for? The placement of footnotes at the bottom of the page can be disabled to flush them at another position, e.g. at the end of a chapter. Instead of footnotes you can use endnotes which are configures in this way or create your own note command. 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] Remove left and right offset from nested frames?
Thanks Wolfgang, that worked well. Are there more reasons to use start & stop over start{}? On August 31, 2014 9:32:31 PM PDT, Wolfgang Schuster wrote: > >Am 01.09.2014 um 00:18 schrieb Mica Semrick : > >> Hello! >> >> Given: >> \starttext >> >> >\framed[frame=on,width=local,offset=0in,loffset=0in,roffset=0in,frameoffset=0in]{ > >Add a % after the {. > >> \framed >> [frame=on, >> location=middle, >> align={flushleft,nothyphenated,verytolerant}] % maybe also stretch >> {% >> {\tfd My Name Here} >> } >> \hfill >> \framed >> [frame=on, >> location=middle, >> align={flushright,nothyphenated,verytolerant}] % maybe also stretch >> {% >> 1234 Tree Ave. \#407, Beach City, CA 99876 \\ >> (123) 456-7890 \ \bullet \ >\goto{m...@email.com}[url(mailto:m...@email.com)] >> } > >Add a % after the }. > >> }\stoptext >> The two nested \framed commands are aligned as I'd like them, but I'd >like to remove the small gaps so the text in the first nexted frame >sits flush to the left of the text area and the second framed sits >flush right to the text area. In other words, I'd like to remove the >small gaps from the left and right of the frames. >> Is that possible? > >You forgot a few comment signs in your code which can be avoided when >you \startframed … \stopframed instead of \framed{…}. > >\starttext > >\startframed[frame=on,width=local,offset=0pt] > > \startframed[frame=on,location=middle,align={flushleft,nothyphenated,verytolerant},foregroundstyle=\tfd] > My Name Here > \stopframed > \hfill > > \startframed[frame=on,location=middle,align={flushright,nothyphenated,verytolerant}] > 1234 Tree Ave. \#407, Beach City, CA 99876\\ > (123) 456-7890 \hspace[medium] \symbol[bullet] \hspace[medium] >\goto{m...@email.com}[url(mailto:m...@email.com)] > \stopframed >\stopframed > >\stoptext > >Wolfgang >___ >If your question is of interest to others as well, please add an entry >to the Wiki! > >maillist : ntg-context@ntg.nl / >http://www.ntg.nl/mailman/listinfo/ntg-context >webpage : http://www.pragma-ade.nl / http://tex.aanhet.net >archive : http://foundry.supelec.fr/projects/contextrev/ >wiki : http://contextgarden.net >___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___