Re: [NTG-context] Passing and retrieveing a variable
Hello, thanks, - On Wed, 05 Jan 2011 21:41:13 +0100, Wolfgang Schuster wrote: Am 05.01.2011 um 20:22 schrieb Procházka Lukáš: Hello, I'd need to pass a variable to Ctx and to retrieve it inside a compiled document - via Ctx itself and also by Lua. Something like modes; but modes allow just to check whether they are on or off. I'd need something like this: You can check modes in Lua: context --arguments="size=small" --mode=print test.tex And can I check a variable (argument) in Lua in a similar way? --- \starttext Print mode: \doifmodeelse{print}{yes}{no} \startluacode if tex.modes['print'] then context("Print mode is enabled") else context("Print mode is disabled") end -- Something like this: >> if tex.arguments['size'] == "small" then -- Or: 'tex.variables["size"] == "small"' -- Or: 'document.arguments["size"] == "small"' context("Small size") end -- \stopluacode \doifenvelse{size} {\processaction [\env{size}] [ small=>Small size, medium=>Medium size, big=>Big size, unknown=>Other size: \env{size}]} {No value “size”} \stoptext --- If the passed argument has a NUMBER value, should it be checked against a number value or a string - so what of the following should be right: context --arguments="size=1" test.tex if tex.arguments['size'] == "1" then ... Or: if tex.arguments['size'] == 1 then ... Best regards, Lukas -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038 ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Error with \placetable ... \starttable
Looks like \stattable ... \stoptable no longer do grouping, the following is broken unless \stattable ... \stoptable is grouped. \starttext \placetable[here,nonumber]{foo} \starttable[|r|r|] \NC foo \NC bar \AR \stoptable \stoptext Regards, Khaled -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Lua error
I get the following error with current beta (did not happen few betas ago): ! LuaTeX error ...text/tex/texmf-context/tex/context/base/strc-mar.lua:512: attempt to get length of upvalue 'topofstack' (a number value) stack traceback: ...text/tex/texmf-context/tex/context/base/strc-mar.lua:512: in function <...text/tex/texmf-context/tex/context/base/strc-mar.lua:511> ...text/tex/texmf-context/tex/context/base/strc-mar.lua:517: in function 'fetched' ...text/tex/texmf-context/tex/context/base/strc-mar.lua:555: in function 'fetchonemark' ...text/tex/texmf-context/tex/context/base/strc-mar.lua:584: in function 'getmarking' :1: in main chunk. Just removing the # from #topofstack on that line should do it. (sorry no minimal example, it is rather a large file and I'm not sure what is triggering the error). Regards, Khaled -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] [OT] Public Fonts for Minority Languages of Russia
2011/1/6 luigi scarso : > http://texnik.dante.de/misc/PTSerif.pdf > seems to be done with context directly, without postprocessing with > ghostscript luatex can not generate linearized pdf directly. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] [OT] Public Fonts for Minority Languages of Russia
2011/1/5 Khaled Hosny : > On Wed, Jan 05, 2011 at 10:35:46PM +0100, luigi scarso wrote: >> "Fast Web View : Yes" >> How did you done with mkiv ? > > pdfopt from GS? qpdf is MUCH better... 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] \tfx or \tfxx is fail with nonintegral fonts size
Hi all, I find the "\tfx" or "\tfxx" is fail in nonintegral fonts size with latest beta (MKIV), but the "\small" was worked. example: \starttext \switchtobodyfont[15.01pt] \tfxx test \switchtobodyfont[15pt] \tfx test \switchtobodyfont[15.01pt] \small test \stoptext -- Best regards, Huang Ze ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Handling EMBED tag in Tex
Hi, I have embed tags in my xhtml can i render it in my pdf. How should I form the .tex file to handle this? Thanks Anand ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] [OT] Public Fonts for Minority Languages of Russia
On Wed, Jan 5, 2011 at 10:52 PM, Khaled Hosny wrote: >> > http://texnik.dante.de/misc/PTSerif.pdf >> "Fast Web View : Yes" >> How did you done with mkiv ? > > pdfopt from GS? http://texnik.dante.de/misc/PTSerif.pdf seems to be done with context directly, without postprocessing with ghostscript -- 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] [OT] Public Fonts for Minority Languages of Russia
On Wed, Jan 05, 2011 at 10:35:46PM +0100, luigi scarso wrote: > 2011/1/5 Herbert Voss : > > Am 05.01.2011 19:57, schrieb luigi scarso: > >> http://www.pro-linux.de/news/1/16560/freie-schrift-pt-serif-veroeffentlicht.html > >> http://www.paratype.com/public/ > >> > >> What do you think ? > > > > her is a list of the glyphs created by Volker > > > > http://texnik.dante.de/misc/PTSerif.pdf > "Fast Web View : Yes" > How did you done with mkiv ? pdfopt from GS? Regards, Khaled -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] [OT] Public Fonts for Minority Languages of Russia
2011/1/5 Herbert Voss : > Am 05.01.2011 19:57, schrieb luigi scarso: >> http://www.pro-linux.de/news/1/16560/freie-schrift-pt-serif-veroeffentlicht.html >> http://www.paratype.com/public/ >> >> What do you think ? > > her is a list of the glyphs created by Volker > > http://texnik.dante.de/misc/PTSerif.pdf "Fast Web View : Yes" How did you done with mkiv ? -- 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] \insection broken??
Hi, using the 31/12/10 version I have problems with reference \insection[...]: ! Undefined control sequence. l.40 Zur Terminologie, vgl. \insection [Ref217459429]. What's this? Steffen ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] [OT] Public Fonts for Minority Languages of Russia
> thanks, should go now Indeed. Thanks! 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Translate module
Hi, the translate module is broken again. \usemodule[translate] \translateinput[Apples][Oranges] \enableinputtranslation \starttext Many people like Apples. \stoptext Regards, Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] [OT] Public Fonts for Minority Languages of Russia
Am 05.01.2011 21:43, schrieb Arthur Reutenauer: >> her is a list of the glyphs created by Volker >> >> http://texnik.dante.de/misc/PTSerif.pdf > > ERROR 403: Forbidden. Is it somehow intentional, or an oversight? sigh ... thanks, should go now Herbert ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] [OT] Public Fonts for Minority Languages of Russia
> her is a list of the glyphs created by Volker > > http://texnik.dante.de/misc/PTSerif.pdf ERROR 403: Forbidden. Is it somehow intentional, or an oversight? 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] [OT] Public Fonts for Minority Languages of Russia
Hi Luigi, On 2011-01-05 <19:57:35>, luigi scarso wrote: > http://www.pro-linux.de/news/1/16560/freie-schrift-pt-serif-veroeffentlicht.html > http://www.paratype.com/public/ > > What do you think ? impressive coverage of contemporary alphabets, matching sans/serif is nice too. The serif bold face is a bit too dark for my taste, I wonder how it looks on paper. I append a typescript & testfile. Thanks for the link, Philipp > > -- > 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 : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___ -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments %D \module %D [ file=type-paratype, %Dversion=2011-01-05 21:39:54+0100, %D title=\CONTEXT\ Typescript Macros, %D subtitle=ParaType Free Fonts, %D author=Philipp Gesang, %D date=\currentdate, %D copyright=Philipp Gesang] %C Get the ParaType free sans and serif fonts at %C http://www.paratype.com/public/ %C Serif %C PTF55F.ttf -> PTSerif-Regular %C PTF56F.ttf -> PTSerif-Italic %C PTF75F.ttf -> PTSerif-Bold %C PTF76F.ttf -> PTSerif-BoldItalic %C Sans %C PTS55F.ttf -> PTSans-Regular %C PTS56F.ttf -> PTSans-Italic %C PTS75F.ttf -> PTSans-Bold %C PTS76F.ttf -> PTSans-BoldItalic %C Caption %C PTZ55F.ttf -> PTSerif-Caption %C PTZ56F.ttf -> PTSerif-CaptionItalic %C PTC55F.ttf -> PTSans-Caption %C PTC75F.ttf -> PTSans-CaptionBold %C Narrow (Sans Only) %C PTN57F.ttf -> PTSans-Narrow %C PTN77F.ttf -> PTSans-NarrowBold \starttypescriptcollection [paratype] \starttypescript [\s!serif] [paratype] \definefontsynonym [ParatypeSerif-Regular][\s!name:PTSerif-Regular] [\s!features=\s!default] \definefontsynonym [ParatypeSerif-Italic] [\s!name:PTSerif-Italic] [\s!features=\s!default] \definefontsynonym [ParatypeSerif-Bold] [\s!name:PTSerif-Bold] [\s!features=\s!default] \definefontsynonym [ParatypeSerif-BoldItalic] [\s!name:PTSerif-BoldItalic] [\s!features=\s!default] \stoptypescript \starttypescript [\s!sans] [paratype] \definefontsynonym [ParatypeSans-Regular][\s!name:PTSans-Regular] [\s!features=\s!default] \definefontsynonym [ParatypeSans-Italic] [\s!name:PTSans-Italic] [\s!features=\s!default] \definefontsynonym [ParatypeSans-Bold] [\s!name:PTSans-Bold] [\s!features=\s!default] \definefontsynonym [ParatypeSans-BoldItalic] [\s!name:PTSans-BoldItalic] [\s!features=\s!default] \stoptypescript \starttypescript [\s!serif] [paratype] \setups[\s!font:\s!fallback:\s!serif] \definefontsynonym [\s!Serif] [ParatypeSerif-Regular] [\s!features=\s!default] \definefontsynonym [\s!SerifItalic] [ParatypeSerif-Italic] [\s!features=\s!default] \definefontsynonym [\s!SerifBold] [ParatypeSerif-Bold] [\s!features=\s!default] \definefontsynonym [\s!SerifBoldItalic] [ParatypeSerif-BoldItalic] [\s!features=\s!default] \stoptypescript \starttypescript [\s!sans] [paratype] \setups[\s!font:\s!fallback:\s!sans] \definefontsynonym [\s!Sans] [ParatypeSans-Regular] [\s!features=\s!default] \definefontsynonym [\s!SansItalic] [ParatypeSans-Italic] [\s!features=\s!default] \definefontsynonym [\s!SansBold] [ParatypeSans-Bold] [\s!features=\s!default] \definefontsynonym [\s!SansBoldItalic] [ParatypeSans-BoldItalic] [\s!features=\s!default] \stoptypescript \starttypescript [\s!serif] [paratype-caption] \definefontsynonym [ParatypeSerifCaption-Regular] [\s!name:PTSerif-Caption] [\s!features=\s!default] \definefontsynonym [ParatypeSerifCaption-Italic] [\s!name:PTSerif-CaptionItalic] [\s!features=\s!default] \stoptypescript \starttypescript [\s!sans] [paratype-caption] \definefontsynonym [ParatypeSansCaption-Regular] [\s!name:PTSans-Caption] [\s!features=\s!default] \definefontsynonym [ParatypeSansCaption-Bold][\s!name:PTSans-CaptionBold] [\s!features=\s!default] \stoptypescript \starttypescript [\s!serif] [paratype-caption] \setups[\s!font:\s!fallback:\s!serif] \definefontsynonym [\s!Serif] [ParatypeSerifCaption-Regular] [\s!features=\s!default] \definefontsynonym [\s!SerifItalic] [ParatypeSerifCaption-Italic] [\s!features=\s!default] \stoptypescript \starttypescript [\s!sans] [paratype-caption] \setups[\s!font:\s!fallback:\s!sans] \definefontsynonym [\s!Sans] [ParatypeSansCaption-Regular] [\s!features=\s!default] \definefontsynonym [\s!SansBold] [ParatypeSansCaption-Bold] [\s!features=\s!default] \stoptypescript \starttype
Re: [NTG-context] Passing and retrieveing a variable
Am 05.01.2011 um 20:22 schrieb Procházka Lukáš: > Hello, > > I'd need to pass a variable to Ctx and to retrieve it inside a compiled > document - via Ctx itself and also by Lua. Something like modes; but modes > allow just to check whether they are on or off. I'd need something like this: You can check modes in Lua: context --arguments="size=small" --mode=print test.tex \starttext Print mode: \doifmodeelse{print}{yes}{no} \startluacode if tex.modes['print'] then context("Print mode is enabled") else context("Print mode is disabled") end \stopluacode \doifenvelse{size} {\processaction [\env{size}] [ small=>Small size, medium=>Medium size, big=>Big size, unknown=>Other size: \env{size}]} {No value “size”} \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] [OT] Public Fonts for Minority Languages of Russia
Am 05.01.2011 19:57, schrieb luigi scarso: > http://www.pro-linux.de/news/1/16560/freie-schrift-pt-serif-veroeffentlicht.html > http://www.paratype.com/public/ > > What do you think ? her is a list of the glyphs created by Volker http://texnik.dante.de/misc/PTSerif.pdf Herbert ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Passing and retrieveing a variable
Procházka Lukáš writes: > I'd need to pass a variable to Ctx and to retrieve it inside a > compiled document - via Ctx itself and also by Lua. Hello, % cmd-line: context --arguments=testvar=my-value test \starttext value of testvar: \env{testvar} with lua: \ctxlua{tex.print(document.arguments.arguments)} \stoptext There is perhaps a nicer solution in lua. Peter -- Contact information: http://pmrb.free.fr/contact/ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] [OT] Public Fonts for Minority Languages of Russia
On Wed, Jan 5, 2011 at 19:57, luigi scarso wrote: > http://www.pro-linux.de/news/1/16560/freie-schrift-pt-serif-veroeffentlicht.html > http://www.paratype.com/public/ > > What do you think ? I've already used PT Sans for some documents. It's a really nice font in my amateur opinion. However, I wasn't aware of the new PT Serif font. I'll check that out later. As a new year present, here is the typescript I use for PT Sans: \starttypescriptcollection [ptsans] \usetypescriptfile[type-optical] \starttypescript [\s!sans] [ptsans] \definefontsynonym [PTSans-Regular][\s!name:ptsansregular] [\s!features=\s!default] \definefontsynonym [PTSans-Italic] [\s!name:ptsansitalic] [\s!features=\s!default] \definefontsynonym [PTSans-Bold] [\s!name:ptsansbold] [\s!features=\s!default] \definefontsynonym [PTSans-BoldItalic] [\s!name:ptsansbolditalic] [\s!features=\s!default] \definefontsynonym [PTSans-Caption] [\s!name:ptsanscaption] [\s!features=\s!default] \definefontsynonym [PTSans-CaptionBold] [\s!name:ptsanscaptionbold] [\s!features=\s!default] \stoptypescript \starttypescript [\s!sans] [ptsans-narrow] \definefontsynonym [PTSans-Narrow] [\s!name:ptsansnarrow] [\s!features=\s!default] \definefontsynonym [PTSans-NarrowBold] [\s!name:ptsansnarrowbold] [\s!features=\s!default] \stoptypescript \starttypescript [\s!sans] [ptsans] \setups[font:optical:sans] \definefontsynonym [SansRegular-Regular][PTSans-Regular] [\s!features=\s!default] \definefontsynonym [SansRegular-Italic] [PTSans-Italic] [\s!features=\s!default] \definefontsynonym [SansRegular-Bold] [PTSans-Bold] [\s!features=\s!default] \definefontsynonym [SansRegular-BoldItalic] [PTSans-BoldItalic] [\s!features=\s!default] \definefontsynonym [SansCaption-Regular][PTSans-Caption] [\s!features=\s!default] \definefontsynonym [SansCaption-Bold] [PTSans-CaptionBold] [\s!features=\s!default] \stoptypescript \starttypescript [\s!sans] [ptsans-narrow] \setups[\s!font:\s!fallback:\s!sans] \definefontsynonym [\s!Sans] [PTSans-Narrow] [\s!features=\s!default] \definefontsynonym [\s!SansBold] [PTSans-NarrowBold] [\s!features=\s!default] \stoptypescript \starttypescript [ptsans] \definetypeface [ptsans] [ss] [\s!sans] [ptsans] [optical] \stoptypescript \starttypescript [ptsans-narrow] \definetypeface [ptsans-narrow] [ss] [\s!sans] [ptsans-narrow] [\s!default] \stoptypescript \stoptypescriptcollection Vianney ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Passing and retrieveing a variable
Hello, I'd need to pass a variable to Ctx and to retrieve it inside a compiled document - via Ctx itself and also by Lua. Something like modes; but modes allow just to check whether they are on or off. I'd need something like this: Calling context.exe: --- call context.exe test.mkiv --mode:MyMode --variable MyVariable=AAA --- And test.mkiv: --- \starttext Hello \doifmode{MyMode}{Being in MyMode} \ifvariableequal{MyVariable}{AAA}{MyVariable is \MyVariable} % Something like this \startluacode if context.variables.MyVariable == "AAA" then context("MyVariable is defined.") -- Something like this end \stopluacode \stoptext --- Simply said, I'd need to provide a conditional (or: dependent) compilation of the input file. How to handle this? Best regards, Lukas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] [OT] Public Fonts for Minority Languages of Russia
http://www.pro-linux.de/news/1/16560/freie-schrift-pt-serif-veroeffentlicht.html http://www.paratype.com/public/ What do you think ? -- 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] TT font disregards margins
Am 05.01.2011 um 17:07 schrieb Tom: > I need to intersperse my text with code typed by someone else and am > attempting to give the appearance of the code having been typed on a > typewriter. The problem I am encountering is that the Teletyped text does > not respect margin settings. What could be done to correct this? (I am > running MKII on a Windows system). Example follows: You get a better result for the monospaced part when you change change the alignment for this block. > {\tt{WHETHER I shall turn out to be the hero of my own life, or whether that > station will be held by anybody else, these pages must show. To begin my > life with the beginning of my life, I record that I was born (as I have been > informed and believe) on a Friday, at twelve o'clock at night. It was > remarked that the clock began to strike, and I began to cry, > simultaneously.}} {\tt\setupalign[flushleft,broad] WHETHER I shall turn out to be the hero of my own life, or whether that station will be held by anybody else, these pages must show. To begin my life with the beginning of my life, I record that I was born (as I have been informed and believe) on a Friday, at twelve o'clock at night. It was remarked that the clock began to strike, and I began to cry, simultaneously.\par} Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] TT font disregards margins
I need to intersperse my text with code typed by someone else and am attempting to give the appearance of the code having been typed on a typewriter. The problem I am encountering is that the Teletyped text does not respect margin settings. What could be done to correct this? (I am running MKII on a Windows system). Example follows: \definepapersize[6X9][width=6.0in, height=9.0in] \setuppapersize[6X9][6X9] \setuplayout[ width=middle, height=middle, backspace=.75 in, topspace=.5 in, header=.25 in, footer=0 in, headerdistance=.25 in, footerdistance=0 in, bottomspace=0.9 in, cutspace=.875 in, ] \starttext WHETHER I shall turn out to be the hero of my own life, or whether that station will be held by anybody else, these pages must show. To begin my life with the beginning of my life, I record that I was born (as I have been informed and believe) on a Friday, at twelve o'clock at night. It was remarked that the clock began to strike, and I began to cry, simultaneously. \blank[big] {\tt{WHETHER I shall turn out to be the hero of my own life, or whether that station will be held by anybody else, these pages must show. To begin my life with the beginning of my life, I record that I was born (as I have been informed and believe) on a Friday, at twelve o'clock at night. It was remarked that the clock began to strike, and I began to cry, simultaneously.}} \stoptext Tom Benjey 717-258-9733 voice 717-243-0074 fax Twitter: @TomBenjey ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] still struggling with footnotes
Am 03.01.2011 16:51, schrieb Achim Jander: Hi all, I am still trying to get the footnote numbers aligned in a special way: flushright, but the width depends on the width of the max footnote-number on page, so to get 1 2 and ~9 10 After reading the manuals and the source given in strc-not.lua thats how far i am at the moment: \enabletrackers[structures.notes] \setupnote[footnote][numbercommand=, way=bypage] \setupnotedefinition[footnote][location=left,distance=1em,hang=4,headalign={flushright},width=1em] \def\getmaxnote[#1]{\ctxlua{ local n = structures.notes.getn("#1",n) local current = structures.notes.get("#1",n) local cr = current.references local result = cr.realpage -- calculate the width of cr.number and store in maxwidth -- loop through the notes until act.realpage <> cr.realpage -- and for each note calculate the width, compare with maxwidh and store the max -- then set the width to the correct maxwidth -- context.setupnotedefinition({"footnote"}, {width=maxwidth}) } } \appendtoks \getmaxnote[footnote] \to\everybeforenoteinsert \showframe \starttext \dorecurse {100} { test \footnote{test } } \stoptext Now I can not figure out how to get the "real" footnote-number of the note (is there any way?) And does this approach make sense at all? Any hints welcome, i tear my hair for hours now Greetings, Achim Hi again, now i found out how to get the footnote-number: local num = current.numberdata local test = num.numbers local num = tostring(test[1]) but i also found out, that my plan of iterating through the notes was indeed senseless, because at this stage the next footnote is not known. (i should have tested that first). So my new plan is, to calculate the correct width in everybeforenoteinsert, and to compare it with the first one of the page. My question now: is there any possibility to restart the page when i find that i need a greater width? eg to invoke a command \justdoitagainsam?? Sorry that i make so much noise about such a silly footnote-thing, but all my books have many footnotes, and all the notes have to be typesetted like that (not my idea) So without, i could hardly use ConTeXt anyway and that would be sad... Greetings, Achim ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] In-text itemizations break spacing
Am 04.01.2011 um 21:33 schrieb Philipp A.: > can’t we just screw backward compatibility at all costs here? i mean: > “medium” won’t make it worse in most cases, just better! it’s up to Hans but i would also prefer “medium” as standard value in mkiv > (the maximum space is 1em+1sp, so we probably will never get different > hyphenation, but almost always less overfull \hboxes) the overfull box in your example was caused by the compound word at the end off the line, besides \setbreakpoints you can reduce such message with different settings for \setupalign (e.g. with verytolerant or stretch or hz etc.) Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___