Re: [NTG-context] How to set the caption length?
On Saturday 16 October 2010 07:07:01 seasoul wrote: When a figure is placed, but this figure size is much smaller than the textwidth, the caption length will adjust after the figure size. \placefigure [][fig:xxx] {} {\externalfigure[xxx]} when set the figure size to an arbitrary size, the caption length will also change. But what I expect is, i change the figure size, but the caption size is always the textwith, or i can set it arbitrarily, for example 90% of the text size. I know it should be very easy, but honestly, i do not know. For example, try: \setupcaption [figure] [width=.8\textwidth] 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] A few puzzling problems (bugs?) with enumerations
On Fri, Oct 15 2010, Aditya Mahajan wrote: cont-en.xml and send the diff file to Hans. (There were plans to reimplement that in lua, but I do not know what is the current state of it). Early beginning stage. See also: http://foundry.supelec.fr/svn/contextman/context-commands 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] Extra spaces in APA bibliography style
On 10/15/2010 12:58 PM, Florian Wobbe wrote: Hi, I just noticed that there is an extra space after the booktitle and before ', pages' in the publicationlayout inproceedings in the english APA bibliography style. Hans, can you do this please? Also, line 334 needs an identical fix. Here is a suggested patch: --- texmf-context/tex/context/bib/bibl-apa.tex.orig 2009-01-05 15:03:34.0 +0100 +++ texmf-context/tex/context/bib/bibl-apa.tex 2010-10-15 11:47:41.0 +0200 @@ -307,7 +307,7 @@ {}% {}% \insertchap{\unskip, }{ }{ }% - \insertpages{, pages~}{}{}% + \insertpages{\unskip, pages~}{}{}% \insertorg{. }{.}{.}% }% {In \insertcrossref{}{}{}% Best, Florian ___ 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] A few puzzling problems (bugs?) with enumerations
On 16-10-2010 2:29, Aditya Mahajan wrote: content. You could simulaneously add the appropriate keys to cont-en.xml and send the diff file to Hans. (There were plans to reimplement that in lua, but I do not know what is the current state of it). definitely not soon and the xml file will stay around anyway - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 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] Extra spaces in APA bibliography style
On 16-10-2010 9:19, Taco Hoekwater wrote: On 10/15/2010 12:58 PM, Florian Wobbe wrote: Hi, I just noticed that there is an extra space after the booktitle and before ', pages' in the publicationlayout inproceedings in the english APA bibliography style. Hans, can you do this please? Also, line 334 needs an identical fix. I've added an \unskip before each , pages. -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 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] Furigana
Am 15.10.2010 um 16:07 schrieb S Barmeier: Thank you, it's almost working. I am making use of projects, products, environments and components. My \usemodule[ruby] sits in my environment file, but I'm using the \ruby command down in the component file. The environment is only called in the project file, but the component links back to the product (with \product - I guess that's how you do it?) and the product back to the project. The error occurs, no matter at which level (project/product/component) I am compiling. Do I really need to call the module in each component? I thought the component should trace back to the higher levels to find which modules to load... Load the project or the environment file in your component. 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] Wanted: ConTeXt: The poster
2010/9/7 Henning Hraban Ramm hra...@fiee.net: Am 2010-09-07 um 12:09 schrieb Martin Schröder: for use at a conference booth I'd like to have a poster (A3 up to A0) describing (and of course promoting) ConTeXt. You may assume that the audience already knows (La)TeX. :-) The first use would be at OpenRheinRuhr in November. Since most ConTeXt developers will be together next week, could you please spend some time creating one? I'm at least planning to compile a cheat-sheet over the meeting. And I should renew my German tutorial... (Many ideas, not enough time...) Any progress? Flyers for ConTeXt and LuaTeX would be nice, too. 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] Wanted: ConTeXt: The poster
Am 2010-10-16 um 15:56 schrieb Martin Schröder: I'm at least planning to compile a cheat-sheet over the meeting. And I should renew my German tutorial... (Many ideas, not enough time...) Any progress? Flyers for ConTeXt and LuaTeX would be nice, too. No, sorry. I'm working on at least 3 overdue projects, and I gave up on selecting the most important ConTeXt commands/settings for the cheat sheet - when I work with ConTeXt I have to look up so much different stuff, that I can't decide; and leaving out configuration options won't help either. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] background over two page
A solution by Luigi: %% \newdimen\SpaceLeft \def\CheckSpace{% \ifdim\pagetotal=0pt\SpaceLeft=\vsize\else\SpaceLeft=\pagegoal\advance\SpaceLeft by -\pagetotal\advance\SpaceLeft by -2\lineheight\fi}% \setupcolors[state=start] \long\def\StartBg#1\StopBg{% \bgroup \setbox8000=\vbox{\hsize=\dimexpr\textwidth-1em\relax#1} \CheckSpace% \the\SpaceLeft\the\ht8000 \the\dp8000 \ifdim\dimexpr(\ht8000+\dp8000)\SpaceLeft\relax % \setbox8001=\vsplit8000 to \SpaceLeft% \setbox8001=\vbox{\unvbox8001}% % \setupbackground [bottomframe=off, rulethickness=1pt, rightframe=on,width=\textwidth, leftframe=on] \startbackground\unvbox8001\stopbackground% \setupbackground [bottomframe=on, rulethickness=1pt, rightframe=on,width=\textwidth, leftframe=on] \startbackground\unvbox8000\stopbackground% \else \setupbackground [bottomframe=on, rulethickness=1pt, rightframe=on, leftframe=on] \startbackground #1\stopbackground% \fi \egroup } \setupbackground [bottomframe=on, rulethickness=1pt, rightframe=on, leftframe=on] \starttext \startbackground \input knuth \stopbackground e poi \StartBg \input knuth \input knuth \input knuth \StopBg \stoptext %% An alternative solution with the command \definetextbackground: %% \setupcolors[state=start] \enableregime[utf] \def\Linea{\startMPcode draw (0,0) -- (\the\textwidth-1,0) withpen pencircle scaled 1bp withcolor red; \stopMPcode } \definetextbackground [Prova] [ mp=background:mp, location=paragraph, rulethickness=1pt, width=broad, leftoffset=1em, rightoffset=1em, after={\Linea} ] \startuseMPgraphic{background:mp} path p; for i = 1 upto nofmultipars : p = (multipars[i] topenlarged 5pt bottomenlarged 10pt); fill p withcolor lightgray ; draw leftboundary p withpen pencircle scaled 1bp withcolor red ; draw rightboundary p withpen pencircle scaled 1bp withcolor red ; endfor; \stopuseMPgraphic \starttext \startProva \input knuth \input knuth \input knuth \input knuth \input knuth \stopProva \stoptext %% bye ES 2010/10/14 luigi scarso luigi.sca...@gmail.com: On Thu, Oct 14, 2010 at 11:05 AM, Emanuele Sacco emanuelesa...@gmail.com wrote: Hi all, I'm using context MkII. My code is \setupcolors[state=start] \setupbackground [bottomframe=on, rulethickness=1pt, rightframe=on, leftframe=on] \starttext Good: \startbackground \input knuth \stopbackground Not good: \startbackground \input knuth \input knuth \input knuth \stopbackground \stoptext The second backgrounded text is on two pages. Is there a way to not show the bottomframe at the end of the first page? thanks ES -- Al mondo ci sono 10 tipi di persone: quelli che conoscono il sistema binario e quelli che non lo conoscono. ___ 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 ___ As always my pov: a wrapper macro. \showframe \newdimen\SpaceLeft \def\CheckSpace{% \ifdim\pagetotal=0pt\SpaceLeft=\vsize\else\SpaceLeft=\pagegoal\advance\SpaceLeft by -\pagetotal\advance\SpaceLeft by -2\lineheight\fi}% \setupcolors[state=start] \long\def\StartBg#1\StopBg{% \bgroup \setbox8000=\vbox{#1} \CheckSpace% \the\SpaceLeft\the\ht8000 \the\dp8000 \ifdim\dimexpr(\ht8000+\dp8000)\SpaceLeft\relax % \setbox8001=\vsplit8000 to \SpaceLeft% \setbox8001=\vbox{\unvbox8001}% % \setupbackground [bottomframe=off, rulethickness=1pt, rightframe=on, leftframe=on] \startbackground\unvbox8001\stopbackground% \setupbackground [bottomframe=on, rulethickness=1pt, rightframe=on, leftframe=on] \startbackground\unvbox8000\stopbackground% \else \setupbackground [bottomframe=on, rulethickness=1pt, rightframe=on, leftframe=on] \startbackground #1\stopbackground% \fi \egroup } \setupbackground [bottomframe=on, rulethickness=1pt, rightframe=on, leftframe=on] \starttext Good: \startbackground \input knuth \stopbackground Not good: \StartBg \input knuth \input knuth \input knuth \StopBg \stoptext -- 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] \ReadFile in MkII vs MkIV
Hi, In MkII, I can say \ReadFile{/tmp/filename} to read a file in /tmp directory. However, in MkIV, that fails because ReadFile is defined as \unexpanded\def\ReadFile #1{\doreadfile{any} {.}{#1}\donothing\donothing} so it explicitly searches in the . (current) directory. Bug or feature? 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 ___