[NTG-context] How to set a picture as the background of sildes ?
Hi, I am going to write a slides with a picture as background. I have googled but got no hints. Can someone recommend how to achieve this? Thanks in advance! Best regards. xiaojf ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Register layout
Quick question - how do I alter the width of the hanging indent of a register entry which is too long to fit on one line? I want to differentiate sub-entries, which each have an indent of 1em more than the previous level, from the indentation of longer entries, which by default is also set to 1em. In other words, for two entries: a short entry a sub-entry quite a long-winded single entry I would like the layout (please view with fixed width font): a short entry a sub-entry quite a long-winded single entry I tried putting \hangafter=1\hangindent=3em into the deeptextcommand of \setupregister but no change. Are there any hooks for this sort of thing? Thanks, Duncan ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] How to make copyable Chinese documents ?
On Tuesday 03 October 2006 01:04, [EMAIL PROTECTED] wrote: Hi, My friends can use LaTeX+CJK or LaTeX+CCT to generate Chinese documents the Chinese characters in which can be selected and copied. The procedure is using LaTeX to convert .tex file to .dvi, then using gs to convert .dvi to .pdf. I can use ConTeXt to generate .pdf file directly from .tex. and the Chinese characters can be selected, but when I try to paste it to another text editor, it looks like this üèÃËÂæúïÅ«§ÍÔ. I am using chinese module in ConTeXt version before 2005.12.19. Will the new version of ConTeXt fix this. Regards, Xiao Jianfeng Cut and paste are not TeX functions. Your operating system and GUI may be set up differently from your friend. If you exchange PDF files with him I think you will find that he can cut and paste successfully from your pdf and you will still have a problem with cut and paste from his. I cannot help you further without having some clue as to the Operating System in use on each computer. Also, what text editor are you using? Is it the same as his text editor? -- John Culleton Able Indexing and Typesetting Precision typesetting (tm) at reasonable cost. Satisfaction guaranteed. http://wexfordpress.com ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] beta
Hans Hagen schrieb: \starttext % \SetTableToWidth{\textwidth} \setuptables[split=yes,bodyfont=9pt] ok, i'll fix this (starttables is kind of obsolete; all table commands accept split=auto|yes|repeat [auto means that they will split when needed] Hi Hans did You have time to fix it? Bernd ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] beta
Bernd Militzer wrote: Hans Hagen schrieb: \starttext % \SetTableToWidth{\textwidth} \setuptables[split=yes,bodyfont=9pt] ok, i'll fix this (starttables is kind of obsolete; all table commands accept split=auto|yes|repeat [auto means that they will split when needed] Hi Hans did You have time to fix it? not yet; too busy trying to let context read from zip files 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] itemize and placefigure
Hi, as soon as I put a placefigure in an \item paragraph, the whole paragraph starts one line below the stopper. Is this a conceptual issue or just a weirdness? What is the best way to start at the same height? I couldn´t find anything in the wiki or the details ... As an example, see: \starttext \startitemize \item \input tufte \item \placefigure[right,none]{}{\framed[height=1cm]{foo bar}} \input tufte \item \input tufte \stopitemize \stopttext thanks, Jak 150MB of disk space, Webmail over SSL with address book, calendar, and organizer. Access thru Imap, Imap-SSL, Pop3, Pop3-SSL and Smtp. 5 different domains, antispam (spamassassin, bayes, razor, dcc) and mime filter, Up to 200mb per outgoing message. All free, is your current email having this functionalities ? Check http://www.nemail.it for registration and more info. This message is added automatically, for any information or support contact: [EMAIL PROTECTED]; if it is spam dont hesitate to report it. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] How to make copyable Chinese documents ?
[EMAIL PROTECTED] wrote: Hi, My friends can use LaTeX+CJK or LaTeX+CCT to generate Chinese documents the Chinese characters in which can be selected and copied. The procedure is using LaTeX to convert .tex file to .dvi, then using gs to convert .dvi to .pdf. I can use ConTeXt to generate .pdf file directly from .tex. and the Chinese characters can be selected, but when I try to paste it to another text editor, it looks like this ū���. I am using chinese module in ConTeXt version before 2005.12.19. Will the new version of ConTeXt fix this. i've forgotten if there was a trick to do it using pdftex and context -) you can try the dvipdfmx route since dvipdfmx is more clever with those huge fonts future versions (next year) of pdftex will definitely support this unicode map trickery 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] How to set a picture as the background of sildes ?
[EMAIL PROTECTED] wrote: Hi, I am going to write a slides with a picture as background. I have googled but got no hints. Can someone recommend how to achieve this? Thanks in advance! ah .. an easy one \defineoverlay[nice][\overlayfigure{something.pdf}] \setupbackgrounds[page][background=nice] more advanced thinsg canbe done by stacking backgrounds and/or using layers 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] How to set a picture as the background of sildes ?
One of the approaches is to use things like \defineoverlay [TitleGraphic] [{\externalfigure[picture-A][width=\overlaywidth,height=\overlayheight]}] \setupbackgrounds[page][background={TitleGraphic}] % Yet another way is using layers. For details please refer to the details manual. Willi [EMAIL PROTECTED] wrote: Hi, I am going to write a slides with a picture as background. I have googled but got no hints. Can someone recommend how to achieve this? Thanks in advance! Best regards. xiaojf ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] textbackground inside framed
Hi, I need a textbackground inside a \framed macro, which uses it's own background (overlay). Sadly the textbackground appears behind the framed background and my attempts to change this order haven't succeeded. \setuptextbackground[foo] [level=+1] brings the textbackground to the top, but overwrites the text. Also I haven't found a way to change the background level for \framed (e.g. set it to -2), which would easily solve the problem. Is there a way to make it appear above the framed background, but still below the text? Greetings, Peter \setupoutput[pdftex] \setupcolors[state=start] \definetextbackground[foo] [backgroundcolor=lightgray, frame=off, level=-1, % -3,-2,-1,+1,+2 ] \startuniqueMPgraphic{bar} fill OverlayBox withcolor red ; \stopuniqueMPgraphic \defineoverlay[bar][\uniqueMPgraphic{bar}] \starttext An example of a \starttextbackground[foo]textbackground\stoptextbackground. \framed {An example of a \starttextbackground[foo]textbackground\stoptextbackground.} \framed[background=color,backgroundcolor=yellow] % level=-2 {An example of a \starttextbackground[foo]textbackground\stoptextbackground.} \framed[background=bar] % level=-2 {An example of a \starttextbackground[foo]textbackground\stoptextbackground.} \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] How to make copyable Chinese documents ?
On 10/3/06, Hans Hagen wrote: [EMAIL PROTECTED] wrote: Hi, My friends can use LaTeX+CJK or LaTeX+CCT to generate Chinese documents the Chinese characters in which can be selected and copied. The procedure is using LaTeX to convert .tex file to .dvi, then using gs to convert .dvi to .pdf. I can use ConTeXt to generate .pdf file directly from .tex. and the Chinese characters can be selected, but when I try to paste it to another text editor, it looks like this I am using chinese module in ConTeXt version before 2005.12.19. Will the new version of ConTeXt fix this. i've forgotten if there was a trick to do it using pdftex and context -) It might be that a similar appreach to pdfr-ec.tex would do (you have to tell to Acrobat which character code represents which letter of the Unicode and is probably implemented in LaTeX), but esp. because of the reason mentioned below I don't think that it would be worth the effort to implement it now. future versions (next year) of pdftex will definitely support this unicode map trickery Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] table: code doesn't work any more with recent beta
On 10/2/06, John R. Culleton wrote: On Monday 02 October 2006 13:07, Wolfgang Schuster wrote: On Sun, 01 Oct 2006 22:42:03 +0100 Sanjoy Mahajan [EMAIL PROTECTED] wrote: I'd seen a similar problem but didn't manage to catch it before it slithered away. But I'm pretty sure it used to work (perhaps with an August 06 release). Worst case as an emergency fix you could pick up the table module from the texsis suite: TXSruled.tex. I use it all the time in plain tex and pdfetex. It will work in Context too. Here is a sample: \input TXSruled.tex ... \ruledtable VENDOR \cr John Culleton \hfill\crnorule Able Indexers and Typesetters\hfill\crnorule 2401 Haight Avenue\hfill\crnorule Eldersburg, MD 21784 \hfill \endruledtable I find this style of coding less cumbersome than the one adopted for Context, with all the capitalizations etc. I don't need a quick fix since I can still use the old version to compile that specific document - but it would be great if it would be fixed in the current beta as well. I also remember some other problems with tables being reported not so long ago (usage of \AR, \MR, \FR, \LR, ... causing problems in macros). But thanks for the hint. I'll take a look at TXSruled, I never heard about it before. (I hate the way tables are dealt with inside any flavour of TeX anyway.) Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] LilyPond module for LilyPond 2.9.x
Hello again, I'm still stuck with the counter problem, unfortunately I got no response... ConTeXts writes out all the LilyPond pieces as myfile-lilypond- #.tmp, sequential numbered. Then it should run LilyPond and epstopdf on the snippets, but runs them always only on no.1 I.e. the counter doesn't behave like it should. Why? I think, these are the regarding code snippets (sorry, can't think of a minimal example for I don't understand the code by Christopher): \unprotect \def\??lily{lilypond-} %... \newcount\lily!figures %... \long\def\dodostartlilypond[#1]#2\stoplilypond{% \egroup% from \dostartlilypond \bgroup% %... \global\advance\lily!figures\plusone \startmode[*\v!first]% \def\obeyedlines{\string^^J}% \convertargument#2\to\ascii \expanded{% \setbuffer[lilypond-\the\lily!figures]% % here it works, all buffers are numbered % ... \ascii% \ifundefined{\??lily fragment}\else\lily!fragmentsuffix\fi }% expanded \endbuffer% \def\LP{texmfstart --exec bin:lilypond -b eps -dno-gs-load-fonts - dinclude-eps-fonts } \def\PDF{texmfstart --ifchanged=} % here the counter is always 1 \ifeof18 \installprogram{\LP\bufferprefix lilypond-\the\lily!figures.tmp}% % can someone explain this installprogram? \doif\jobsuffix{pdf}{% \installprogram{\PDF\bufferprefix lilypond-\the\lily! figures.eps pstopdf \bufferprefix lilypond-\the\lily!figures.eps}% }% \else \executesystemcommand{\LP\bufferprefix lilypond-\the\lily! figures.tmp}% \doif\jobsuffix{pdf}{% \executesystemcommand{\PDF\bufferprefix lilypond-\the\lily! figures.eps pstopdf \bufferprefix lilypond-\the\lily!figures.eps}% }% \fi \stopmode% only first run \doifelse\jobsuffix{pdf} {\edef\lily!img{\bufferprefix lilypond-\the\lily!figures.pdf}}% {\edef\lily!img{\bufferprefix lilypond-\the\lily!figures.eps}}% \ifvmode \getfiguredimensions[\bufferprefix lilypond-\the\lily! figures.pdf]% % here it works again, image no.# is not found (besides no.1) \leavevmode% \newdimen\FigWidth \FigWidth=\figurewidth \ifdim\FigWidth\localhsize \!!dimena=\localhsize \advance\!!dimena by-\FigWidth \noindent\hskip\!!dimena \fi \fi \externalfigure[\lily!img]% \egroup% }% Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://contextgarden.net http://www.cacert.org (I'm an assurer) smime.p7s Description: S/MIME cryptographic signature ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] LilyPond module for LilyPond 2.9.x
On 10/3/06, Henning Hraban Ramm wrote: Hello again, I'm still stuck with the counter problem, unfortunately I got no response... ConTeXts writes out all the LilyPond pieces as myfile-lilypond- #.tmp, sequential numbered. Then it should run LilyPond and epstopdf on the snippets, but runs them always only on no.1 I.e. the counter doesn't behave like it should. Why? I think, these are the regarding code snippets (sorry, can't think of a minimal example for I don't understand the code by Christopher): \unprotect \def\??lily{lilypond-} %... \newcount\lily!figures %... \long\def\dodostartlilypond[#1]#2\stoplilypond{% \egroup% from \dostartlilypond \bgroup% %... \global\advance\lily!figures\plusone \startmode[*\v!first]% \def\obeyedlines{\string^^J}% \convertargument#2\to\ascii \expanded{% \setbuffer[lilypond-\the\lily!figures]% % here it works, all buffers are numbered % ... \ascii% \ifundefined{\??lily fragment}\else\lily!fragmentsuffix\fi }% expanded \endbuffer% \def\LP{texmfstart --exec bin:lilypond -b eps -dno-gs-load-fonts - dinclude-eps-fonts } \def\PDF{texmfstart --ifchanged=} % here the counter is always 1 \ifeof18 \installprogram{\LP\bufferprefix lilypond-\the\lily!figures.tmp}% % can someone explain this installprogram? \doif\jobsuffix{pdf}{% \installprogram{\PDF\bufferprefix lilypond-\the\lily! figures.eps pstopdf \bufferprefix lilypond-\the\lily!figures.eps}% }% \else \executesystemcommand{\LP\bufferprefix lilypond-\the\lily! figures.tmp}% \doif\jobsuffix{pdf}{% \executesystemcommand{\PDF\bufferprefix lilypond-\the\lily! figures.eps pstopdf \bufferprefix lilypond-\the\lily!figures.eps}% }% \fi \stopmode% only first run \doifelse\jobsuffix{pdf} {\edef\lily!img{\bufferprefix lilypond-\the\lily!figures.pdf}}% {\edef\lily!img{\bufferprefix lilypond-\the\lily!figures.eps}}% \ifvmode \getfiguredimensions[\bufferprefix lilypond-\the\lily! figures.pdf]% % here it works again, image no.# is not found (besides no.1) \leavevmode% \newdimen\FigWidth \FigWidth=\figurewidth \ifdim\FigWidth\localhsize \!!dimena=\localhsize \advance\!!dimena by-\FigWidth \noindent\hskip\!!dimena \fi \fi \externalfigure[\lily!img]% \egroup% }% I cannot test since lilypond is not working properly on my computer, but I get the proper numbers. Here's an excerpt from the log file (I changed lilypond to echo): systems : begin file test1 at line 2 test1-lilypond-1.tmp system(echo test1-lilypond-1.tmp)...executed. system(epstopdf test1-lilypond-1.eps)...executed. (C:\Programi\MikTeX\tex\context\base\pdfr-ec.tex) figures : figure test1-lilypond-1 can not be found color : mpcmyk color space is supported color : mpspot color space is supported color : system rgb is local activated test1-lilypond-2.tmp system(echo test1-lilypond-2.tmp)...executed. system(epstopdf test1-lilypond-2.eps)...executed. Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] wiki: debian installation
On 10/2/06, plink wrote: Thanks a lot for all the comments! Feel free to edit the wiki if nobody else starts doing so (I have some plans in mind about changing/improving installation pages, but it's only a question of starting it and taking some more time ...). I'm only answering a few of the questions. Hmm. The texmfstart warning looks familiar, but missing font files? Strange. Anyway, the pdf-file looks ok, so lets be more adventurous, and try the second ConTeXt test file from the wiki, the one with the little red hat: ... Warning: pdfetex (file /home/myuser/texmf/fonts/map/dvipdfm/ context/original-base.map): invalid entry for `fmvr8x': font file missing Some time ago it was a hot topic on the mailing list. See: http://wiki.contextgarden.net/Error_Recovery and fix it if possible even if it is working now for some reason. But that page should be less hidden, I admit. Well, several hours of documentation/wiki grinding later we thought: lets do it like the ConTeXt gurus and try the texmfstart thing. We created the two liner /home/myuser/bin/texexec: #!/bin/sh texmfstart texexec.rb --nonstopmode $@ and a link ln -s ~/texmf/scripts/context/ruby/texmfstart.rb texmfstart That's the proper way ;) Heureka - that was it! Umlauts, special chars in typing environments etc. are fine with the new texexec, even if the system wide format files are created with the old texexec !?! texexec only calls pdfTeX with proper arguments, so it's pdfTeX version (and version of ConTeXt .tex source files) the one that matters, not really the flavour of texexec. hth and wel te rusten, Jak. PS: One question remains: is the texmfstart.rb way now the official way of doing ConTeXt on Linux/Debian these days? Yes. It already is the default under MikTeX 2.5 with stand-alone ConTeXt, but I have no idea when/if it's going to be the default under teTeX (it's not maintained any more), gwTeX, ... Hopefully it's going to be the default under TeX Live, other distributions usually follow then. If so, it´d better be documented for the rookies of us somehow/somewhere, if not, something else in the documentation needs to be fixed. Sure, Installation pages should be more unified. PPS: No, still no idea who should write all that documentation. Wiki is left to the users (like including you). Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] itemize and placefigure
On 10/3/06, plink wrote: Hi, as soon as I put a placefigure in an \item paragraph, the whole paragraph starts one line below the stopper. Is this a conceptual issue or just a weirdness? What is the best way to start at the same height? I couldn´t find anything in the wiki or the details ... As an example, see: \starttext \startitemize \item \input tufte \item \placefigure[right,none]{}{\framed[height=1cm]{foo bar}} \input tufte \item \input tufte \stopitemize \stopttext \placefigure will always start a new paragraph, but usually you don't notice that since you want it in a separate paragraph anyway. It has to do with boxes, although I have no idea how exactly Hans implemented itemize/itemgroup environment. You can help yourself a bit by using \item \strut\vskip -\lineheight\placefigure... although there should be a better solution. (I would agree that the empty line makes no sense in that special case and should better disappear, but I have no right to judge about how serious backward compatibility issue that is and how difficult it would be to fix it without breaking the behaviour in other special cases) Hopefully someone on the list will be able to help you better. Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] LilyPond module for LilyPond 2.9.x
Am 2006-10-03 um 23:59 schrieb Mojca Miklavec: I cannot test since lilypond is not working properly on my computer, but I get the proper numbers. Here's an excerpt from the log file (I changed lilypond to echo): systems : begin file test1 at line 2 test1-lilypond-1.tmp system(echo test1-lilypond-1.tmp)...executed. system(epstopdf test1-lilypond-1.eps)...executed. (C:\Programi\MikTeX\tex\context\base\pdfr-ec.tex) figures : figure test1-lilypond-1 can not be found color : mpcmyk color space is supported color : mpspot color space is supported color : system rgb is local activated test1-lilypond-2.tmp system(echo test1-lilypond-2.tmp)...executed. system(epstopdf test1-lilypond-2.eps)...executed. I just updated my whole installation, but it's still the same: structure : begin of sectionblock bodymatter systems : begin file c_weihgeist at line 32 (./c_weihgeist.tex Titel : - Kom|m| nun|,| weihnachtlicher Geis|t.| prd_winternacht-lilypond-1.tmp figures : figure prd_winternacht-lilypond-1.pdf can not be found prd_winternacht-lilypond-2.tmp figures : figure prd_winternacht-lilypond-2.pdf can not be found ) systems : end file c_weihgeist at line 32 systems : begin file c_ansingen at line 33 (./c_ansingen.tex [3.1] Titel : - Winteransingen prd_winternacht-lilypond-3.tmp figures : figure prd_winternacht-lilypond-3.pdf can not be found ) ... TeXUtil | running texmfstart --ifchanged=prd_winternacht- lilypond-1.tmp --exec bin:lilypond -b eps -dno-gs-load-fonts - dinclude-eps-fonts prd_winternacht-lilypond-1.tmp GNU LilyPond 2.9.18 Processing `prd_winternacht-lilypond-1.tmp' Parsing... Interpreting music... [8][13] Preprocessing graphical objects... Writing prd_winternacht-lilypond-1-systems.tex... Writing prd_winternacht-lilypond-1-systems.texi... Layout output to `prd_winternacht-lilypond-1-1.eps'... Converting to `prd_winternacht-lilypond-1-1.pdf'... Layout output to `prd_winternacht-lilypond-1.eps'... Converting to `prd_winternacht-lilypond-1.pdf'... TeXUtil | running texmfstart --ifchanged=prd_winternacht- lilypond-1.tmp --exec bin:lilypond -b eps -dno-gs-load-fonts - dinclude-eps-fonts prd_winternacht-lilypond-1.tmp TeXUtil | running texmfstart --ifchanged=prd_winternacht- lilypond-1.tmp --exec bin:lilypond -b eps -dno-gs-load-fonts - dinclude-eps-fonts prd_winternacht-lilypond-1.tmp ... My songbook has 24 songs at the moment, but the counter stays at 1 for the lilypond run (works with the tmp, as you can see). Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://contextgarden.net http://www.cacert.org (I'm an assurer) t-lilypond.tex Description: Binary data ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] bug: MetaFun doesn't speak French
Hello Hans, here's a little MetaFun snippet which fails to work because of special treatment of French characters: \useencoding[ffr] \mainlanguage[fr] \startMPcode fill fullcircle scaled 5cm; \stopMPcode \stoptext (0,0,5cm.directdiscretionary,0,0,5cm.directdiscretionary) ! Transform components aren't all known. to be read again { l.148 ...llcircle scaled 5cm\directdiscretionary { ;} ? I assume that it worked OK some time ago (I was trying to compile a document from 2002). Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context