Re: [NTG-context] Fonts in minimal
On Thu, May 21, 2009 at 8:49 AM, Maurício wrote: > Hi, > > The minimal Context distributions comes with > many fonts. Are there predefined (using mfonts.pdf > terminology) simple, body or typeface definitions > available for those fonts, or a subset of them? > Yes. see showfonts.pdf > Thanks, > Maurício > > ___ > 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 > ___ > ___ 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] two newbie questions (about conditional processing)
Hi, I have a new book to design, but I don't know how to do page/content conditional processing). Please help me:) - I want my chapter page (first page of each chapter) to be really distinctive. that is, I define a dark color background, and want all the text on the first page set in white. how can I do that? for example \chapter{hello} \dorecurse{10}{\input zapf } % all the characters in the first page should white, others should set in black. - I want to insert graphics and images. all the graphics are inserted using \placeexternalfigures. I want all the pages where the insertion happens to be quite distictive (that is, have a very narrow text layout, and leave the large margin for the figures. However, when a page starts, TeX does not know wheter or not an external figure will be placed on this page, so it really has no idea whether this page should be set narrower or not. how can I do that? Thanks. Yue Wang ___ 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] Fonts in minimal
Hi, The minimal Context distributions comes with many fonts. Are there predefined (using mfonts.pdf terminology) simple, body or typeface definitions available for those fonts, or a subset of them? Thanks, Maurício ___ 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] bugs in math engine?
On Wed, 20 May 2009, Oliver Buerschaper wrote: Proposed patch: diff math-def.mkiv.orig math-def.mkiv 100,105c100,105 < \definemathcommand [integers] {\mathblackboard{Z}} < \definemathcommand [reals] {\mathblackboard{R}} < \definemathcommand [rationals] {\mathblackboard{Q}} < \definemathcommand [naturalnumbers]{\mathblackboard{N}} < \definemathcommand [complexes] {\mathblackboard{C}} < \definemathcommand [primes]{\mathblackboard{P}} --- \definemathcommand [integers] {{\mathblackboard Z}} \definemathcommand [reals] {{\mathblackboard R}} \definemathcommand [rationals] {{\mathblackboard Q}} \definemathcommand [naturalnumbers]{{\mathblackboard N}} \definemathcommand [complexes] {{\mathblackboard C}} \definemathcommand [primes]{{\mathblackboard P}} Hans, Aditya, does this make sense? Yes, I should unlearn amsmath syntax at some stage. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Multicol float vertical spacing (MkII)
Hello, I have a small problem which nevertheless took already my whole day ... I'm on a multicolumn page and I have to put (numberd) figures in the textflow, at a fix position relative to the text (in this case). No sidefloats. Problem: The vertical space between the float and the following text (= after the float) is way too big. I put the floats with "force"; with "here" its even worse: I get an additional empty space *above* the float. Concerning the different column methods i noticed the following: \startcolumns: I can influence the vertical space (in general) with e.g. "blank=4pt" in the setups. This solves my problem for the moment, but is a bit ugly, because all spaces seem to be affected, also the predefined caption innerspace(!) \startcolumnset: I couldn't find any solution at all, unless grouping everything in \startpacked ...\ \stoppacked, but this of course removes every and any space. The "blank"-option isn't present in columnsets, right? Side question: While trying all this i noticed also that the v-spacing is perfect when i just use "\externalfigure ..." (without place...). But malheureusement I need the captions. Is there any way to get captions with \externalfigure (without float thingies), maintainig/ integrating in the numbering of the "normal" floating figures? I would really appreciate if anybody could show me how to adjust/ eliminate this ugly (faulty?) after float space without disturbing the whole whitespacing on the page. Thanks in advance, Tom (Greetings from Lake Léman) Here is a some kind of a minimal (not very proper nor cleaned, but it compiles on context-live and it shows what i'm talking about): % coding: utf-8 \enableregime [utf] \useencoding[fde] \mainlanguage[de] \setuphyphenmark[sign=normal] \setuppapersize [A5,landscape] [A5,landscape] \setupbodyfont [9pt] \defineitemgroup [Leg] \setupitemgroup [Leg] [each] [stopper=, before={\setupwhitespace[none]\blank[medium]\ss}, style={\ssbf}, inbetween={\blank[small]}, after={\blank[medium]}, width=1em, symalign=flushleft, headstyle=italic] [n, packed, ] \setupfloats [spaceafter=none] \setupcaptions [style=\ssx\it\setupinterlinespace, width=max, headstyle=\vii\bfx, align=justified,location=bottom, inbetween={\blank[medium]}, spaceafter=none] \setupcolumns [% blank=4pt, balance=no, tolerance=verytolerant] \definecolumnset [NormalThree] [n=3] \setupcolumnset [NormalThree] [balance=no, %blank=4pt, <-- no effect tolerance=verytolerant] % \showboxes \starttext \startcolumnset [NormalThree]% <-- comment/uncomment to see the differences % \startcolumns[n=3]% <-- comment/uncomment to see the differences \placefigure[force]{one line} {\externalfigure[frontk:mitte][width=\textwidth,height=\textheight]} \column \subsection{Frontkonsole~-- Mitte} \startLeg \item Heizung Heck-, Front- und Seitenscheiben \item Außenspiegelheizung (Option) \item Zigarettenanzünder 24\,V \item 24||V||Steckdose \item Zusatzheizung (Option) \item Ventilator mit \textellipsis \item Temperaturregler \item Aschenbecher \stopLeg \subsection{Multifunktionshebel} \placefigure[force]{one line} {\externalfigure[mufuhe:li][width=\textwidth,height=60pt]} \startpacked\ss {\it Drücken:} \startLeg[intro] \item Hupe \stopLeg {\it Drehen:} \startLeg[intro,continue] \item Licht aus \item Standlicht \item Fahrlicht: \startitemize [4] \item {\it Hebel mittig:} Abblendlicht \item {\it Hebel unten:} Fernlicht \item {\it Hebel nach oben:} Lichthupe \stopitemize \stopLeg {\it Schieben:} \startLeg[intro,continue] \item Blinker \startitemize [4] \item {\it Hebel vorne:} rechts \item {\it Hebel hinten:} links \stopitemize \stopLeg \stoppacked \placefigure[force]{one line} {\externalfigure[mufuhe:re][width=\textwidth,height=60pt]} \startpacked\ss {\it Drücken:} \startLeg [intro] \item Scheibenwaschanlage \stopLeg {\it Drehen:} \startLeg [intro,continue] \item Scheibenwischer Intervall \item Scheibenwischer aus \item Scheibenwischer Stufe 1 \item Scheibenwischer Stufe 2 \stopLeg \stoppacked % \stopcolumns% <-- comment/uncomment to see the differences \stopcolumnset % <-- comment/uncomment to see the differences \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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://
Re: [NTG-context] LilyPond module, release 2009-05-19
Thank you all for your kind responses! Now I know it's not only for myself ;-) Wolfgang just provided me with a new version with simplified code - thank you very much! So I don't have to re-implement it in Lua too soon ;-) I'll test the new one over the weekend and will release it then. Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ 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] re-posting example of header at page bottom
Am 20.05.2009 um 11:35 schrieb Jos van Gisbergen: Hi, I'm re-posting my previous reply to a request from Wolfgang Schuster to supply an example that exhibits the problem of headers at page bottom. In my previous reply the attached example was more or less obscurely hidden in a link at the bottom of the Digest. This time I included the example in the e-mail -- it's a bit long I'm afraid. Here's an example of a ConTeXt file where a header occurs at page bottom. The subsection named "Perl snippet" occurs at the bottom of page 2, followed by framed text on page 3. It would be much nicer if the header would be written on page 3. Note: I extracted this example from a real-life text; for some reason the frames in the example are drawn wrongly, but this is beside the point. I can't provide a fix or solution for this but I can tell you the page break is caused by the textbackground around the verbatim environment. 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] mtxrun initialization bug
I did a fresh install of the minimals today and observed a fleeting, obscure mtxrun bug: $ context myfile did not find the script mtx-context.lua $ mtxrun --script /usr/local/context/tex/texmf-context/\ scripts/context/lua/mtx-context.lua myfile ran fine, as now does all subsequent runs of "context myfile". So something gets initialized, but is not found by default. You will only notice this upon a (totally) fresh install. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Problem of mptopdf
hi, I tried use the "mptopdf" command to convert a figure generated by "mpost" into a .pdf file, and got following error: !pdfTeX error: pdftex.exe (file ec-lmr12): Font ec-lmr12 at 600 not found ==> Fatal error occurred, no output PDF file produced! The figures are generated from following metapost file: %%% beginfig(2) label("Haha", (2,0)); draw (for i=0 upto 7: dir(135i)-- endfor cycle); endfig; beginfig(5) label(btex Haha etex, (2,0)); draw (for i=0 upto 7: dir(135i)-- endfor cycle); endfig; %%% But the ec-lmr12 file exists and can be located with "kpsewhich". It seems the problem is the "btex etex" environment, because there is no error with the first figure. I work under the mswin-context-standalone downloaded from Pragma-ADE, appreciate for any tip! ___ 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] bugs in math engine?
1. The symbols for number sets in Cambria Math aren't taken from the double-struck variant. Hans, please apply the following patch to math-def.mkiv diff --git a/math-def.mkiv b/math-def.mkiv index 31db66e..30beb5c 100644 --- a/math-def.mkiv +++ b/math-def.mkiv @@ -97,12 +97,12 @@ \definemathcommand [tanh][nolop] {\mfunction{tanh}} \definemathcommand [tan] [nolop] {\mfunction{tan}} -\definemathcommand [integers]{\mfunction{Z}} -\definemathcommand [reals] {\mfunction{R}} -\definemathcommand [rationals] {\mfunction{Q}} -\definemathcommand [naturalnumbers] {\mfunction{N}} -\definemathcommand [complexes] {\mfunction{C}} -\definemathcommand [primes] {\mfunction{P}} +\definemathcommand [integers]{\mathblackboard{Z}} +\definemathcommand [reals] {\mathblackboard{R}} +\definemathcommand [rationals] {\mathblackboard{Q}} +\definemathcommand [naturalnumbers] {\mathblackboard{N}} +\definemathcommand [complexes] {\mathblackboard{C}} +\definemathcommand [primes] {\mathblackboard{P}} % using attributes Many thanks! Although this doesn't quite solve the bug yet, now I know where to look ... Test case: --- \starttext \math{\primes P}, \math{\naturalnumbers N}, \math{\integers Z}, \math{\rationals Q}, \math{\reals R}, \math{\complexes C} \stoptext --- Proposed patch: diff math-def.mkiv.orig math-def.mkiv 100,105c100,105 < \definemathcommand [integers] {\mathblackboard{Z}} < \definemathcommand [reals] {\mathblackboard{R}} < \definemathcommand [rationals] {\mathblackboard{Q}} < \definemathcommand [naturalnumbers]{\mathblackboard{N}} < \definemathcommand [complexes] {\mathblackboard{C}} < \definemathcommand [primes]{\mathblackboard{P}} --- > \definemathcommand [integers] {{\mathblackboard Z}} > \definemathcommand [reals] {{\mathblackboard R}} > \definemathcommand [rationals] {{\mathblackboard Q}} > \definemathcommand [naturalnumbers]{{\mathblackboard N}} > \definemathcommand [complexes] {{\mathblackboard C}} > \definemathcommand [primes]{{\mathblackboard P}} Hans, Aditya, does this make sense? Oliver ___ 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] KR itemize fails with latest beta
Hi, I've downloaded the beta today, which fails on one of my itemizes using the KR numbering scheme. I'm using MkIV context, with the following file: \starttext \startitemize[KR] \item Foo \stopitemize \stoptext When compiling this file, I get the below errors. When using R instead of KR, everything works. When using MkII (i.e., running texexec Test.tex, which means running MkII, right?) things work as well. matth...@katherina:~/docs/UT/FHDL/progress$ texexec --lua Test.tex TeXExec | processing document 'Test.tex' TeXExec | no ctx file found TeXExec | tex processing method: context TeXExec | TeX run 1 TeXExec | writing option file Test.top TeXExec | using randomseed 750 TeXExec | tex engine: luatex TeXExec | tex format: cont-en LuaTools | running command: luatex --fmt="/home/matthijs/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/formats/cont-en" --lua="/home/matthijs/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/formats/cont-en.luc" "Test.tex" This is LuaTeX, Version beta-0.40.0-2009042718 (Web2C 7.5.7) \write18 enabled. (Test.tex color : mpcmyk color space is supported color : mpspot color space is supported color : system rgb is global activated ConTeXt ver: 2009.05.20 00:02 MKIV fmt: 2009.5.20 int: english/english system : cont-new loaded (/usr/share/texmf/tex/context/base/cont-new.tex systems : beware: some patches loaded from cont-new.tex (/usr/share/texmf/tex/context/base/cont-new.mkiv) (/usr/share/texmf/tex/context/base/cont-mtx.tex)) system : cont-fil loaded (/usr/share/texmf/tex/context/base/cont-fil.tex loading : ConTeXt File Synonyms ) system : cont-sys.rme loaded (/etc/texmf/tex/context/user/cont-sys.rme (/usr/share/texmf/tex/context/base/type-tmf.tex) (/usr/share/texmf/tex/context/base/type-siz.tex (/usr/share/texmf/tex/context/base/type-siz.mkiv)) (/usr/share/texmf/tex/context/base/type-otf.tex (/usr/share/texmf/tex/context/base/type-otf.mkiv))) system : Test.top loaded (Test.top) fonts : preloading latin modern fonts bodyfont: 12pt rm is loaded language: language en is active systems : begin file Test at line 1 ! Missing } inserted. } \endgroup \fi \doactualitemnumber ...rrentitemgroupcounter ]\fi \dohandleitemreference \en... \actualitemnumber ...fi \else \doactualitemnumber \fi \listitem ...@@localitemsymbol \currentitemlevel } \getitemparameter \current... ... l.3 \item F oo ? Any clue on what's wrong here? signature.asc Description: Digital 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] LilyPond module, release 2009-05-19
I've used it in the past, and have been hoping to use it again in MKIV. On May 19, 2009, at 1:24 PM, Henning Hraban Ramm wrote: I just uploaded a version of the LilyPond module that works with ConTeXt MkIV latest beta (only a small fix). Documentation PDF is still the old one, since I couldn't compile it. Does anyone use this module at all, except me? Greetlings from Lake Constance! Hraban ___ 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] Publication list indenting
That's alright. I'll just use linespacing or something. Thanks for the help. Mike On Wed, May 20, 2009 at 3:39 AM, Taco Hoekwater wrote: > Michael Bynum wrote: >> >> Yes, it does normally do that. I just noticed that. I originally had >> set numbering=yes and I had to disable it in my document to get it to >> align the desired way. Is there a way to have the formatting of the >> lines the default way but still enable numbering? > > No, I do not think so, sorry. > > 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 > ___ > ___ 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] Circumflex with FreeSerif and FreeSans
On Wed, 20 May 2009 11:39:53 +0200 Robert-André Mauchin scribit: > Hi > > When I use the FreeSerif and FreeSans fonts, I notice strange > overlappping with words containing vowels with circumflex, such as â, ê, > î, ô, û and Â, Ê, Î, Ö, Ü. > > I made a test case to show you, I hope attachments are allowed here. > > Thanks. > > nb: No problem with FreeMono, but I suspect monospaced fonts can't have > such problem. > nb: There is no such problem when I use the Xetex engine. > > Versions: > This is LuaTeX, Version beta-0.40.1-2009050920 (Web2C 7.5.7) > \write18 enabled. > ConTeXt ver: 2009.05.14 16:44 MKIV fmt: 2009.5.18 int: english/english texexec 6.2.0 dont accept \setupbodyfont[free, 16pt] rb ___ 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] comment support in pdf
2009/5/20, Bill Long : > Any way to make a pdf file support comment? No. Ask google, please. Best Martin ___ 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] comment support in pdf
Any way to make a pdf file support comment? ___ 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] Circumflex with FreeSerif and FreeSans
Hi When I use the FreeSerif and FreeSans fonts, I notice strange overlappping with words containing vowels with circumflex, such as â, ê, î, ô, û and Â, Ê, Î, Ö, Ü. I made a test case to show you, I hope attachments are allowed here. Thanks. nb: No problem with FreeMono, but I suspect monospaced fonts can't have such problem. nb: There is no such problem when I use the Xetex engine. Versions: This is LuaTeX, Version beta-0.40.1-2009050920 (Web2C 7.5.7) \write18 enabled. ConTeXt ver: 2009.05.14 16:44 MKIV fmt: 2009.5.18 int: english/english test.tex Description: TeX document ___ 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] re-posting example of header at page bottom
Hi, I'm re-posting my previous reply to a request from Wolfgang Schuster to supply an example that exhibits the problem of headers at page bottom. In my previous reply the attached example was more or less obscurely hidden in a link at the bottom of the Digest. This time I included the example in the e-mail -- it's a bit long I'm afraid. Here's an example of a ConTeXt file where a header occurs at page bottom. The subsection named "Perl snippet" occurs at the bottom of page 2, followed by framed text on page 3. It would be much nicer if the header would be written on page 3. Note: I extracted this example from a real-life text; for some reason the frames in the example are drawn wrongly, but this is beside the point. Run the example with texexec --pdf test.tex These are the outputs of pdfetex --version and texexec --version on my system (Fedora Core 6): texexec : TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005 texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004 tex : pdfeTeX, 3.141592-1.21a-2.2 (Web2C 7.5.4) context : ver: 2005.01.31 cont-en : ver: 2005.01.31 fmt: 2009.1.26 mes: english pdfeTeX 3.141592-1.21a-2.2 (Web2C 7.5.4) kpathsea version 3.5.4 Example - \def\Doctitle{ Yoyo reference guide } \def\Author{ Flavius Aurelius } \def\Copyrightyear{ 2023 } \def\Revision{ (revision 0.1) } \def\Footertext{ {\copyright} {\Copyrightyear} Yoyomatic {\Revision} } \installlanguage[en] %-- Set papersize \setuppapersize[A4] %-- Define layout geometry --- \definelayout[myCustomLayout][ header=10mm,% height of header footer=10mm,% height of footer topspace=8mm, % space above header bottomspace=\topspace, % space below footer backspace=25mm, cutspace=20mm, width=middle, height=middle, marking=on, % enable the marking of text grid=no, ] \setuplayout[myCustomLayout] % Experimental \definelayout[TitlePageLayout][header=0pt, footer=0pt, backspace=0.25\paperwidth, topspace=0.25\paperheight] \definestartstop [TitlePageLayout] [before={\setuplayout[TitlePageLayout]}, after={\page[left]\setuplayout[reset]}] %-- Page numbering --- \setuppagenumbering [alternative=doublesided, location={footer,right}, % where should page number appear left={Page }] % text to the left of page number %-- Custom colors \setupcolors[state=start] \definecolor[DarkYellow] [r=0.5,g=0.5,b=0.1] \definecolor[LightYellow][r=1.0,g=1.0,b=0.8] \definecolor[LightBlue] [r=0.1,g=0.1,b=1.0] \definecolor[VeryLightBlue] [r=0.9,g=0.9,b=1.0] \definecolor[DarkBlue] [r=0.0,g=0.0,b=0.4] \definecolor[LightBlack] [r=0.4,g=0.4,b=0.4] \definecolor[DarkWhite] [r=0.8,g=0.8,b=0.9] %- Custom font definitions --- % Define custom fonts for title, chapter etc. \definebodyfont [10pt,11pt,12pt][rm][chapterFont=SansBold at 36pt, sectionFont=SansBold at 24pt, subsectionFont=SansBold at 24pt, subsubsectionFont=SansBold at 18pt, titleFont=SansBold at 36pt] % The following setup defines the attributes for drawing horizontal lines % across the page. These lines are drawn with macros \thinline and \hairline. %\setupthinrules[color=black,rulethickness=0.5mm] \setupthinrules[color=black] \setuphead[title][style=\titleFont, color=black] \setuphead[chapter] [before=\crlf, % insert empty line before chapter title style=\chapterFont, color=black, prefix=+] \setuphead[section] [before=\crlf, style=\sectionFont, color=black, prefix=+] \setuphead[subsection] [before=\crlf, style=\subsectionFont, color=black, prefix=+] \setuphead[subsubsection][before=\crlf, style=\subsubsectionFont, color=black, prefix=+] \definehead[myhead][section] \setuphead[myhead] [before=\crlf, page=yes, % start on new page number=no, style=\subsectionFont, color=black] \definehead[submyhead][myhead] \setuphead[submyhead] [page=no, % don't
Re: [NTG-context] Label alignment in descriptions
On 20 May 2009, at 10:11, Wolfgang Schuster wrote: http://archive.contextgarden.net/message/20080130.152108.77e74a14.en.html http://archive.contextgarden.net/message/20090305.193628.ebaae6c2.en.html Thanks Wolfgang, that's very helpful. If I understand correctly, headeralign has not yet been implemented, but for now we can use text= \hfill to give the same result. It certainly seems to work fine for me. Cheers, Tim Wolfgang Am 19.05.2009 um 21:05 schrieb Tim Wraight: Hello, I can't get the 'align' parameter to have any effect on label text in definitions. Here is a simple test case: \setuplayout[backspace=40mm] \definedescription [test] [location=inleft, width=25mm, align=left, margin=standard] \starttext \test{Hello} World! \par \test{Misaligned} Labels \stoptext Changing the value of 'align' to 'middle' or 'right' does nothing. I'm using ConTeXt ver: 2009.04.28 08:46 MKIV fmt: 2009.5.9 int: english/english, and LuaTeX, Version beta-0.40.0-2009042219 luatex.web >= v2344 Any help much appreciated, and congratulations to all those who have helped make ConTeXt such an excellent tool. Tim Wraight ___ 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 ___ ___ 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 ___ ___ 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] Label alignment in descriptions
http://archive.contextgarden.net/message/20080130.152108.77e74a14.en.html http://archive.contextgarden.net/message/20090305.193628.ebaae6c2.en.html Wolfgang Am 19.05.2009 um 21:05 schrieb Tim Wraight: Hello, I can't get the 'align' parameter to have any effect on label text in definitions. Here is a simple test case: \setuplayout[backspace=40mm] \definedescription [test] [location=inleft, width=25mm, align=left, margin=standard] \starttext \test{Hello} World! \par \test{Misaligned} Labels \stoptext Changing the value of 'align' to 'middle' or 'right' does nothing. I'm using ConTeXt ver: 2009.04.28 08:46 MKIV fmt: 2009.5.9 int: english/english, and LuaTeX, Version beta-0.40.0-2009042219 luatex.web >= v2344 Any help much appreciated, and congratulations to all those who have helped make ConTeXt such an excellent tool. Tim Wraight ___ 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 ___ ___ 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] Error with some italic fonts: Parsing CFF DICT failed
Robert-André Mauchin wrote: * So I searched in the luatex code to find the culprit, source/texk/web2c/luatexdir/font/writecff.c, where you might include a similar hack as in xdvipdfmx (http://scripts.sil.org/svn-view/xdvipdfmx/TRUNK/src/cff_dict.c?view=markup ) Thanks for the analysis, that saves me a lot of work. I will add that patch in the next bugfix release of luatex (end of next week seems a likely release date for 0.40.2). 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 ___
[NTG-context] Error with some italic fonts: Parsing CFF DICT failed
Hi, So I finally understand how to use my system fonts with Context (the --reload thing was not working), in order to use URW fonts, especially Nimbus Roman ones (I know there are TexGyre versions but that's not the point). * Here is my code : % engine=luatex \starttypescript [serif] [nimbus] [name] \definefontsynonym [Serif][n021003l] \definefontsynonym [SerifBold][n021004l] \definefontsynonym [SerifItalic] [n021023l] \definefontsynonym [SerifBoldItalic] [n021024l] \stoptypescript \definetypeface[basic][rm][serif][nimbus] \setupbodyfont[basic,12pt] \starttext blah blah blah \stoptext * When I compile this with Context, I get the following error : !LuaTeX error (file /usr/local/tex/texmf/fonts/data/default/Type1/n021023l.pfb): Parsing CFF DICT failed. (error=-3) ==> Fatal error occurred, no output PDF file produced! MTXrun | fatal error, return code: 70 It happens with other italic URW fonts, such as Palladio. * Googling a bit the error message, I found a similar error message but with Xetex (http://www.tug.org/pipermail/xetex/2008-March/009000.html ): >> OK, I think I have figured out what's wrong. The italic version >> of the font has an empty StemSnapV array in its PS Private data, >> and this stumbles xdvipdfmx which assumes every operator should >> be preceded by some operands. Particularly I think this is a bug >> in xdvipdfmx: although the specification doesn't say explicitly >> that dictionary keys with no value are allowed, other tools >> (e. g. TTX or FontForge) seem to have no problems with this >> situation. >> >> So my opinion is that the CFF_ERROR_STACK_UNDERFLOW error should >> not be triggered at the line 305 of cff_dict.c, if stack_top is 0. > > Thanks for your analysis of the issue. You are right, it is unclear > from the CFF spec whether an operator like StemSnapV should be > allowed with no operands; it doesn't really make any sense, but on > the other hand it should be harmless. * So I searched in the luatex code to find the culprit, source/texk/web2c/luatexdir/font/writecff.c, where you might include a similar hack as in xdvipdfmx (http://scripts.sil.org/svn-view/xdvipdfmx/TRUNK/src/cff_dict.c?view=markup ) Thanks ___ 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] Publication list indenting
Michael Bynum wrote: Yes, it does normally do that. I just noticed that. I originally had set numbering=yes and I had to disable it in my document to get it to align the desired way. Is there a way to have the formatting of the lines the default way but still enable numbering? No, I do not think so, sorry. 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] MkIV italic correction?
On Wed, May 20, 2009 at 03:21:59PM +0800, Yue Wang wrote: > it supports italic correction by default. Then what's your result of the code? Does it come with italic correction? > On Wed, May 20, 2009 at 2:25 PM, Corsair wrote: > > Hi all, > > > > Does MkIV support italic correction? �Because the following code > > produces two identical "f)"s > > > > \starttext > > {\it f}) > > {\it f\/}) > > \stoptext -- There is no emotion; there is peace. There is no ignorance; there is knowledge. There is no passion; there is serenity. There is no death; there is the Force. pgp4GyvzAdf5U.pgp Description: PGP 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] LilyPond module, release 2009-05-19
Yes I'm just preparing a four volume popular music history which relies on that. Piotr 2009/5/19 Henning Hraban Ramm : > I just uploaded a version of the LilyPond module that works with ConTeXt > MkIV latest beta (only a small fix). > Documentation PDF is still the old one, since I couldn't compile it. > > Does anyone use this module at all, except me? > > Greetlings from Lake Constance! > Hraban > --- > http://www.fiee.net/texnique/ > http://wiki.contextgarden.net > https://www.cacert.org (I'm an assurer) > > ___ > 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 > ___ > -- http://okle.pl ___ 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] Label alignment in descriptions
On 19 May 2009, at 22:48, Hans Hagen wrote: Oliver Buerschaper wrote: Hello, I can't get the 'align' parameter to have any effect on label text in definitions. Here is a simple test case: \setuplayout[backspace=40mm] \definedescription [test] [location=inleft, width=25mm, align=left, margin=standard] \starttext \test{Hello} World! \par \test{Misaligned} Labels \stoptext Changing the value of 'align' to 'middle' or 'right' does nothing. I'm using ConTeXt ver: 2009.04.28 08:46 MKIV fmt: 2009.5.9 int: english/english, and LuaTeX, Version beta-0.40.0-2009042219 luatex.web >= v2344 Confirmed on 2009.05.14 16:44 if a new line is inserted just before \stoptext: --- \setuplayout[backspace=40mm] \definedescription [test] [location=inleft, width=25mm, align=left, margin=standard] \starttext \test{Hello} World! \par \test{Misaligned} Labels \stoptext descriptions (and a few more commands) expect a \par (or empty line) best use \starttest{Hello} World! \stoptest \starttest{Misaligned} Labels \stoptest In that case, perhaps there's a simper way to achieve my aim: I'm doing dialogue, and want to have the speakers' names right-aligned (ie. ragged left) in the margin. Is there a better way to do this than descriptions? for example: Jim: Isn't ConteXt fun? John: Sure. When you know what you're doing. - 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 ___ ___ 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] LilyPond module, release 2009-05-19
2009/5/20 Lutz Haseloff : > Thank you very much for the module. I only care for it, I didn't write it, that was Christopher Creutzig, and it wouldn't work with MkIV without Mojca Miklavec. > can you insert a line of code in ctxtools.rb? > after the line: > 430 $dontaskprefixes.push(Dir.glob("mpx-*")) > I would like to have: > 431 $dontaskprefixes.push(Dir.glob("*-lilypond-*")) > > that would purge the lilypond temporary files as well. I'm annoyed by LilyPond's garbage files as well, but don't you think, purging **-lilypond-** would be a bit too much? I guess it would be enough to purge the EPS files, we should keep .tmp, .md5 and .pdf, otherwise you must compile the LilyPond parts ever again. I'm using this module for songbooklets containing about 30 songs, calling LilyPond takes a lot of time - too much, if I'm only tweaking the lyrics. So I'd prefer a better solution than just cleaning everything - perhaps some temp dir? I guess the module could just write the tmp files (and thus everything else) to a temp dir -- is there a general ConTeXt configuration for temp stuff? -- and copy the completed pdf "images" so some image dir -- another ConTeXt config setting? Greetlings, Hraban ___ 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] MkIV italic correction?
it supports italic correction by default. On Wed, May 20, 2009 at 2:25 PM, Corsair wrote: > Hi all, > > Does MkIV support italic correction? Because the following code > produces two identical "f)"s > > \starttext > {\it f}) > {\it f\/}) > \stoptext > > -- > There is no emotion; there is peace. > There is no ignorance; there is knowledge. > There is no passion; there is serenity. > There is no death; there is the Force. > > ___ > 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 > ___ > > ___ 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 ___