Re: [NTG-context] texexec+mpost cmr10 vs CMR10 trouble using dvips backend
Sanjoy Mahajan wrote: A font-embedding issue puzzles me. First I make a metapost figure that uses plain tex for the label, so it uses cmr10. Then I include it in a context document to get a .ps file. The problem is that the label shows up in Courier (which ghostscript uses when it cannot find the font, I think). Here is the test.tex \starttext \externalfigure[fig.1] \stoptext and this fig.mp beginfig(1) label(btex hello etex, origin); endfig; end The commands are: mpost fig texexec --ps test gv test.ps If you set prologues := 1 in the mp file, that should help. In a new metapost (texlive2007) you can even generate an image with the font included by using prologues := 3. Best, Taco ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Pagebreak only after stanzas
Hi again, I have tried to implement Adityas suggestions. Now pagebreaks are correct. But how can I minimize the whitespace between stanzas. There shouldn't be much more than a \smallskip. I tried to look it up in the contextgarden wiki, but an entry on verses seems to be missing, so I could wikify the solutions. Thanks in advance Chris A minimal example looks like: \setuppapersize[A6][A6] \setuplayout[ topspace=1cm,backspace=1cm,header=0pt,footer=0pt,margin=.5cm,height=middle,width=middle,] \usetypescriptfile[type-gyr] \usetypescript[times][texnansi] \mainlanguage[de] \enableregime[utf] \setupbodyfont[times,9pt] \setupindenting[medium, no] \setupframedtexts[width=\textwidth,height=fit,frame=on] \starttext \subsection{Novalis—An Tieck} \obeylines \startframedtext Ein Kind voll Wehmut und voll Teue, Verstoßen in ein fremdes Land, Ließ gern das Glänzende und Neue, Und blieb dem Alten zugewandt. \stopframedtext \startframedtext Nach langem Suchen, langem Warten, Nach manchem mühevollen Gang, Fand es in einem öden Garten Auf einer längst verfallenen Bank \stopframedtext \startframedtext Ein altes Buch mit Gold verschlossen, Und nie gehörte Worte drin; Und, wie des Frühlings zarte Sprossen, So wuchs in ihm ein innrer Sinn. \stopframedtext \startframedtext Und wie es sitzt, und liest, und schauet In den Kristall der neuen Welt, An Gras und Sternen sich erbaut, Und dankbar auf die Kniee fällt: \stopframedtext \startframedtext So hebt sich sacht aus Gras und Kräutern Bedächtiglich ein alter Mann, Im schlichten Rock, und kommt mit heiterm Gesicht ans fromme Kind heran. \stopframedtext \startframedtext Bekannt, doch heimlich sind die Züge So kindlich und so wunderbar; Es spielt die Frühlingsluft der Wiege Gar seltsam mit dem Silberhaar. \stopframedtext \startframedtext Das Kind fasst bebend seine Hände, Es ist des Buches hoher Geist, Der ihm der sauren Wallfahrt Ende Und seines Vaters Wohnung weist. \stopframedtext \startframedtext Du kniest auf meinem öden Grabe, So öffnet sich der heilge Mund, Du bist der Erbe meiner Habe, Dir werde Gottes Tiefe kund. \stopframedtext \startframedtext Auf jenem Berg als armer Knabe Hab ich ein himmlisch Buch gesehn, Und konnte nun durch diese Gabe In alle Kreaturen sehn. \stopframedtext \startframedtext Es sind an mir durch Gottes Gnade Der höchsten Wunder viel geschehn; Des neuen Bunds geheime Lade Sahn meine Auge offen stehn. \stopframedtext \startframedtext Ich habe treulich aufgeschrieben, Was innre Lust mir offenbart, Und bin verkannt und arm geblieben, Bis ich zu Gott gerufen ward. \stopframedtext \startframedtext Die Zeit ist da, und nicht verborgen Soll das Mysterium mehr sein. In diesem Buche bricht der Morgen Gewaltig in die Zeit hinein. \stopframedtext \startframedtext Verkündiger der Morgenröte, Des Friedens Bote sollst du sein. Sanft wie die Luft in Harf und Flöte Hauch ich dir meinen Atem ein. \stopframedtext \startframedtext Gott sei mit dir, geh hin und wasche Die Augen dir mir Morgentau. Sei treu dem Buch und meiner Asche, Und bade dich im ewgen Blau. \stopframedtext \startframedtext Du wirst das letzte Reich verkünden, Das tausend Jahre soll bestehen; Wirst überschwänglich Wesen finden, Und Jakob Böhmen wieder sehn. \stopframedtext \stoptext On 4/14/07, Aditya Mahajan [EMAIL PROTECTED] wrote: On Sat, 14 Apr 2007, Bert Trüger wrote: Hi, i am a fresh convert to Context from Latex and deeply impressed by it's ability to set multiple pages on one page, even doublesided ones. For setting a collection of poems I use \obeylines and \smallskip to arrange them on the page. Pagebreaks should only be possible between stanzas at the \smallskip-mark. Could somebody tell me, how to achieve this? Probably, the easiest way to do that will be to add a bit of a markup. Something like (untested) \setuplines[after={\blank[small]}] %or after=\smallskip \defineframedtext[stanza][width=\textwidth,before=\startlines,after=\stoplines] \startstanza \stopstanza Since framedtext is a box, it will not break across pages. Aditya ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Pagebreak only after stanzas
On Sun, 15 Apr 2007 15:27:20 +0200 Bert Trüger [EMAIL PROTECTED] wrote: Hi again, I have tried to implement Adityas suggestions. Now pagebreaks are correct. But how can I minimize the whitespace between stanzas. There shouldn't be much more than a \smallskip. I tried to look it up in the contextgarden wiki, but an entry on verses seems to be missing, so I could wikify the solutions. Thanks in advance Chris A minimal example looks like: \setuppapersize[A6][A6] \setuplayout[ topspace=1cm,backspace=1cm,header=0pt,footer=0pt,margin=.5cm,height=middle,width=middle,] \usetypescriptfile[type-gyr] \usetypescript[times][texnansi] \mainlanguage[de] \enableregime[utf] \setupbodyfont[times,9pt] \setupindenting[medium, no] \setupframedtexts[width=\textwidth,height=fit,frame=on] \starttext \subsection{Novalis—An Tieck} \obeylines \startframedtext Ein Kind voll Wehmut und voll Teue, Verstoßen in ein fremdes Land, Ließ gern das Glänzende und Neue, Und blieb dem Alten zugewandt. \stopframedtext \startframedtext Nach langem Suchen, langem Warten, Nach manchem mühevollen Gang, Fand es in einem öden Garten Auf einer längst verfallenen Bank \stopframedtext \stoptext Hi Bert, can you file with these settings \setupframedtexts [framedtext] [width=\textwidth, height=fit, before=, after=] \setuplines [before=\startframedtext, after=\stopframedtext] \starttext \subsection{Novalis--An Tieck} \startlines Ein Kind voll Wehmut und voll Teue, Verstoßen in ein fremdes Land, Ließ gern das Glänzende und Neue, Und blieb dem Alten zugewandt. \stoplines \startlines Nach langem Suchen, langem Warten, Nach manchem mühevollen Gang, Fand es in einem öden Garten Auf einer längst verfallenen Bank \stoplines \stoptext Wolfgang ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] texexec+mpost cmr10 vs CMR10 trouble using dvips backend
If you set prologues := 1 in the mp file, that should help. That still gave Courier fonts after including fig.1 in test.ps. In a new metapost (texlive2007) you can even generate an image with the font included by using prologues := 3. That worked. [I'm using MetaPost 0.993 (Web2C 7.5.6) from the Debian texlive2007-2 packages.] From p.24 of the corresponding mpman.pdf manual: It is worth noting that the default value prologues:=0 is sufficient for graphics included in TEX-based documents. Does that need a slight exception added to it? Or have I misconfigured something in the toolchain from .tex + .mp to .ps? By the way, the figure works fine with prologues := 0 if I include it (using epsf.tex) in a plain-TeX document. So I think there's something slightly off about what ConTeXt is doing. -Sanjoy `Not all those who wander are lost.' (J.R.R. Tolkien) ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] \unknown
Hi Hans... \unknown is cryptic; why not just... \ellipsis? That's what it is after all, and it's immediately obvious, easier to remember, etc-) (at least as an official synonym...) Note that you could also have \setupellipsis: '...' is the most prevalent but not the only form it can take. '***' and \emdash are apparent alternatives... Bringhurst's discussion on ellipsis rules might help with creating typographical options... French and English have different rules, for example... ...Best ...Idris -- Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523 -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \unknown
On Sun, 15 Apr 2007 09:48:39 -0600 Idris Samawi Hamid [EMAIL PROTECTED] wrote: Hi Hans... \unknown is cryptic; why not just... \ellipsis? That's what it is after all, and it's immediately obvious, easier to remember, etc-) (at least as an official synonym...) Hi Idris, text \textellipsis Note that you could also have \setupellipsis: '...' is the most prevalent but not the only form it can take. '***' and \emdash are apparent alternatives... you can use \periods\ or \periods[2] or \periods[5] ... you can also change the distance of the dots with \def\periodswidth {...} (default value: 0.5em) and the default number auf dots with the commands \def\periodsdefault{...} (default value: 3). Hans, is it possible to make also a definition for the sign used by \periods to write something like \starts and get ***. Bringhurst's discussion on ellipsis rules might help with creating typographical options... French and English have different rules, for example... ...Best ...Idris Wolfgang ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] texexec+mpost cmr10 vs CMR10 trouble using dvips backend
Since they are not going to process the source, how about generating a pdf and then converting the pdf into ps. That's a good idea. I'll do that or set prologues := 3 if I cannot figure out what change I need to make in the ConTeXt configuration. I'd like to figure out what's wrong with the dvi-ps route, especially if someday arxiv.org supports ConTeXt. By the way, if enough arxiv.org users request ConTeXt support, they might provide it... -Sanjoy `Not all those who wander are lost.' (J.R.R. Tolkien) ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] texexec+mpost cmr10 vs CMR10 trouble using dvips backend
On 4/15/07, Sanjoy Mahajan [EMAIL PROTECTED] wrote: If you set prologues := 1 in the mp file, that should help. That still gave Courier fonts after including fig.1 in test.ps. In a new metapost (texlive2007) you can even generate an image with the font included by using prologues := 3. That worked. [I'm using MetaPost 0.993 (Web2C 7.5.6) from the Debian texlive2007-2 packages.] From p.24 of the corresponding mpman.pdf manual: It is worth noting that the default value prologues:=0 is sufficient for graphics included in TEX-based documents. Does that need a slight exception added to it? Or have I misconfigured something in the toolchain from .tex + .mp to .ps? By the way, the figure works fine with prologues := 0 if I include it (using epsf.tex) in a plain-TeX document. Your ConTeXt example is using the default latin modern fonts. The reason the mpost files work with plain TeX is that the cm fonts are being used by plain tex, so the fonts are already defined in the .ps file when the font commands in the figure file are found. So I think there's something slightly off about what ConTeXt is doing. On my systems I have modified the map files to use the lm-rep map files (so cm fonts are replaced by lm fonts). Your example works for me with TL2007 on FC5 in both plain tex and context. In context, I see: TeXUtil | tuo file saved This is dvips(k) 5.96 Copyright 2005 Radical Eye Software (www.radicaleye.com) ' TeX output 2007.04.15:1332' - t.ps tex.prolm-ec.enclm-rep-cmrm.encfinclude.protexps.prospecial.pro. lmr10.pfblmr12.pfb[1./fig.1] TeXExec | runtime: 6.214806 The resulting .ps file has: %%BeginFont: CMR10 %!PS-AdobeFont-1.0: LMRoman10-Regular 1.010 while for plain tex (using dvips -P pdf ...): This is dvips(k) 5.96 Copyright 2005 Radical Eye Software (www.radicaleye.com) ' TeX output 2007.04.15:1327' - pt.ps tex.proalt-rule.prolm-rep-cmrm.encfinclude.protexps.pro special.pro. lmr10.pfb[1fig.1] For debian, the procedure for changing updmap.cnf has been debianized, but it is mentioned in the README for the lmodern package (watch out for a typo in the example entry: test -- text). If you do this, you might want to include the following: $ cat lm-subset-ams.map # AMS fonts not provided by lm-rep # needed with the lm-rep maps to avoid duplicate entries from the ams maps # msbm msbm5 MSBM5 msbm5.pfb msbm6 MSBM7 msbm7.pfb msbm7 MSBM7 msbm7.pfb msbm8 MSBM7 msbm7.pfb msbm9 MSBM10 msbm10.pfb msbm10 MSBM10 msbm10.pfb -- George N. White III [EMAIL PROTECTED] Head of St. Margarets Bay, Nova Scotia ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] a bug
Hi, Found a bug; \placecontent etc. does not work with these start-stops... === \starttext \placecontent \startchapter[ref=knuth,title=Knuth] \input knuth \at{Page}[knuth] Text\footnote[one]{First footnote} text Text \startfootnote[two] Second footnote \stopfootnote text Text \startfootnote Third footnote \stopfootnote text see \in{footnote}[one] or \in{footnote}[two] %\unknown \let\ellipsis=\unknown \ellipsis \stopchapter \chapter{Test} \stoptext === log: === ! Undefined control sequence. argument \? ?se \??se \v!chapter \c!title \getvalue #1-\csname #1 \endcsname \listtextcommand #1-\begstrut #1 \endstrut \doattributes ...sname [EMAIL PROTECTED] \endcsname \fi {#4 }\dostopattributes argument ...{\??se \??se \v!chapter \c!title }}} \egroup \ifdim \wd 4=\zero... \secondoftwoarguments #1#2-#2 ... l.25 ...hapter \c!title }}{2--0-1-0-0-0-0-0--1}{1} === don't know if this is fatal but thought you would want to know. Best Idris -- Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523 -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] a bug
That was supposed to be private to Wolfgang, sorry... On Sun, 15 Apr 2007 11:07:49 -0600, Idris Samawi Hamid [EMAIL PROTECTED] wrote: Hi, -- Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523 -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] texexec+mpost cmr10 vs CMR10 trouble using dvips backend
On Sun, 15 Apr 2007 16:23:35 +0100 Sanjoy Mahajan [EMAIL PROTECTED] wrote: If you set prologues := 1 in the mp file, that should help. That still gave Courier fonts after including fig.1 in test.ps. In a new metapost (texlive2007) you can even generate an image with the font included by using prologues := 3. That worked. [I'm using MetaPost 0.993 (Web2C 7.5.6) from the Debian texlive2007-2 packages.] From p.24 of the corresponding mpman.pdf manual: It is worth noting that the default value prologues:=0 is sufficient for graphics included in TEX-based documents. Does that need a slight exception added to it? Or have I misconfigured something in the toolchain from .tex + .mp to .ps? By the way, the figure works fine with prologues := 0 if I include it (using epsf.tex) in a plain-TeX document. So I think there's something slightly off about what ConTeXt is doing. -Sanjoy Hi Sanjoy, can also try to create the pd file by hand with dvips -Ppdf test, that gave a correct output on my system. The texexec way used Courier in the PS-File, the dvips use cmr10 in the PS-File. Wolfgang ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] using of field failed when arrange subpages
Hi, I've tried Hans' example introduced at mwidget-p.pdf, it's perfect. But when I was trying some subpage arrangements, it just failed. How could it happen? I guess either shiping out subpages forget the fields or something has covered over them. Here's a small example (by the way, I don't actually know the meanings of the arguments of \dosetuparrangement, I'm very appreciated if someone could explain the macro to me.): = \setupinteraction [state=start] \installpagearrangement TEMP {\dosetuparrangement{1}{1}{1}{0}{0}% \pusharrangedpageTEMP\poparrangedpagesAonly\relax} \def\pusharrangedpageTEMP#1% {\doglobal\increment\arrangedpageN \reportarrangedpage\arrangedpageN \ifcase\arrangedpageN \or \handlearrangedpageXandY{#1}0{11}0\arrangedpageA \or \handlearrangedpageXandY{#1}0{9}0\arrangedpageA \or \handlearrangedpageXandY{#1}0{7}0\arrangedpageA \or \handlearrangedpageXandY{#1}0{5}0\arrangedpageA \or \handlearrangedpageXandY{#1}0{3}0\arrangedpageA \or \handlearrangedpageXandY{#1}0{1}0\arrangedpageA \poparrangedpages \fi} \def\poparrangedpagesAonly {\ifnum\arrangedpageN\zerocount \dontcomplain \paperwidth\arrangedpageX\paperwidth \paperheight\arrangedpageY\paperheight \outputarrangedbox\arrangedpageA \doglobal\newcounter\arrangedpageN \fi} \definepapersize [Column] [width=40pt, height=400pt, offset=0pt] \definepapersize [Scroll] [width=540pt, height=400pt, offset=0pt] \setuppapersize[Column][Scroll] \setuparranging[TEMP,background] \setuplayout [margin=0pt, width=fit, height=middle, leftmargin=0pt, rightmargin=0pt, leftedge=0pt, rightedge=0pt, header=0pt, footer=0pt, bottom=0pt, top=0pt, backspace=0pt, topspace=0pt, bottomspace=0pt, horoffset=0pt, veroffset=0pt, headerdistance=0pt, footerdistance=0pt, topdistance=0pt, bottomdistance=0pt] \pdfoptionpdfminorversion=6 \title{What?} \starttext \newcounter\abc \doglobal\increment\abc \setupfields [reset] \setupfield [HelpSetup] [width=1.2em,height=fit,frame=off,option={readonly,hidden}] \def\currenthelp{Help::\abc} \definefield [\currenthelp] [check] [HelpSetup] [helpinfo\abc] [helpinfo\abc] \definesymbol [helpinfo\abc] [\SomeHelpText] \def\SomeHelpText% {\framed [width=1.2em,height=fit,align=middle,style=small, frame=on,background=color,backgroundcolor=white,framecolor=red] {Some texts}} \inright{\fitfield[\currenthelp]} Click \goto{here}[JS(Toggle_Hide{\currenthelp})] to see. \dorecurse{10}{\input knuth\endgraf} \stoptext = -- Sincerely yours, Chen Zhi-chu Chen | Shanghai Synchrotron Radiation Facility No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China tel: 086 21 5955 3405 | zhichu.chen.googlepages.com | www.sinap.ac.cn ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] texexec+mpost cmr10 vs CMR10 trouble using dvips backend
can also try to create the pd file by hand with dvips -Ppdf test, that gave a correct output on my system. Thanks, that works. I guess -Ppdf tells it to use map files that find the type1 fonts, so cmr in the metapost figures is replaced by the lmodern .pfb. Oh, that's not what happens: it instead finds the cmr10.pfb and includes it correctly. So the final document uses lmodern for the page number (from the ConTeXt src file) and cmr10 for the 'hello' from the metapost figure. Though I'm a bit scared of -Ppdf from years ago when I think it caused encoding problems. A few characters didn't show up correctly in the pdf file, but only when using non-cmr fonts. -Sanjoy `Not all those who wander are lost.' (J.R.R. Tolkien) ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context