Re: [NTG-context] Feature Request: \startitemize[text]
On Sun, Jan 13, 2008 at 11:41 PM, Aditya Mahajan <[EMAIL PROTECTED]> wrote: > Hi Hans, > > I have always found the space at the beginning of each item in > \startitemize[text] to be too large. Currently, this is hard coded to be > \emwidth plus \intertwordstretch minus \interwordshrink (line 1132 of > core-itm.tex with the comment "new per 2006/10/20"). I always end of > copying the definition of complexdoitemgroupitem to my private modules and > changing the emwidth in the definition to 0.5\emwidth. Can you please keep > this key to be configurable with a key (textinbetween)? > > BTW, any particular reason not to simply say > \removeunwantedspaces\space\ignorespaces instead of > \removeunwantedspaces\hskip\emwidth\!!plus\interwordstretch\!!minus\interwordshrink\relax > \stopitemgroup uses just the first variant. > > Thanks, > Aditya Hi Aditya, what do you about the following solution, the space between each item is configurable with the "space" key, the fourth parameter \dostartitemgroup gobbles we get from \startitemize if we use two parameters. \unprotect \def\complexdoitemgroupitem[#1]% {\ifconditional\textlistitem % begin of item \else \par \fi %\ignorespaces \ifconditional\concatnextitem % new, concat \doitembreak\nobreak% new, concat \fi % new, concat \doadvanceitem \ifcase\itemcolumndepth \ifnum\noflistelements>0\relax % wrong, but why was this here in the first place, probably some % mistaken change when cleaning up: \doitembreak\nobreak \fi\fi \ifconditional\firstlistitem \setfalse\firstlistitem \begingroup \ifcase\currentitemlevel \or % 1 \ifcase\itemcolumndepth \ifconditional\introlistitem\doitembreak\nobreak\fi \itembeforecommand % \getitemparameter\currentitemlevel\c!before \ifconditional\introlistitem\doitembreak\nobreak\fi \fi \else % 2 en hoger \ifconditional\paragraphlistitem \else \let\previtemlevel\currentitemlevel \decrement\previtemlevel \ifcase\autoitemgroupspacing\relax % nieuw \itembeforecommand \or \doifelsenothing{\itembeforecommand} {\itembeforecommand} {\getitemparameter\previtemlevel\c!inbetween}% \else \getitemparameter\previtemlevel\c!inbetween % == itemlevel-1 \fi \fi \fi \else \ifconditional\textlistitem % was bugged: \inlinelistitem \removeunwantedspaces % \removeunwantedspaces\hskip\interwordspace\!!plus\emwidth\relax % new per 2006/10/20 % \removeunwantedspaces\hskip\emwidth\!!plus\interwordstretch\!!minus\interwordshrink\relax % new per 2006/10/20 % begin wolf \doifsomethingelse{\getitemparameter\currentitemlevel\c!space} {\hskip\getitemparameter\currentitemlevel\c!space\relax} {\hskip\emwidth\!!plus\interwordstretch\!!minus\interwordshrink\relax}% % end wolf \else \iteminbetweencommand \fi \fi \ifconditional\concatnextitem % new, concat \vskip-\lastskip% new, concat \vskip-\lineheight % new, concat \nobreak% new, concat \fi % new, concat %\ignorespaces \dolistitem \relax \ifconditional\packlistitem \setupwhitespace[\v!none]% \fi \getitemparameter\currentitemlevel\c!inner \marsymbol \let\marsymbol\relax \doifsomething{#1} {\doifnot\itemreference\unknownitemreference {\bgroup \protectconversion \rawreference\s!lst{#1}\itemreference \egroup}}% \strut % added 11-08-99 \setfalse\concatnextitem % new, concat \nobreak % else problems with intext items \hskip\itemsignal% new, concat \getitemparameter\currentitemlevel\c!command} % \defaultitemcommand \def\startitemgroup {\doquadrupleempty\dostartitemgroup} \def\dostartitemgroup[#1][#2][#3][]% {\bgroup \ifnum\currentitemlevel=\zerocount \def\currentitemgroup{#1}% no nested mixing of itemgroups \fi \ifthirdargument \dodostartitemgroup[#2][#3]% \else \doifassignmentelse{#2} {\dodostartitemgroup[][#2]} {\dodostartitemgroup[#2][]}% \fi} \setupitemgroups [\c!space=] \protect \showframe \starttext before \startitemize[text][space=\interwordspace] \item text \item text \item text \stopitemize after \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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] rule=on in \columnset?
Jelle Huisman wrote: Wolfgang Schuster wrote: \startuseMPgraphic{columnrule} path p ; p := unitsquare xyscaled (OverlayWidth+5mm,OverlayHeight) ; draw (xpart(urcorner p),ypart(urcorner p)-\the\dimexpr\noflines\lineheight\relax) -- urcorner p ; setbounds currentpicture to p ; \stopuseMPgraphic Thanks Wolfgang!, this is precisely what I need. I'll wikify it. (Think it's time to learn some MP...) Oeps, I have found one problem: if there is text before the columnset, like a chapter header, the text in the columnset moves down but the {columnrule} stays at the top of the page... How can I modify the code the make sure that this doesn't happen? See sample: %sample% \definecolumnset[example][n=3,distance=5mm] \startuseMPgraphic{columnrule} path p ; p := unitsquare xyscaled (OverlayWidth+5mm,OverlayHeight) ; draw (xpart(urcorner p),ypart(urcorner p)-\the\dimexpr\noflines\lineheight\relax) -- urcorner p ; setbounds currentpicture to p ; \stopuseMPgraphic \defineoverlay[columnrule][\useMPgraphic{columnrule}] \setupcolumnset[example][1,2][balance=yes,background=columnrule] \setupcolumnsetlines[example][1][1][-35] \setupcolumnsetlines[example][1][2][-35] \setupcolumnsetlines[example][1][3][-35] \starttext %\input knuth % <- uncomment this to see problem \startcolumnset[example] \dorecurse{2}{\input knuth} \stopcolumnset \stoptext %/sample% Thanks again, Jelle (MkII/XeTeX) ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] luatex 0.30.1
On Thu, Oct 16, 2008 at 10:40 AM, Taco Hoekwater wrote: > > Can someone tell me what the exact version of luatex is in the > minimals? (and what platform, esp. for failures) Source repository fetches the latest beta version with (I guess) one hour delay or so. Binaries get commited by several people, so it depends on when they run the "build-and-commit" script. Versions are stored in http://svn.contextgarden.net/minimals/bin/tex/linux/current/VERSIONS. (But it can also happen that build fails and one commits only the version tag, no actual binary. I hope that Peter's patch ruled out that possibility.) 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] rule=on in \columnset?
luigi scarso wrote: Can you put on the wiki ? I will do that, but preferably together with an answer to my question... The only problem is that the height of the columnrule is fixed, which doesn't look right with balanced columns :-( Would it be possible to force this MPgraphic{columnrule} to use the actual height of the balanced columns, instead of going all the way down to the bottom of the page regardless of the actual column height? Or should I give up on this question? (I'm on MkII/XeTeX for this project, so no lua based solution possible.) Jelle ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] luatex 0.30.1
On Thu, Oct 16, 2008 at 12:12 PM, Wolfgang Schuster < [EMAIL PROTECTED]> wrote: > On Thu, Oct 16, 2008 at 10:40 AM, Taco Hoekwater <[EMAIL PROTECTED]> > wrote: > > > > > > luigi scarso wrote: > >> > >> > >> No problem here with > >> This is LuaTeX, Version snapshot-0.30.1-2008100915, build unknown > >> # context --version > >> MtxRun | main context file: > >> /opt/luatex/tex/texmf-local/tex/context/base/context.tex > >> MtxRun | current version: 2008.08.05 18:47 > >> > >> But the same > >> MtxRun | fatal error, message: luatex: execution interrupted > >> with minimals. > >> A mplib problem ? > > > > This is likely to be a lua coroutine problem, there have been > > some changes to that part of the code, and coroutines are used > > by the mkiv xml parser. > > > > Can someone tell me what the exact version of luatex is in the > > minimals? (and what platform, esp. for failures) > > Mac OS 10.5 > This is LuaTeX, Version snapshot-0.30.1-2008100910, build 1552 > ConTeXt ver: 2008.10.08 23:34 MKIV fmt: 2008.10.15 int: english/english > > minimals and minimal-beta rebuild on 16 oct 2008, approx 19:15 systems: begin file test-wolfgang at line 22 MtxRun | fatal error, message: luatex: execution interrupted # uname -a Linux luigicasa-laptop 2.6.24-21-generic #1 SMP Mon Aug 25 17:32:09 UTC 2008 i686 GNU/Linux # luatex --version This is LuaTeX, Version snapshot-0.30.1-2008100914, build unknown t# context --version MtxRun | main context file: /opt/luatex/minimals-beta/tex/texmf-context/tex/context/base/context.tex MtxRun | current version: 2008.10.08 23:34 systems: begin file test-wolfgang at line 22 MtxRun | fatal error, message: luatex: execution interrupted # uname -a Linux luigicasa-laptop 2.6.24-21-generic #1 SMP Mon Aug 25 17:32:09 UTC 2008 i686 GNU/Linux # luatex --version This is LuaTeX, Version snapshot-0.30.1-2008100914, build unknown # context --version MtxRun | main context file: /opt/luatex/minimals/tex/texmf-context/tex/context/base/context.tex MtxRun | current version: 2008.08.05 18:47 -- luigi ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Page numbering in Adobe Reader
Hi Hans and Taco, Some guy think it's cool to use romannumeral numbers in the preface and so is in the Adobe Reader. I searched the source but apparently it is not provided. I made a very dirty test file so could you make a switch in the \setupinteraction officially? My test file is like: == \pdfcompresslevel 0 \setupinteraction [state=start, focus=width, page=yes, openaction=firstpage, click=no, title=TEST, author=Neals, subtitle=Test, keyword={test}] \setupcolors [state=start] \newcount\FrontPageNumbers \setupsubpagenumber[way=bytext,state=start] \setuppagenumbering[location=] \startsectionblockenvironment[frontpart] \setupfootertexts[pagenumber] \setuppagenumbering[conversion=romannumerals] \stopsectionblockenvironment \startsectionblockenvironment[bodypart] \global\FrontPageNumbers=\pagenumber \global\advance\FrontPageNumbers\minusone \setuppagenumber[number=1] \resetsubpagenumber % \setupfootertexts[\the\FrontPageNumbers] \setupfootertexts[pagenumber] \stopsectionblockenvironment \startsectionblockenvironment[backpart] \resetsubpagenumber \stopsectionblockenvironment \def\PageLabels{\pdfcatalog{/PageLabels << /Nums [ 0 << /S /r >> \the\FrontPageNumbers << /S /D >> ] >> >>}} \prependtoks \PageLabels \to \everystoptext \starttext \startfrontmatter % \chapter{Table of Contents} \completecontent[interaction=all] \chapter{Preface} \dorecurse{10}{\input zapf\par} % \chapter{Preface} % \dorecurse{10}{\input zapf\par} % \chapter{Preface} % \dorecurse{10}{\input zapf\par} \stopfrontmatter \startbodymatter \chapter{Test} \dorecurse{15}{\input tufte\par} \chapter{TestAgain} \dorecurse{15}{\input ward\par} \stopbodymatter \startbackmatter Index maybe. \stopbackmatter \stoptext == A lot of the code to setup the main layout is stolen from Wolfgang :) -- Best Regards 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 ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] rule=on in \columnset?
Wolfgang Schuster wrote: > \startuseMPgraphic{columnrule} > path p ; p := unitsquare xyscaled (OverlayWidth+5mm,OverlayHeight) ; > draw (xpart(urcorner p),ypart(urcorner > p)-\the\dimexpr\noflines\lineheight\relax) -- urcorner p ; > setbounds currentpicture to p ; > \stopuseMPgraphic Thanks Wolfgang!, this is precisely what I need. I'll wikify it. (Think it's time to learn some MP...) Jelle ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] luatex fails
>> LuaTools | no luc/lua with name: /var/folders/+T/+ThqZosGGzOznrLsOw-fz+ >> +++TM/-Tmp-/luatex-cache/context/formats/cont-en > > (interesting tmp path, btw) That's the standard appearance of TMPDIR on Mac OS X. We had hundred-message long discussions about this on dev-context, Taco! :-) Arthur ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] rule=on in \columnset?
On Thu, Oct 16, 2008 at 1:54 PM, Jelle Huisman <[EMAIL PROTECTED]> wrote: > Jelle Huisman wrote: >> Maybe I miss something, but it looks there is no rule=on command for use >> in columnsets? I just want a vertical line between the columns in my >> columnset, how do I get that? > > Answering myself: I have found this solution, using an MP background: > http://archive.contextgarden.net/message/20080305.203901.d1d3eccf.en.html > > %sample% > \definecolumnset[example][n=3,distance=5mm] > > \startuseMPgraphic{columnrule} > path p ; p := unitsquare xyscaled (OverlayWidth+5mm,OverlayHeight) ; > draw lrcorner p -- urcorner p ; > setbounds currentpicture to p ; > \stopuseMPgraphic \startuseMPgraphic{columnrule} path p ; p := unitsquare xyscaled (OverlayWidth+5mm,OverlayHeight) ; draw (xpart(urcorner p),ypart(urcorner p)-\the\dimexpr\noflines\lineheight\relax) -- urcorner p ; setbounds currentpicture to p ; \stopuseMPgraphic > \defineoverlay[columnrule][\useMPgraphic{columnrule}] > > \setupcolumnset[example][1,2][background=columnrule] > > \setupcolumnsetlines[example][2][1][-26] > \setupcolumnsetlines[example][2][2][-26] > \setupcolumnsetlines[example][2][3][-26] > > \starttext > > \startcolumnset[example] > \dorecurse{10}{\input knuth} > \stopcolumnset > > \stoptext > %/sample% > > The only problem is that the height of the columnrule is fixed, which > doesn't look right with balanced columns :-( Would it be possible to > force this MPgraphic{columnrule} to use the actual height of the > balanced columns, instead of going all the way down to the bottom of the > page regardless of the actual column height? Or should I give up on this > question? (I'm on MkII/XeTeX for this project, so no lua based solution > possible.) > > Many thanks, > > Jelle 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] fallbacks for characters
Thomas A. Schmitz wrote: > On Oct 16, 2008, at 11:26 AM, Wolfgang Schuster wrote: > >> On Thu, Oct 16, 2008 at 9:47 AM, Thomas A. Schmitz >> <[EMAIL PROTECTED]> wrote: >>> Hi all, >>> >>> the answer to this one may be completely obvious, but I haven't found >>> anything: I know we can define fallback fonts in mkiv, but is it >>> possible to define fallbacks for single characters. Let's take >>> 0x0113, >>> "emacron." >> \definefontfallback [myfallback] [Fallbackfont] [0x0113] >> [force=yes|no,check=yes|no] >> >> % check : only replace when present in replacement font (default: no) >> % force : force replacent even when basefont has glyph (default: yes) >> >>> Is it possible to define "if character is present in >>> current font, use it; else \buildtextaccent\macron e" ? > > Wolfgang, thanks for your answer! But if I understand > definefontfallback correctly, this will define a replacement font - > that's not what I want. I want to take glyphs from the same font, > either the matching glyph or a composite one. you can falback on the fotn itself then but, did you try the compose=yes feature? - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] rule=on in \columnset?
Can you put on the wiki ? On Thu, Oct 16, 2008 at 1:54 PM, Jelle Huisman <[EMAIL PROTECTED]> wrote: > Jelle Huisman wrote: > > Maybe I miss something, but it looks there is no rule=on command for use > > in columnsets? I just want a vertical line between the columns in my > > columnset, how do I get that? > > Answering myself: I have found this solution, using an MP background: > http://archive.contextgarden.net/message/20080305.203901.d1d3eccf.en.html > > > %sample% > \definecolumnset[example][n=3,distance=5mm] > > \startuseMPgraphic{columnrule} > path p ; p := unitsquare xyscaled (OverlayWidth+5mm,OverlayHeight) ; > draw lrcorner p -- urcorner p ; > setbounds currentpicture to p ; > \stopuseMPgraphic > > \defineoverlay[columnrule][\useMPgraphic{columnrule}] > > \setupcolumnset[example][1,2][background=columnrule] > > \setupcolumnsetlines[example][2][1][-26] > \setupcolumnsetlines[example][2][2][-26] > \setupcolumnsetlines[example][2][3][-26] > > \starttext > > \startcolumnset[example] > \dorecurse{10}{\input knuth} > \stopcolumnset > > \stoptext > %/sample% > > The only problem is that the height of the columnrule is fixed, which > doesn't look right with balanced columns :-( Would it be possible to > force this MPgraphic{columnrule} to use the actual height of the > balanced columns, instead of going all the way down to the bottom of the > page regardless of the actual column height? Or should I give up on this > question? (I'm on MkII/XeTeX for this project, so no lua based solution > possible.) > > Many thanks, > > Jelle > > ___ > 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 : https://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___ > -- luigi ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] metapost behaving different
Hi Hans, Hans van der Meer wrote: > > Why is mkii behaving differently and not affected by pen changes? > Is this to be expected from metapost (and thus to be considered normal > behaviour) or did a bug creep in? Can you please post a small complete example? Best wishes, Taco ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] rule=on in \columnset?
Jelle Huisman wrote: > Maybe I miss something, but it looks there is no rule=on command for use > in columnsets? I just want a vertical line between the columns in my > columnset, how do I get that? Answering myself: I have found this solution, using an MP background: http://archive.contextgarden.net/message/20080305.203901.d1d3eccf.en.html %sample% \definecolumnset[example][n=3,distance=5mm] \startuseMPgraphic{columnrule} path p ; p := unitsquare xyscaled (OverlayWidth+5mm,OverlayHeight) ; draw lrcorner p -- urcorner p ; setbounds currentpicture to p ; \stopuseMPgraphic \defineoverlay[columnrule][\useMPgraphic{columnrule}] \setupcolumnset[example][1,2][background=columnrule] \setupcolumnsetlines[example][2][1][-26] \setupcolumnsetlines[example][2][2][-26] \setupcolumnsetlines[example][2][3][-26] \starttext \startcolumnset[example] \dorecurse{10}{\input knuth} \stopcolumnset \stoptext %/sample% The only problem is that the height of the columnrule is fixed, which doesn't look right with balanced columns :-( Would it be possible to force this MPgraphic{columnrule} to use the actual height of the balanced columns, instead of going all the way down to the bottom of the page regardless of the actual column height? Or should I give up on this question? (I'm on MkII/XeTeX for this project, so no lua based solution possible.) Many thanks, Jelle ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] fallbacks for characters
On Oct 16, 2008, at 11:26 AM, Wolfgang Schuster wrote: > On Thu, Oct 16, 2008 at 9:47 AM, Thomas A. Schmitz > <[EMAIL PROTECTED]> wrote: >> Hi all, >> >> the answer to this one may be completely obvious, but I haven't found >> anything: I know we can define fallback fonts in mkiv, but is it >> possible to define fallbacks for single characters. Let's take >> 0x0113, >> "emacron." > > \definefontfallback [myfallback] [Fallbackfont] [0x0113] > [force=yes|no,check=yes|no] > > % check : only replace when present in replacement font (default: no) > % force : force replacent even when basefont has glyph (default: yes) > >> Is it possible to define "if character is present in >> current font, use it; else \buildtextaccent\macron e" ? > Wolfgang, thanks for your answer! But if I understand definefontfallback correctly, this will define a replacement font - that's not what I want. I want to take glyphs from the same font, either the matching glyph or a composite one. Thomas ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] metapost behaving different
Drawing with a square pen gives better rectangles My metapost code is something like: pickup square pen draw rectangle with label within (macro call) label drawing within the rectangle is essentially done with % prevent wobbling of text boxes with uneven depth pic := textext("\setbox0=\hbox{"&labeltext&"}\dp0=0pt\box0"); % pic goes into rectangle Under mkii this worked but under mkiv the text is mangled. To restore proper text I had to surround this with pen commands: pentemp := savepen; pickup pencircle scaled 0pt; % apparently any size will do % prevent wobbling of text boxes with uneven depth pic := textext("\setbox0=\hbox{"&labeltext&"}\dp0=0pt\box0"); % pic goes into rectangle pickup pentemp; Why is mkii behaving differently and not affected by pen changes? Is this to be expected from metapost (and thus to be considered normal behaviour) or did a bug creep in? Using luatex 0.30.1 and 2008.08.05 18:47 MKIV. [By the way, sometxt doesn't work here and I have to stick with textext.] 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] luatex 0.30.1
On Thu, Oct 16, 2008 at 10:40 AM, Taco Hoekwater <[EMAIL PROTECTED]> wrote: > > > luigi scarso wrote: >> >> >> No problem here with >> This is LuaTeX, Version snapshot-0.30.1-2008100915, build unknown >> # context --version >> MtxRun | main context file: >> /opt/luatex/tex/texmf-local/tex/context/base/context.tex >> MtxRun | current version: 2008.08.05 18:47 >> >> But the same >> MtxRun | fatal error, message: luatex: execution interrupted >> with minimals. >> A mplib problem ? > > This is likely to be a lua coroutine problem, there have been > some changes to that part of the code, and coroutines are used > by the mkiv xml parser. > > Can someone tell me what the exact version of luatex is in the > minimals? (and what platform, esp. for failures) Mac OS 10.5 This is LuaTeX, Version snapshot-0.30.1-2008100910, build 1552 ConTeXt ver: 2008.10.08 23:34 MKIV fmt: 2008.10.15 int: english/english 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] fallbacks for characters
On Thu, Oct 16, 2008 at 9:47 AM, Thomas A. Schmitz <[EMAIL PROTECTED]> wrote: > Hi all, > > the answer to this one may be completely obvious, but I haven't found > anything: I know we can define fallback fonts in mkiv, but is it > possible to define fallbacks for single characters. Let's take 0x0113, > "emacron." \definefontfallback [myfallback] [Fallbackfont] [0x0113] [force=yes|no,check=yes|no] % check : only replace when present in replacement font (default: no) % force : force replacent even when basefont has glyph (default: yes) > Is it possible to define "if character is present in > current font, use it; else \buildtextaccent\macron e" ? 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] fallbacks for characters
Hi all, the answer to this one may be completely obvious, but I haven't found anything: I know we can define fallback fonts in mkiv, but is it possible to define fallbacks for single characters. Let's take 0x0113, "emacron." Is it possible to define "if character is present in current font, use it; else \buildtextaccent\macron e" ? Thomas ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] luatex 0.30.1
luigi scarso wrote: > > > No problem here with > This is LuaTeX, Version snapshot-0.30.1-2008100915, build unknown > # context --version > MtxRun | main context file: > /opt/luatex/tex/texmf-local/tex/context/base/context.tex > MtxRun | current version: 2008.08.05 18:47 > > But the same > MtxRun | fatal error, message: luatex: execution interrupted > with minimals. > A mplib problem ? This is likely to be a lua coroutine problem, there have been some changes to that part of the code, and coroutines are used by the mkiv xml parser. Can someone tell me what the exact version of luatex is in the minimals? (and what platform, esp. for failures) Best wishes, Taco ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] XML
Wolfgang Schuster wrote: > \startxmlsetups text:span > \bgroup > \xmlfilter{main}{office:automatic-styles/style:[EMAIL > PROTECTED]:name='\xmlatt{#1}{style-name}']/style:text-properties/command(do:style:text-properties)} > \xmlflush{#1} > \egroup > \stopxmlsetups Just saw this now ... will try tonight. Thanks! Joh ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] XML
Wolfgang Schuster wrote: > \startxmlsetups text:span > \bgroup > \xmlfilter{main}{office:automatic-styles/style:[EMAIL > PROTECTED]:name='\xmlatt{#1}{style-name}']/style:text-properties/command(do:style:text-properties)} > \xmlflush{#1} > \egroup > \stopxmlsetups Just saw this now ... will try tonight. Thanks! Joh ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] luatex 0.30.1
On Thu, Oct 16, 2008 at 8:33 AM, Wolfgang Schuster < [EMAIL PROTECTED]> wrote: > On Wed, Oct 15, 2008 at 1:31 PM, Hans Hagen <[EMAIL PROTECTED]> wrote: > > Wolfgang Schuster wrote: > >> On Wed, Oct 15, 2008 at 9:56 AM, Thomas A. Schmitz > >> <[EMAIL PROTECTED]> wrote: > >>> On Oct 14, 2008, at 11:18 PM, Hans Hagen wrote: > >>> > Thomas A. Schmitz wrote: > > Hi Taco, > > > > is it possible that luatex 0.30.1 is a little bit broken? When I try > > to process an xml file with it and the latest beta, I get no pdf > > output (but also no errors; it simply doesn't process the contents). > > Downgrading to luatex 0.30.0 solves this problem; I get the expected > > output. > hm, do you have a small test file? > > Hans > >>> > >>> I'll work on it the next days (no time today). > >> > >> I got the same problem with the files from Johannese Graumann > >> (thread: XML), you could use for the test. > > > > can you be a bit more specific? i cannot (yet) upload a beta because i'm > > in the middle of testing some changes in multipass data (prelude to > > moving from tuo to tuc completely) > > Here is a example: > > \startxmlsetups office >\xmlsetsetup{main}{document|p}{*} > \stopxmlsetups > > \xmlregistersetup{office} > > \startxmlsetups document >\xmlflush{#1}\par > \stopxmlsetups > > \startxmlsetups p >\xmlflush{#1}\par > \stopxmlsetups > > \startbuffer[test] > > > Text > > \stopbuffer > > \starttext > \xmlprocessbuffer{main}{test}{} > \stoptext > > ConTeXt creates the tuc, tuo and log files but all three of them are empty, > all I get are these messages on the terminal: > > Rover:ntgcontextxml wolf$ context test > MtxRun | loading configuration for /Users/wolf/context/texmf/web2c > from > /Users/wolf/context/texmf-cache/luatex-cache/context/e5ae5b843cdf28d6425fc602d0958beb/trees/2a0f957ce5573724622167658c90e154 > MtxRun | run 1: luatex > > --fmt="/Users/wolf/context/texmf-cache/luatex-cache/context/e5ae5b843cdf28d6425fc602d0958beb/formats/cont-en" > > --lua="/Users/wolf/context/texmf-cache/luatex-cache/context/e5ae5b843cdf28d6425fc602d0958beb/formats/cont-en.lua" > "./test" > (test.tex > > ConTeXt ver: 2008.10.08 23:34 MKIV fmt: 2008.10.15 int: english/english > > language : language en is active > system : cont-new loaded > (/Users/wolf/context/texmf-local/tex/context/base/cont-new.tex > systems : beware: some patches loaded from cont-new.tex > (/Users/wolf/context/texmf-local/tex/context/base/cont-new.mkiv > lua: used config path - > /Users/wolf/context/texmf/web2c/texmf.cnf > lua: used cache path - > > /Users/wolf/context/texmf-cache/luatex-cache/context/e5ae5b843cdf28d6425fc602d0958beb > ) (/Users/wolf/context/texmf-local/tex/context/base/cont-mtx.tex)) > system : cont-old loaded > (/Users/wolf/context/texmf-local/tex/context/base/cont-old.tex > loading: Context Old Macros > ) > system : cont-fil loaded > (/Users/wolf/context/texmf-local/tex/context/base/cont-fil.tex > loading: Context File Synonyms > ) > system : cont-sys loaded > (/Users/wolf/context/texmf-local/tex/context/user/cont-sys.tex > (/Users/wolf/context/texmf-local/tex/context/base/type-tmf.tex) > (/Users/wolf/context/texmf-local/tex/context/base/type-siz.tex) > (/Users/wolf/context/texmf-local/tex/context/base/type-otf.tex)) > bodyfont : 12pt rm is loaded > specials : tex loaded > system : test.top loaded > (test.top > specials : loading definition file tpd > (/Users/wolf/context/texmf-local/tex/context/base/spec-tpd.tex > specials : loading definition file fdf > (/Users/wolf/context/texmf-local/tex/context/base/spec-fdf.tex > (/Users/wolf/context/texmf-local/tex/context/base/spec-fdf.mkiv)) > specials : fdf loaded > (/Users/wolf/context/texmf-local/tex/context/base/spec-tpd.mkiv)) > specials : fdf loaded > ) > utilityfile | not present > systems: begin file test at line 22 > MtxRun | fatal error, message: luatex: execution interrupted > > No problem here with This is LuaTeX, Version snapshot-0.30.1-2008100915, build unknown # context --version MtxRun | main context file: /opt/luatex/tex/texmf-local/tex/context/base/context.tex MtxRun | current version: 2008.08.05 18:47 But the same MtxRun | fatal error, message: luatex: execution interrupted with minimals. A mplib problem ? -- luigi ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Changing margins mid-page?
On Tue, Oct 14, 2008 at 10:28 PM, Alexandros Frantzis <[EMAIL PROTECTED]> wrote: > > I, too, am trying to create a similar CV layout. As I have already > reported in other emails to the list, I have been having trouble when > the first thing after the title is an enumeration. More specifically, > the first item of the enumeration is not aligned with the title in the > margin (it is always placed a bit below). Unfortunately, this still > happens when using descriptions. > > A way around this is to use something like \setupitemize[before=\vskip -20pt]. > But this is specific to the font sizes I am using and a bit ugly. I have tried > suppressing the whitespace around itemizations (nowhite, joinedup) and/or > using > stuff like \blank[disable] and \blank[back] but to no avail. > > Does anyone know of a better, more generic way of doing this or even if > it is possible (judging from the lack of answers to my previous posts I > am guessing this is not something trivial)? > > Thanks, > Alexandros > > --- START CODE > \definedescription[desc][location=inmargin,width=broad] > > \starttext > > \startdesc{Description1} > This is the text of desc1. > This is the text of desc1. > This is the text of desc1. > This is the text of desc1. > This is the text of desc1. > This is the text of desc1. > This is the text of desc1. > \stopdesc > > \startdesc{Description2} > > \startitemize[packed,nowhite,joinedup] > \item First item (should be right next to title) > \item Second item > \item Third item > \stopitemize > > \stopdesc \startdesc{Description2} % \quad\startitemize[text,packed,nowhite,joinedup] \item First item (should be right next to title)\par \item Second item\par \item Third item \stopitemize \stopdesc > \stoptext > END 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___