Re: [NTG-context] mkiv: wide gap between name and text of enumerations
On Tue, Apr 06 2010, Matthias Weber wrote: > > \defineenumeration[blurb] > [text=Blurb, > way=bysection, > location=hanging] > > Blurb 1 Here should only be a small gap. > > Is there a way to narrow the gap? This helps: width=4em You can also play with "distance=...". Cheers, 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] font lookup
On Tue, Apr 06 2010, Wolfgang Werners-Lucchini wrote: > > Result (on my system): > > > > Path: texgyrepagella-regular.otf > > Hmm! How does context resolve the complete path afterwards? Hello Wolfgang, When you know the filename, you can get the complete path like this: \starttext \ctxlua{tex.print(resolvers.find_file("texgyrepagella-regular.otf"))} \stoptext Cheers, 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 ___
[NTG-context] mkiv: wide gap between name and text of enumerations
Dear all, I use in mkii \defineenumeration [blurb] [text=Blurb, way=bysection, location=hanging] \starttext \startblurb Here should only be a small gap. \stopblurb \stoptext to get something like Blurb 1 Here should only be a small gap. However, the same input gives in mkiv Blurb 1 Here should only be a small gap. Is there a way to narrow the gap? Thanks, Matthias ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Framed text in paragraphs too wide
Thanks Aditya, that is what I need. I don't really understand the difference between framedtext and textbackground, but all my framing and coloring desires seem to be realizable with framedtext. Matthias On Apr 5, 2010, at 7:50 PM, Aditya Mahajan wrote: On Mon, 5 Apr 2010, Matthias Weber wrote: Dear all, my problem with framed text persists in paragraphs: The frame extends over the entire page as soon as the paragraph has more than one line. Problem exists in mkii and mkiv. Minimal example below. I have seen this before when trying to use textbacground to highlight stuff in tables. I don't know a solution, but if want to highlight whole paragrah, and do not want the ability to split across pages, you can use framed texts. \setupcolors[state=start] \setupcolor[rgb] \defineframedtext [defbackground] [backgroundcolor=lightgray, background=color, width=broad, frame=on, location=paragraph] \defineparagraphs [TwoThird][n=2] \setupparagraphs [TwoThird] [1] [width=.66\textwidth] \starttext \startTwoThird \startdefbackground The frame is too wide. The frame is too wide. The frame is too wide. \stopdefbackground % \nextTwoThird \placefigure [here] [figure:cow] {Mooh} {\externalfigure[cow][width=.3\textwidth]} \stopTwoThird \stoptext 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] font lookup
Thank you Wolfgang, > > how can I find the complete path of a existing font > > with luatex under context mkiv. I am looking for an > > equivalent function to > > > > kpse.lookup(fontname) > > > Here is a solution which consults ConTeXt?s font database, no path > in the output means the font is stored in the TeX tree. > > Example: > > \define[1]\FontLookup > {\dolookupfontbyspec{#1} > \ifcase\dolookupnoffound > Font not found\par > \else > Path: \dolookupgetkey{filename}\par > \fi} > > \starttext > \FontLookup{fontname=texgyrepagellaregular} > \FontLookup{fontname=texgyrepagellaoblique} > \FontLookup{fontname=timesnewromanpsmt} > \stoptext > > Result (on my system): > > Path: texgyrepagella-regular.otf Hmm! How does context resolve the complete path afterwards? > Font not found > Path: /Library/Fonts/Times New Roman.ttf Isn't there a lua solution? 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] Creating PDF Bookmarks
I am looking for additional bookmarks but \bookmark[…]{…} has no effect (mkiv). What is going wrong? \setupinteraction [state=start] \setupinteractionscreen [option=bookmark] \placebookmarks[chapter,section][chapter,section] \starttext \bookmark[chapter]{TOC} \title{Table of contents} \placecontent \chapter{Chapter} \input tufte \section{Section} \input tufte \stoptext Sincerely, Markus ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Framed text in paragraphs too wide
On Mon, 5 Apr 2010, Matthias Weber wrote: Dear all, my problem with framed text persists in paragraphs: The frame extends over the entire page as soon as the paragraph has more than one line. Problem exists in mkii and mkiv. Minimal example below. I have seen this before when trying to use textbacground to highlight stuff in tables. I don't know a solution, but if want to highlight whole paragrah, and do not want the ability to split across pages, you can use framed texts. \setupcolors[state=start] \setupcolor[rgb] \defineframedtext [defbackground] [backgroundcolor=lightgray, background=color, width=broad, frame=on, location=paragraph] \defineparagraphs [TwoThird][n=2] \setupparagraphs [TwoThird] [1] [width=.66\textwidth] \starttext \startTwoThird \startdefbackground The frame is too wide. The frame is too wide. The frame is too wide. \stopdefbackground % \nextTwoThird \placefigure [here] [figure:cow] {Mooh} {\externalfigure[cow][width=.3\textwidth]} \stopTwoThird \stoptext 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Framed text in paragraphs too wide
Dear all, my problem with framed text persists in paragraphs: The frame extends over the entire page as soon as the paragraph has more than one line. Problem exists in mkii and mkiv. Minimal example below. Thanks, Matthias \setupcolors[state=start] \setupcolor[rgb] \definetextbackground [defbackground] [backgroundcolor=lightgray, background=color, frame=on, location=paragraph] \defineparagraphs [TwoThird][n=2] \setupparagraphs[TwoThird] [1] [width=.66\textwidth] \starttext \startTwoThird \starttextbackground[defbackground] The frame is too wide. The frame is too wide. The frame is too wide. \stoptextbackground % \nextTwoThird \placefigure [here] [figure:cow] {Mooh} {\externalfigure[cow][width=.3\textwidth]} \stopTwoThird \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] randomize
Am 06.04.10 00:21, schrieb Wolfgang Werners-Lucchini: Hallo, I get allways (10 times at least) the same result: - \starttext \startluacode math.randomseed(os.time()) \stopluacode Encode your Name and Surname as a \startluacode local a = {'null-terminated', 'dollar-terminated', 'Pascal'} context('%s string', a[math.random(1,3)]) \stopluacode \stoptext - How can I randomize this? ConTeXt saves the random value in the tuc file to get the same output in each run. Delete the tuc file with 'context --purgeall'. 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] Hanging indents
Thanks, Wolfgang. That did it. Because I wasn't using a section, I didn't pay attention to the indentnext=yes. The numbercommand is an artifact leftover from code used for numbered chapters that I neglected to delete. Tom Benjey 717-258-9733 voice 717-243-0074 fax Twitter: @TomBenjey -Original Message- From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Wolfgang Schuster Sent: Monday, April 05, 2010 6:30 PM To: mailing list for ConTeXt users Subject: Re: [NTG-context] Hanging indents Am 06.04.10 00:19, schrieb Tom: > Aditya, > > It took me awhile to sort through all the code to find what was creating the > problem. It appears that the code for the first page of a chapter is the > culprit but I don't know why it's causing the problem. > > \definepagebreak[mychapterpagebreak][yes,header,right] %eliminates headers > on blank pages > You change the style of the number but suppress it in the output, i guess there is some reason for this and i don't understand it. > \def\ChapterTitle#1#2{ > \centerline{\switchtobodyfont[ChapterStart,18pt]{\ss\bf #2}} > \godown[.5in]} > > \setuphead[chapter] >[command= \ChapterTitle,textstyle=bold,header=empty,footer=empty, >page=mychapterpagebreak, >numbercommand={\switchtobodyfont[big]{\ss\sl}}] > \setuphead[chapter][indentnext=yes] but i think the setup is used here http://wiki.contextgarden.net/Shaped_paragraphs just for fun. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Hanging indents
Am 06.04.10 00:19, schrieb Tom: Aditya, It took me awhile to sort through all the code to find what was creating the problem. It appears that the code for the first page of a chapter is the culprit but I don't know why it's causing the problem. \definepagebreak[mychapterpagebreak][yes,header,right] %eliminates headers on blank pages You change the style of the number but suppress it in the output, i guess there is some reason for this and i don't understand it. \def\ChapterTitle#1#2{ \centerline{\switchtobodyfont[ChapterStart,18pt]{\ss\bf #2}} \godown[.5in]} \setuphead[chapter] [command= \ChapterTitle,textstyle=bold,header=empty,footer=empty, page=mychapterpagebreak, numbercommand={\switchtobodyfont[big]{\ss\sl}}] \setuphead[chapter][indentnext=yes] but i think the setup is used here http://wiki.contextgarden.net/Shaped_paragraphs just for fun. 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] Hanging indents
Aditya, It took me awhile to sort through all the code to find what was creating the problem. It appears that the code for the first page of a chapter is the culprit but I don't know why it's causing the problem. \definepagebreak[mychapterpagebreak][yes,header,right] %eliminates headers on blank pages \def\ChapterTitle#1#2{ \centerline{\switchtobodyfont[ChapterStart,18pt]{\ss\bf #2}} \godown[.5in]} \setuphead[chapter] [command= \ChapterTitle,textstyle=bold,header=empty,footer=empty, page=mychapterpagebreak, numbercommand={\switchtobodyfont[big]{\ss\sl}}] \definestartstop [exdent] [before={\startnarrower[left]\setupindenting[-\leftskip,yes]}, after=\stopnarrower] \starttext \chapter{HangingIndent} \startexdent \dorecurse{10}{Para 1: Some random text to fill space} \dorecurse{10}{Para 2: Some random text to fill space} \dorecurse{10}{Para 3: Some random text to fill space} \dorecurse{10}{Para 4: Some random text to fill space} \stopexdent \stoptext Tom Benjey 717-258-9733 voice 717-243-0074 fax Twitter: @TomBenjey -Original Message- From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Aditya Mahajan Sent: Monday, April 05, 2010 1:52 PM To: mailing list for ConTeXt users Subject: Re: [NTG-context] Hanging indents On Mon, 5 Apr 2010, Tom wrote: > Exdent works fine when I substitute my text for Knuth in the example, but > has a problem when I include it in my document. The first line of text after > Exdent is called is not outdented, but is in all subsequent paragraphs as it > should be. I tried calling Exdent for the paragraphs that start my document > and get the same result. From that I surmise that I have set up something > that overrides the outdenting on the first line of the first paragraph, but > is overridden by Exdent after that. Do you have any ideas what it might be? Can you create a minimal example that does not work? \definestartstop [exdent] [before={\startnarrower[left]\setupindenting[-\leftskip,yes]}, after=\stopnarrower] \starttext \startexdent \dorecurse{10}{Para 1: Some random text to fill space} \dorecurse{10}{Para 2: Some random text to fill space} \dorecurse{10}{Para 3: Some random text to fill space} \dorecurse{10}{Para 4: Some random text to fill space} \stopexdent \stoptext 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] randomize
Hallo, I get allways (10 times at least) the same result: - \starttext \startluacode math.randomseed(os.time()) \stopluacode Encode your Name and Surname as a \startluacode local a = {'null-terminated', 'dollar-terminated', 'Pascal'} context('%s string', a[math.random(1,3)]) \stopluacode \stoptext - How can I randomize this? 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] font lookup
Am 05.04.10 23:52, schrieb Wolfgang Werners-Lucchini: Hallo, how can I find the complete path of a existing font with luatex under context mkiv. I am looking for an equivalent function to kpse.lookup(fontname) Here is a solution which consults ConTeXt’s font database, no path in the output means the font is stored in the TeX tree. Example: \define[1]\FontLookup {\dolookupfontbyspec{#1} \ifcase\dolookupnoffound Font not found\par \else Path: \dolookupgetkey{filename}\par \fi} \starttext \FontLookup{fontname=texgyrepagellaregular} \FontLookup{fontname=texgyrepagellaoblique} \FontLookup{fontname=timesnewromanpsmt} \stoptext Result (on my system): Path: texgyrepagella-regular.otf Font not found Path: /Library/Fonts/Times New Roman.ttf 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] font lookup
Hallo, how can I find the complete path of a existing font with luatex under context mkiv. I am looking for an equivalent function to kpse.lookup(fontname) 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] InteractionsBar - another shot
On 5-4-2010 12:59, Matthias Weber wrote: So what do you recommend: - not use the interactionbuttons - pray that they will start working some time in the future - buy Hans a beer (I would have done that a while ago, but shipping is more expensive than the product. Maybe there is a service in Holland where you can have beer delivered like online florists do for flowers?) well, i'm not that often drinking beers, mostly at tex conferences -) so patience works best i guess Hans - 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Indent of heading when using command option
On Mon, 5 Apr 2010, Honza Pohanka wrote: Sorry for unclear question, I have already find the solution. I missunderstood the \def macro. \def\mySubject#1{#1} works fine \def\mySubject#1{ #1 } causes problems \def\mySubject#1{%<<- Otherwise you get a space #1} or \def\mySubject#1% {#1} 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Mk II, textstyle=cap not working
On 4-4-2010 10:58, Michael Ewe wrote: Thank you very much, that works well! But: how can I find out? Its not in the manual, its not in the manual's source. The wiki page about chapter headers says "textstyle=cap" and mentions "\textcommand" and "\deeptextcommand" changed related to cap also relate closely to open type features and thing previously not possible; in general, moving from mkii to mkiv also involves some changes in thinking Hans - 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] SVG 2 MetaPost/MetaFun
On 4-4-2010 7:29, Matija Šuklje wrote: Dne nedelja 4. aprila 2010 ob 19:23:18 je Peter Wüsten napisal(a): I just tried using an SVG image directly in MkIV, and it worked like a breeze. Apparently ConTeXt converts the image to PDF on the fly as I found a PDF-file with a similar name (m_k_v_i_.pdf) in the same directory as the SVG-file. If you would still love to convert your SVG-images you might want to use Inkscape: inkscape --export-pdf= Thanks for the tips :) But actually I'm thinking more in the line of including that logo into my styling directly. So the only solutions would be a) if ConTeXt could use in-line SVG or b) I'll have to port the SVG logo into MetaPost. Is there a non-overhelming howto somewhere ...It's a relatively simple logo (see attachment) :\ svg -> pdf (using inkscape) -> mp (using pstoedit) - 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Indent of heading when using command option
Dne Mon, 05 Apr 2010 14:06:52 +0300 Wolfgang Schuster napsal(a): Am 05.04.10 10:54, schrieb Jan Pohanka: Hello, I have following code (simplified) \def\mySubject#1{#1} \setuphead[subject][style=\bfb\ss,color=HeadColor,before=,after=,textcommand={\mySubject}] When the command option is not set it works as expected and typeset the heading (subject) without any indenting, but using the command causes the small horizontal space in front of the subject. Is there any possibility to get rid of it? Learn to make a minimal example, with this I can't see what you mean. \def\mySubject#1{#1} \setuphead [subject] [style=\bfb\ss, color=HeadColor, before=, after=, textcommand={\mySubject}] \showframe \starttext \subject{Text} \stoptext Wolfgang Sorry for unclear question, I have already find the solution. I missunderstood the \def macro. \def\mySubject#1{#1} works fine \def\mySubject#1{ #1 } causes problems Jan ___ 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 ___ -- Tato zpráva byla vytvořena převratným poštovním klientem Opery: http://www.opera.com/mail/ ___ 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] Hanging indents
On Mon, 5 Apr 2010, Tom wrote: Exdent works fine when I substitute my text for Knuth in the example, but has a problem when I include it in my document. The first line of text after Exdent is called is not outdented, but is in all subsequent paragraphs as it should be. I tried calling Exdent for the paragraphs that start my document and get the same result. From that I surmise that I have set up something that overrides the outdenting on the first line of the first paragraph, but is overridden by Exdent after that. Do you have any ideas what it might be? Can you create a minimal example that does not work? \definestartstop [exdent] [before={\startnarrower[left]\setupindenting[-\leftskip,yes]}, after=\stopnarrower] \starttext \startexdent \dorecurse{10}{Para 1: Some random text to fill space} \dorecurse{10}{Para 2: Some random text to fill space} \dorecurse{10}{Para 3: Some random text to fill space} \dorecurse{10}{Para 4: Some random text to fill space} \stopexdent \stoptext 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Multiple side-by-side tables
Am 05.04.10 15:48, schrieb Troy Henderson: I would like to put several tables side-by-side one another. Nesting \placesidebyside commands seems a bit inconvenient. Suggestions on how to make \starttable ... \stoptable not create a newline (without the \placesidebyside command) would be greatly appreciated. \startcombination ... \stopcombination \bTABLE ... \eTABLE 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] Hanging indents
Exdent works fine when I substitute my text for Knuth in the example, but has a problem when I include it in my document. The first line of text after Exdent is called is not outdented, but is in all subsequent paragraphs as it should be. I tried calling Exdent for the paragraphs that start my document and get the same result. From that I surmise that I have set up something that overrides the outdenting on the first line of the first paragraph, but is overridden by Exdent after that. Do you have any ideas what it might be? I am getting Para 1 Line 1 Para 1 Line 2 Para 2 Line 1 Para 2 Line 2 Para 3 Line 1 Para 3 Line 2 ... When I should be getting Para 1 Line 1 Para 1 Line 2 Para 2 Line 1 Para 2 Line 2 Para 3 Line 1 Para 3 Line 2 ... Tom Benjey 717-258-9733 voice 717-243-0074 fax Twitter: @TomBenjey -Original Message- From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Aditya Mahajan Sent: Monday, April 05, 2010 2:53 AM To: mailing list for ConTeXt users Subject: Re: [NTG-context] Hanging indents On Sun, 4 Apr 2010, Tom wrote: > I have a series of paragraphs for which the first line of each should not be > indented, but the following lines should be. I can't figure out what option > or combination of options will give me this result. You mean this? http://wiki.contextgarden.net/Shaped_paragraphs 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] temporarily disabling enumeration numbering
Am 05.04.10 15:39, schrieb Vianney le Clément: The patch seems to break \footnote: New attempt. \unprotect % strc-des.mkiv \def\@@makedescription[#1]#2% {\postponenotes % new, assumes grouping \edef\currentdescriptionreference{#1}% \doenumerationcheckconditions \dodescriptioncomponent[\c!reference=#1,\c!label={\descriptionparameter\c!text},\c!title={#2},\c!bookmark=,\c!list=][]% \@@dostartdescriptionindeed} % strc-not.mkiv \def\@@notemakedescription[#1]#2#3% {\ifnotesenabled \edef\currentdescriptionreference{#1}% \iftrialtypesetting \doenumerationcheckconditions \let\currentnote\currentdescriptionmain \typesetdummynotesymbol \else \begingroup \doenumerationcheckconditions \let\currentnote\currentdescriptionmain \dodescriptioncomponent[\c!reference=#1,\c!label={\descriptionparameter\c!text},\c!title={#3},\c!list=,\c!bookmark=,][]% \xdef\currentnotenumber{\ctxlua{structure.notes.store("\currentnote",\currentdescriptionnumberentry)}}% \settrue\processingnote \ifconditional\skipnoteplacement \globallet\lastnotesymbol\dolastnotesymbol \else \iftypesettinglines % otherwise problems with \type {xxx} \ignorelines % makes footnotes work in \startlines ... \stoplines \fi \ifnotesymbol \dolastnotesymbol \else \unskip\unskip \globallet\lastnotesymbol\dolastnotesymbol \fi \fi \ifconditional\postponingnotes % todo: per note class \global\settrue\postponednote \else\ifconditional\inlocalnotes % todo: per note class \global\settrue\postponednote \else \handlenoteinsert\currentnote\currentnotenumber \fi\fi \endgroup \fi \fi \ifconditional\skipnoteplacement \global\setfalse\skipnoteplacement \else \kern\notesignal\relax % \relax is needed to honor spaces \fi} \defineenumeration[test][location=left] \protect \starttext \testFirst \par \test[-] Second\par \testThird \par \testFourth\par Blabla\footnote{blabla} \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 ___
[NTG-context] Multiple side-by-side tables
I would like to put several tables side-by-side one another. Nesting \placesidebyside commands seems a bit inconvenient. Suggestions on how to make \starttable ... \stoptable not create a newline (without the \placesidebyside command) would be greatly appreciated. -- Troy Henderson ___ 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] temporarily disabling enumeration numbering
The patch seems to break \footnote: \unprotect % workaround \def\@@makedescription[#1]#2% {\postponenotes % new, assumes grouping \doenumerationcheckconditions{#1}% \dodescriptioncomponent[\c!reference=#1,\c!label={\descriptionparameter\c!text},\c!title={#2},\c!bookmark=,\c!list=][]% \@@dostartdescriptionindeed} \def\doenumerationcheckconditions#1% {\doifelse{\descriptionparameter\c!number}\v!yes {\doifelse{#1}\enumerationdisablenumbersignal\setfalse\settrue\enumerationnumberenabled} {\setfalse\enumerationnumberenabled}% \edef\currentenumerationcoupling{\descriptionparameter\c!coupling}} \protect \starttext Blabla\footnote{blabla} \stoptext writes "Blablaln:linenotefootnote". 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 ___
Re: [NTG-context] temporarily disabling enumeration numbering
Thanks for the patch. Vianney On Mon, Apr 5, 2010 at 14:33, Wolfgang Schuster wrote: > Am 05.04.10 14:04, schrieb Vianney le Clément: >> >> Hello again, >> >> Section 10.3 of the manual says that one can disable numbering for one >> item of an enumeration by putting [-]. However, this seems to affect >> the following item instead of the current one. For example, >> >> \defineenumeration[MyEnum][location=left] >> \starttext >> \MyEnum First\par >> \MyEnum[-] Second\par >> \MyEnum Third\par >> \MyEnum Fourth\par >> \stoptext >> >> removes the number of the third line, instead of the second one. >> > > A perfect example. > > \unprotect > > %\def\@@makedescription[#1]#2% > % {\postponenotes % new, assumes grouping > % \doenumerationcheckconditions > % > \dodescriptioncomponent[\c!reference=#1,\c!label={\descriptionparameter\c!text},\c!title={#2},\c!bookmark=,\c!list=][]% > % \@@dostartdescriptionindeed} > > \def\@@makedescription[#1]#2% > {\postponenotes % new, assumes grouping > \doenumerationcheckconditions{#1}% > > \dodescriptioncomponent[\c!reference=#1,\c!label={\descriptionparameter\c!text},\c!title={#2},\c!bookmark=,\c!list=][]% > \@@dostartdescriptionindeed} > %\def\doenumerationcheckconditions > % {\doifelse{\descriptionparameter\c!number}\v!yes > % {\ifx\currentdescriptionreference\enumerationdisablenumbersignal > % \setfalse\enumerationnumberenabled \else > \settrue\enumerationnumberenabled > % \fi}% > % {\setfalse\enumerationnumberenabled}% > % \edef\currentenumerationcoupling{\descriptionparameter\c!coupling}} > > \def\doenumerationcheckconditions#1% > {\doifelse{\descriptionparameter\c!number}\v!yes > > {\doifelse{#1}\enumerationdisablenumbersignal\setfalse\settrue\enumerationnumberenabled} > {\setfalse\enumerationnumberenabled}% > \edef\currentenumerationcoupling{\descriptionparameter\c!coupling}} > > \protect > > \defineenumeration[MyEnum][location=left] > \starttext > \MyEnum First\par > \MyEnum[-] Second\par > \MyEnum Third\par > \MyEnum Fourth\par > \stoptext > > Wolfgang > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___ > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] temporarily disabling enumeration numbering
Am 05.04.10 14:04, schrieb Vianney le Clément: Hello again, Section 10.3 of the manual says that one can disable numbering for one item of an enumeration by putting [-]. However, this seems to affect the following item instead of the current one. For example, \defineenumeration[MyEnum][location=left] \starttext \MyEnum First\par \MyEnum[-] Second\par \MyEnum Third\par \MyEnum Fourth\par \stoptext removes the number of the third line, instead of the second one. A perfect example. \unprotect %\def\@@makedescription[#1]#2% % {\postponenotes % new, assumes grouping % \doenumerationcheckconditions % \dodescriptioncomponent[\c!reference=#1,\c!label={\descriptionparameter\c!text},\c!title={#2},\c!bookmark=,\c!list=][]% % \@@dostartdescriptionindeed} \def\@@makedescription[#1]#2% {\postponenotes % new, assumes grouping \doenumerationcheckconditions{#1}% \dodescriptioncomponent[\c!reference=#1,\c!label={\descriptionparameter\c!text},\c!title={#2},\c!bookmark=,\c!list=][]% \@@dostartdescriptionindeed} %\def\doenumerationcheckconditions % {\doifelse{\descriptionparameter\c!number}\v!yes % {\ifx\currentdescriptionreference\enumerationdisablenumbersignal %\setfalse\enumerationnumberenabled \else \settrue\enumerationnumberenabled % \fi}% % {\setfalse\enumerationnumberenabled}% % \edef\currentenumerationcoupling{\descriptionparameter\c!coupling}} \def\doenumerationcheckconditions#1% {\doifelse{\descriptionparameter\c!number}\v!yes {\doifelse{#1}\enumerationdisablenumbersignal\setfalse\settrue\enumerationnumberenabled} {\setfalse\enumerationnumberenabled}% \edef\currentenumerationcoupling{\descriptionparameter\c!coupling}} \protect \defineenumeration[MyEnum][location=left] \starttext \MyEnum First\par \MyEnum[-] Second\par \MyEnum Third\par \MyEnum Fourth\par \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] \framed[location=top] and slanted tex gyre bonum
\setupinterlinespace without changing offset does the trick. Many thanks, Vianney On Mon, Apr 5, 2010 at 14:13, Peter Münster wrote: > On Mon, Apr 05 2010, Vianney le Clément wrote: > >> \setupframed >> [frame=none, >> offset=0pt, >> location=top] > > Hello, > > I cannot explain why, but offset=overlay seems to be slightly better. > > >> \blank\sl > > \setupinterlinespace > > Cheers, 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 > ___ > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \framed[location=top] and slanted tex gyre bonum
On Mon, Apr 05 2010, Vianney le Clément wrote: > \setupframed > [frame=none, >offset=0pt, >location=top] Hello, I cannot explain why, but offset=overlay seems to be slightly better. > \blank\sl \setupinterlinespace Cheers, 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 ___
[NTG-context] temporarily disabling enumeration numbering
Hello again, Section 10.3 of the manual says that one can disable numbering for one item of an enumeration by putting [-]. However, this seems to affect the following item instead of the current one. For example, \defineenumeration[MyEnum][location=left] \starttext \MyEnum First\par \MyEnum[-] Second\par \MyEnum Third\par \MyEnum Fourth\par \stoptext removes the number of the third line, instead of the second one. 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 ___
Re: [NTG-context] Splitting a page in given ratios
Thanks Wolfgang, you made my morning! Matthias On Apr 5, 2010, at 3:32 AM, Wolfgang Schuster wrote: Am 05.04.10 01:10, schrieb Matthias Weber: Dear all, this is probably even easy in plain TeX, but as I have never learned it properly, I am asking anyway: I would like to have a way to split a part of a page into two columns of different width, so something like \startsplitpage[columns=2,spacing=fill] \startcolumn[1][width=.6 \textwidth] \input{tufte} \stopcolumn[1] \startcolumn[2][width=.3 \textwidth] \placefigure[theBeerBottle] \stopcolumn[2] \stopsplitpage so that the individual columns are treated (if possible) as separate pages with all features (like \framed etc) adapted to the page width of the smaller sub-pages. This could replace (for me) the somehow (for me) disfunctional figuretext construct. Is there a way to do this? http://wiki.contextgarden.net/Columns#Paragraphs See also http://pragma-ade.com/show-man-9.htm Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Different characters in two fonts
On Mon, Apr 5, 2010 at 12:58, Mehdi Omidali wrote: > Hi all, > When I use $\cong$, two different characters are displayed with "Latin > Modern Math" and "Cambria". In fact, the one for Cambria is the correct one. > Is this a problem of "Latin Modern font" (itself or context settings)? It's definitely not the problem with the font itself, but maybe with ConTeXt files. I cannot test since it doesn't work with mkiv on my version of ConTeXt at all. ! Math error: parameter \Umathquad\displaystyle is not set. l.2 a$\cong$ ? Thus it may make sense to wait for a new version of ConTeXt and new LuaTeX. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] \framed[location=top] and slanted tex gyre bonum
Hello, Yet another new ConTeXt user here. To briefly introduce myself, I am a computer scientist interested in typography as a hobby. Up to now, I did most things in LaTeX (sometimes resorting to ugly TeX hacking). Recently I gave ConTeXt MkIV a try and am quite happy with it. Now my question: I have some problems with the vertical alignment of \framed and some slanted fonts. Using the latest beta, the test file at the end of this message adds a slight whitespace in the two last blocks (using a slanted font). This does not happen when using the default Latin Modern font. Is this a bug or am I doing something wrong? Vianney \showstruts \usemodule[simplefonts] \setmainfont[Tex Gyre Bonum] \setupframed [frame=none, offset=0pt, location=top] \defineoverlay[bg][] \starttext \strut First line\par \strut Second line\par \strut Third line\par \blank \strut First line\par \framed{\strut Second line}\par \strut Third line\par \blank\sl \strut First line\par \strut Second line\par \strut Third line\par \blank \strut First line\par \framed{\strut Second line}\par \strut Third line\par \blank \strut First line\par \framed[background=bg]{\strut Second line}\par \strut Third line\par \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] caption on the inner side
Hello all, I was wondering if it possible to do something of this sort: \setupcaptions[location=low] \placefigure[outer][]{ Caption } {\externalfigure[test.jpg][width=0.5\textwidth]} So what I try is to get the caption not on the left side of the image but "inner". From the location pramametar there seems not to be an obvious solution, neither in the mail archive. Cheers, Hubertus ___ 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] Indent of heading when using command option
Am 05.04.10 10:54, schrieb Jan Pohanka: Hello, I have following code (simplified) \def\mySubject#1{#1} \setuphead[subject][style=\bfb\ss,color=HeadColor,before=,after=,textcommand={\mySubject}] When the command option is not set it works as expected and typeset the heading (subject) without any indenting, but using the command causes the small horizontal space in front of the subject. Is there any possibility to get rid of it? Learn to make a minimal example, with this I can't see what you mean. \def\mySubject#1{#1} \setuphead [subject] [style=\bfb\ss, color=HeadColor, before=, after=, textcommand={\mySubject}] \showframe \starttext \subject{Text} \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 ___
[NTG-context] Different characters in two fonts
Hi all, When I use $\cong$, two different characters are displayed with "Latin Modern Math" and "Cambria". In fact, the one for Cambria is the correct one. Is this a problem of "Latin Modern font" (itself or context settings)? Mehdi ___ 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] Indent of heading when using command option
Hello, I have following code (simplified) \def\mySubject#1{#1} \setuphead[subject][style=\bfb\ss,color=HeadColor,before=,after=,textcommand={\mySubject}] When the command option is not set it works as expected and typeset the heading (subject) without any indenting, but using the command causes the small horizontal space in front of the subject. Is there any possibility to get rid of it? best regards Jan -- Tato zpráva byla vytvořena převratným poštovním klientem Opery: http://www.opera.com/mail/ ___ 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] using xmlsetups
Well, after some more many hours toiling and with the help of \enabletrackers[lxml.setups] (Hans Hagen got to be thanked for that) finally discovered how to do this. I report it here in case other people might benefit. Maybe it should be put into the wiki, but I am not very apt with that. In the supporting setup DO NOT use {}: \xmlsetsetup{}{error|tex|html|nbsp|...|br}{xml:commoncontext:*} DO use {\xmldocument}: \xmlsetsetup{\xmldocument}{error|tex|html|nbsp|...|br} {xml:commoncontext:*} Simple and quite logical, iff one has seen the light. Hans van der Meer On 4 apr 2010, at 23:14, Hans van der Meer wrote: I cannot get multiple separate \xmlsetsetup's working. Obviously I am doing something wrong. My idea was: file included contains: \startxmlsetups xml:commoncontext:commonsetups \xmlsetsetup{}{error|tex|html|nbsp|...|br}{xml:commoncontext:*} \stopxmlsetups \xmlregistersetup{xml:commoncontext:commonsetups} \startxmlsetups xml:commoncontext:br \crlf \writestatus{CALLING}{br} % <<< apparently not called! \stopxmlsetups \startxmlsetups xml:commoncontext:b {\bf\xmlflush{#1}} \stopxmlsetups .. file that includes contains: \startxmlsetups xml:doccase:doccasesetups \xmlsetsetup{}{*}{xml:commoncontext:*} % {doc}{*}..also does not work \xmlsetsetup{doc}{*}{xml:case:*}% does work for setup 'xml:case' \xmlsetsetup{doc}{error|dvd|titles...|source|stars}{xml:doccase:*} \stopxmlsetups \xmlregistersetup{xml:doccase:dvoccasesetups} \startxmlsetups xml:case:text \xmlflush{#1} \stopxmlsetups etc. Usage: The break not called and similarly not calledb> Where is the flaw here? 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Need help with the "letter" module
Hi Andreas, thank you answering the question. Here is a new feature from the last version (4. April) which works only in mkiv: \usemodule[letter] \starttext \startletter \input knuth\par \ps{postscript} \cc{carbon copy} \encl{enclosure} \stopletter \startletter[postscript={postscript},copy={carbon copy},enclosure={enclosure}] \input knuth\par \stopletter \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 ___
[NTG-context] missing \xmlflushsetups?
I thought one can register various setups and then when setting up the processing of the root tag call them into being with: \xmlregisteredsetups (according to the docs "applies all global setups to the current document) But doing this as in: \startxmlsetups xml:doc:roottag xmlregisteredsetups ... I get instead the error: ! Undefined control sequence. \xmlregisteredsetups ...arttiming \xmlflushsetups \xmldefaulttotext \xmldocu... \@@su:xml:dvdcase:dvd #1->\xmlregisteredsetups 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Splitting a page in given ratios
Am 05.04.10 01:10, schrieb Matthias Weber: Dear all, this is probably even easy in plain TeX, but as I have never learned it properly, I am asking anyway: I would like to have a way to split a part of a page into two columns of different width, so something like \startsplitpage[columns=2,spacing=fill] \startcolumn[1][width=.6 \textwidth] \input{tufte} \stopcolumn[1] \startcolumn[2][width=.3 \textwidth] \placefigure[theBeerBottle] \stopcolumn[2] \stopsplitpage so that the individual columns are treated (if possible) as separate pages with all features (like \framed etc) adapted to the page width of the smaller sub-pages. This could replace (for me) the somehow (for me) disfunctional figuretext construct. Is there a way to do this? http://wiki.contextgarden.net/Columns#Paragraphs See also http://pragma-ade.com/show-man-9.htm 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] There are some math fonts can't be found with the beta 2010.03.30 and luatex > 0.52
luigi scarso wrote: On Mon, Apr 5, 2010 at 8:52 AM, Taco Hoekwater wrote: Li Yanrui (李延瑞) wrote: Hi, A sample: \starttext \startformula \left[\matrix{1\cr 0\cr 0}\right]. \stopformula \stoptext The warning informaton: LuaTeX warning (file lmex10): Font lmex10 at 720 not found This works ok here. Perhaps you need the latest luatex 0.60.0, something has changed in the mapfile loading from lua. here no:same problem here with 0.60.0 & ConTeXt ver: 2010.03.30 18:56 MKIV Then maybe a newer, still unavailable context (mine is locally patched). I expect a new beta from Hans later today. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] There are some math fonts can't be found with the beta 2010.03.30 and luatex > 0.52
On Mon, Apr 5, 2010 at 8:52 AM, Taco Hoekwater wrote: > Li Yanrui (李延瑞) wrote: >> >> Hi, >> >> A sample: >> >> \starttext >> >> \startformula >> \left[\matrix{1\cr 0\cr 0}\right]. >> \stopformula >> >> \stoptext >> >> The warning informaton: >> >> LuaTeX warning (file lmex10): Font lmex10 at 720 not found > > This works ok here. Perhaps you need the latest luatex 0.60.0, > something has changed in the mapfile loading from lua. here no:same problem here with 0.60.0 & ConTeXt ver: 2010.03.30 18:56 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 ___
Re: [NTG-context] Mk II, textstyle=cap not working
On Sun, Apr 4, 2010 at 23:11, Wolfgang Schuster wrote: > Am 04.04.10 22:58, schrieb Michael Ewe: >> >> But: how can I find out? Its not in the manual, its not in the manual's >> source. >> >> Feeling kind of lost here ! >> > > 1. It helps to know the source and where certain keys are performed. > > 2. Lots of trial and error, play with the different keys and look which > combination and setup works. 3. Write to the mailing list and let the experts answer you :) :) :) [which is what you just did] 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___