Re: [NTG-context] how to reuse float numbers?
2007/9/7, William S. [EMAIL PROTECTED]: On 9/7/07, Wolfgang Schuster [EMAIL PROTECTED] wrote: you can start with the following example from Hans. \definefloat[Exhibit][table] \starttext \input tufte\par \splitfloat[lines=auto]{\placeExhibit{Knuth}} {\dorecurse{4}{\input knuth \par}} \input tufte\page[yes] \stoptext Wolfgang It says there is nothing to split at home and using ConTeXt live. Thanks for the pointer to splitfloat. I'll investigate it using ConTeXt's source code. William. can you try my attached example. Wolfgang listing.tex Description: TeX document ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] how to reuse float numbers?
On 9/7/07, Wolfgang Schuster [EMAIL PROTECTED] wrote: you can start with the following example from Hans. \definefloat[Exhibit][table] \starttext \input tufte\par \splitfloat[lines=auto]{\placeExhibit{Knuth}} {\dorecurse{4}{\input knuth \par}} \input tufte\page[yes] \stoptext Wolfgang It says there is nothing to split at home and using ConTeXt live. Thanks for the pointer to splitfloat. I'll investigate it using ConTeXt's source code. William. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] help needed
Francis Derive wrote: Bonjour Mesdames, Mesdemoiselles, et Messieurs, That means I need your help. I feel quite an idiot, but I don't know what to do with - say the cont-tmf folder I downloaded for ma Mac Os X Tiger : looking inside, I don't see any application... Started reading the doc on your site, created a myfile.tex as yours, but % context myFile zsh: command not found: context Well, I have several TeX softare I don't use a lot - had used it, but forgot and still wishes to go back to : so how can you show me the way ? Merci beaucoup ! depends on your system ... i forwarded to the context mailing list - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] how to reuse float numbers?
On 9/7/07, William S. [EMAIL PROTECTED] wrote: The guidelines specify that captions for code which is longer than one page or crosses page boundaries should be reprinted and the title changed to (continued). example: Program Segment 1.1: Hello World #include stdio.h main() { ...on next page... Program Segment 1.1: (continued) printf(hello world!\n); } Thanks to Wolfgang's help the splitting problem is solved. However, after the float is split, the captions get extra numbers (1.1.A, 1.1.B, etc). I tried to solve this by using \setupfloatsplitting[conversions=...] but even if I defined a conversion that prints nothing, the caption would look like Program Segment 1.1. (the final separator is still printed). I suppose a better way would be to override the command that makes the captions (\setupcaption[ProgramSegment][command=...]) so that it prints the real caption text in the first part, and (continued) in the next parts. However, I've searched the mailing list archive and I can't find an example on what to put inside the command. Can someone give me a clue as to what I should put inside the command or maybe someone will have a better idea (maybe using \setupfloatsplitting[inbetween=...])? I've attached a slightly modified version of Wolfgang's document (I added a conversion for the setupfloatsplitting). Thanks, William. lst2.tex Description: TeX document ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] how to reuse float numbers?
On 9/7/07, Wolfgang Schuster [EMAIL PROTECTED] wrote: can you try my attached example. Wolfgang Thank you! That's amazing... It seems I need to learn more about writing these macros before I can do anything like that. I almost decided to just use tables with no frame to hold my source-code... Thanks again! William. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Margins around figures
2007/9/7, Oliver Buerschaper [EMAIL PROTECTED]: mpost seminar.mp This is MetaPost, Version 0.993 (Web2C 7.5.6) (seminar.mp (/usr/share/texmf-texlive/metapost/base/TEX.mp) (/usr/share/texmf-texlive/metapost/base/boxes.mp) boundingbox.currentpicture.enlarged1cm ! Improper `clip'. to be read again ; l.26 ...o boundingbox currentpicture enlarged 1cm; ? Oh, seems like I forgot that you wanted to run MetaPost externally. The command enlarged isn't contained in standard MetaPost but only in the extension MetaFun (i.e. MetaPost plus quite a number of predefined MetaPost macros) that comes with ConTeXt. Therefore the error is thrown ... Why not try this (in ConTeXt): --- \starttext \startuseMPgraphic{yourPicture} % put your MetaPost code here (without beginfig(); and endfig;) setbounds currentpicture to boundingbox currentpicture enlarged 1cm; \stopuseMPgraphic \useMPgraphic{yourPicture} \stoptext He can set the offset in ConTeXt and not in MetaPost, e.g. \offset[leftoffset=...]{\externalfigure[fugurename]} The \offset command is described in the details manual, he can also look at the definition in core-box. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Margins around figures
I am making a presentation with ConTeXt, with numerous MetaPost figures. Now, the only problem is that my white MetaPost figures don't blend well with the dark background of the screen. This isn't too good since the text labels in my figure's edges appear too close to the edge. What I'd like to know is, whether there's a way to specify some extra margin space around the figure, which would provide some more white area around the MetaPost figure. Alternately, is there an elegant MetaPost way of specifying figure margins? Perhaps setbounds currentpicture to boundingbox currentpicture enlarged 5mm; at the end of your MetaPost drawing might do what you want? Oliver ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Margins around figures
mpost seminar.mp This is MetaPost, Version 0.993 (Web2C 7.5.6) (seminar.mp (/usr/share/texmf-texlive/metapost/base/TEX.mp) (/usr/share/texmf-texlive/metapost/base/boxes.mp) boundingbox.currentpicture.enlarged1cm ! Improper `clip'. to be read again ; l.26 ...o boundingbox currentpicture enlarged 1cm; ? Oh, seems like I forgot that you wanted to run MetaPost externally. The command enlarged isn't contained in standard MetaPost but only in the extension MetaFun (i.e. MetaPost plus quite a number of predefined MetaPost macros) that comes with ConTeXt. Therefore the error is thrown ... Why not try this (in ConTeXt): --- \starttext \startuseMPgraphic{yourPicture} % put your MetaPost code here (without beginfig(); and endfig;) setbounds currentpicture to boundingbox currentpicture enlarged 1cm; \stopuseMPgraphic \useMPgraphic{yourPicture} \stoptext --- Best, Oliver ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Page numbers at empty pages
On Thu, Sep 06, 2007 at 08:05:12PM +0200, Steffen Wolfrum wrote: % zusätzlich innerhalb des bodymatter leere linke Seiten mit \page [yes,empty] manuell setzen Thank you Steffen, your lines help. Only inserting \page[yes,empty] is a dirty solution because I must omit it if there is no empty (left) page. Gerhard -- Gerhard Kugler Psychotherapeut Bensheim (Germany) http://www.psychotherapie-kugler.de ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Page numbers at empty pages
2007/9/7, Gerhard Kugler [EMAIL PROTECTED]: On Thu, Sep 06, 2007 at 08:05:12PM +0200, Steffen Wolfrum wrote: % zusätzlich innerhalb des bodymatter leere linke Seiten mit \page [yes,empty] manuell setzen Thank you Steffen, your lines help. Only inserting \page[yes,empty] is a dirty solution because I must omit it if there is no empty (left) page. Gerhard \setuphead [chapter] [page=yes, before={\ifodd\realpageno\else\page[empty]\fi}] \starttext \chapter {test} \dorecurse{10}{\input tufte } \chapter {test} \dorecurse{10}{\input tufte } \chapter {test} \dorecurse{10}{\input tufte } \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] how to reuse float numbers?
2007/9/7, William S. [EMAIL PROTECTED]: Hello, I am wondering if the float numbers can be reused for floats that are longer than a page. I use floats that contain program segments (source code) for a project report for my university studies. The guidelines specify that captions for code which is longer than one page or crosses page boundaries should be reprinted and the title changed to (continued). example: Program Segment 1.1: Hello World #include stdio.h main() { ...on next page... Program Segment 1.1: (continued) printf(hello world!\n); } Can someone help me do this in ConTeXt? I think I can do the splitting of the code myself if needed, but I don't know how to reuse the float number. Currently this is how I define the float: \definetyping[Program][blank=halfline] \definefloat[ProgramSegment][ProgramSegments] \setupcaption[ProgramSegment][location=top,align=right,headstyle=bold,style=bold,inbetween={}] \setuplabeltext[en][ProgramSegment=Program Segment ] And I use it like this: \placeProgramSegment[here]{Hello World} { \startProgram main() { printf(hello world!\n); } \stopProgram } Any help will be appreciated. Thanks, William. you can start with the following example from Hans. \definefloat[Exhibit][table] \starttext \input tufte\par \splitfloat[lines=auto]{\placeExhibit{Knuth}} {\dorecurse{4}{\input knuth \par}} \input tufte\page[yes] \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Margins around figures
On Fri, Sep 07, 2007 at 11:16:50PM +0530, Kumar Appaiah wrote: But, is there still an elegant way to have more margin in MetaPost images? OK, a cheap and dirty workaround: define a blank label at a location outside the bounds of your actual picture, and MetaPost does the needful. Inelegant, but works for now. My next free-time-assignment is to learn MetaFun, since I've read enough to know that by not knowing it, I'm missing something significant. Thanks! Kumar -- Kumar Appaiah, 458, Jamuna Hostel, Indian Institute of Technology Madras, Chennai - 600 036 ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Margins around figures
On Fri, Sep 07, 2007 at 09:18:30AM +0200, Oliver Buerschaper wrote: Perhaps setbounds currentpicture to boundingbox currentpicture enlarged 5mm; at the end of your MetaPost drawing might do what you want? That's probably in the right direction, but the MetaPost newbie I am, I am unable to figure out the error: mpost seminar.mp This is MetaPost, Version 0.993 (Web2C 7.5.6) (seminar.mp (/usr/share/texmf-texlive/metapost/base/TEX.mp) (/usr/share/texmf-texlive/metapost/base/boxes.mp) boundingbox.currentpicture.enlarged1cm ! Improper `clip'. to be read again ; l.26 ...o boundingbox currentpicture enlarged 1cm; ? What error could this be? The line I added is: setbounds currentpicture to boundingbox currentpicture enlarged 1cm; Thanks! Kumar -- Kumar Appaiah, 458, Jamuna Hostel, Indian Institute of Technology Madras, Chennai - 600 036 ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Margins around figures
On Fri, Sep 07, 2007 at 12:31:26PM +0200, Wolfgang Schuster wrote: He can set the offset in ConTeXt and not in MetaPost, e.g. \offset[leftoffset=...]{\externalfigure[fugurename]} The \offset command is described in the details manual, he can also look at the definition in core-box. Well, that seems to be a nice option, but it fills the offset region in the background colour instead of white. I'll try to figure out if there's some workaround for that. Also, I'll try Oliver's solution, though it seems to generate full pages and not individual images. But, is there still an elegant way to have more margin in MetaPost images? Thanks! Kumar -- Kumar Appaiah, 458, Jamuna Hostel, Indian Institute of Technology Madras, Chennai - 600 036 ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] how to reuse float numbers?
Hello, I am wondering if the float numbers can be reused for floats that are longer than a page. I use floats that contain program segments (source code) for a project report for my university studies. The guidelines specify that captions for code which is longer than one page or crosses page boundaries should be reprinted and the title changed to (continued). example: Program Segment 1.1: Hello World #include stdio.h main() { ...on next page... Program Segment 1.1: (continued) printf(hello world!\n); } Can someone help me do this in ConTeXt? I think I can do the splitting of the code myself if needed, but I don't know how to reuse the float number. Currently this is how I define the float: \definetyping[Program][blank=halfline] \definefloat[ProgramSegment][ProgramSegments] \setupcaption[ProgramSegment][location=top,align=right,headstyle=bold,style=bold,inbetween={}] \setuplabeltext[en][ProgramSegment=Program Segment ] And I use it like this: \placeProgramSegment[here]{Hello World} { \startProgram main() { printf(hello world!\n); } \stopProgram } Any help will be appreciated. Thanks, William. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] how to change 'figure 1.1' to ' 그림 1.1'
2007/9/6, Jeong Dalyoung [EMAIL PROTECTED]: Hello, \placefloat will put 'figure 1.1' or 'table 1.1' below the figures(or tables). I'd like to change figure or table to my own language. I looked into the manual, but there is no option which change figure or table. I tried definefloat[그림][그림들], but ConTeXt did not accept it. Is there a way to change them? Thank you. Best regards, Dalyoung Hi, the labels for figures, tables etc. will change with your current main language in the document. \mainlanguage[cn] \starttext \placefigure{Caption}{Figure} \stoptext will use the chinese label for the figures. You can also define additional labels for other languages if there is no predefined for you. You can look into lang-chi.tex and lang-jap.tex for the definitions for chinese and japanese. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] help needed
Am 2007-09-07 um 18:53 schrieb Hans Hagen: i forwarded to the context mailing list For amusement? BTW on the LilyPond list we get a lot of similar questions of people who expect a GUI program... Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] fret-diagrams in Lilypond + ConTeXt
Hi all, I have problems getting fret-diagrams working in Lilypond+ConTeXt. The following works in lilypond \markup \fret-diagram #s:0.75;f:1;6-x;5-x;4-o;3-2-1;2-3-3;1-2-2; However, the following does not work in ConTeXt: \usemodule[lilypond] \starttext \startlilypond \markup \fret-diagram #s:0.75;f:1;6-x;5-x;4-o;3-2-1;2-3-3;1-2-2; \stoplilypond \stoptext I have ConTeXt ver: 2007.08.08 14:35 MKII fmt: 2007.8.26 int: english/english Lilypond version 2.10.5 and the Lilypond ConTeXt module t-lilypond-2007.09.02.zip The examples on the wiki works well, and the problem seems to be that \fret-diagram is written as \fret -diagram (note the space) in the .tmp file, and thus producing the error(?) Any ideas? Best regards, Micke P ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] help needed
Started reading the doc on your site, created a myfile.tex as yours, but % context myFile zsh: command not found: context use instead: texexec --pdf myFile.tex (use pdftex but Unicode is not working) or texexec --xtx myFile.tex (use Xetex with Unicode but is not working in Context-distribution since 2007, download the latest 2006 version from archiv) or texexec --lua myFile.tex (use LuaTex and Unicode but still official beta - have no experience with it) For XeTeX maybe look at: http://archive.contextgarden.net/message/20070130.145856.ffeabcfc.en.html Ciao ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] help needed
On Fri, 07 Sep 2007 18:53:49 +0200, Hans Hagen wrote: Francis Derive wrote: Bonjour Mesdames, Mesdemoiselles, et Messieurs, That means I need your help. I feel quite an idiot, but I don't know what to do with - say the cont-tmf folder I downloaded for ma Mac Os X Tiger : looking inside, I don't see any application... I suggest you try an application called TeXShop. It is a nice OS X application that allows you to use ConTeXt. You can find it here: http://www.uoregon.edu/~koch/texshop/texshop.html David ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___