Re: [NTG-context] \externalfigure[cow.pdf][scale=0.8]
Steve Peter wrote: The scaling factor is in units of 1000. To get 80% size, use [scale=800]. Thanks. Added comment to texshow-web. Christopher ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] alignment of figures
Dear list members, Sorry to insist. I have figures extending the width of the text (which is 14cm). I want them to be aligned with the the textblock at the inside, sticking out into the outer margin (which is 2.5cm). I tried all the commands I could find or think of, but nothing worked (most of them did'nt affect the actual position, i.e. the picture extending textwidth on both sides to the same extent). I would appreciate an answer by somebody who knows, even if it is to tell me that it can't be done. Thanks a lot, Jörg. On Oct 19, 2005, at 3:19 PM, Jörg Hagmann wrote: Dear list members, I want to have figures arranged as follows: 1. Figures smaller than 0.5 textwidth at the inner margin, text flowing arround figure. 2. Between 0.5 and 1*textwidth in the middle, no text flowing. 3.Figures wider than textwidth aligned with the inner margin of the textblock and sticking out into the (wide) outer margin. I found out how to do the first 2 (from Details) but couldn't figure out the last one. Any suggestions? Thanks a lot. Jörg___ 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
Re: [NTG-context] alignment of figures
� wrote: Dear list members, Sorry to insist. I have figures extending the width of the text (which is 14cm). I want them to be aligned with the the textblock at the inside, sticking out into the outer margin (which is 2.5cm). I tried all the commands I could find or think of, but nothing worked (most of them did'nt affect the actual position, i.e. the picture extending textwidth on both sides to the same extent). I would appreciate an answer by somebody who knows, even if it is to tell me that it can't be done. Thanks a lot, J�rg. see details.pdf manual Hans ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] processing of setvariables/getvariables again
Taco, thanks so much! With a slight modification, your solution seems to work! I will have to test it a bit, but for the moment, it looks very good. Is the \appendtoks expensive in terms of TeX memory, cpu cycles, etc., or is it a good solution for the time being? All best, and many thanks Thomas On Oct 22, 2005, at 10:55 AM, Taco Hoekwater wrote: That is not what I meant. What (I think) you want is more like this: \def\initializegreekfont% {\starttypescript[Greek] \definetypeface [My\getvariable{Greek}{font}] [rm] [serif] [\getvariable{Greek}{font}] [default] [encoding=agr] \stoptypescript \startsetups[enablegreek] \catcode`~=\other \catcode`|=\other \catcode`'=\other \language[greek] \switchtobodyfont[My\getvariable{Greek}{font}] \stopsetups } \appendtoks \initializegreekfont \to \everystarttext In this way, you postpone all stuff that depends on the user-supplied variables until the occurance of \starttext. I hope you can understand me better now Cheers, Taco ___ 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
Re: [NTG-context] alignment of figures
Jörg Hagmann wrote: I would appreciate an answer by somebody who knows, even if it is to tell me that it can't be done. Thanks a lot, Jörg. Perhaps you could post what you have so far. It is definately possible. Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] processing of setvariables/getvariables again
Thomas A. Schmitz wrote: Is the \appendtoks expensive in terms of TeX memory, cpu cycles, etc., or is it a good solution for the time being? This solution is perfectly OK. If there was a way to pass arguments through \usemodule, that would be nicer, but if that never happens, this will solution be fine. Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] alignment of figures
Dear Hans and Taco,Thanks for the answers. I'll read "details.pdf" again...I placed the pdf file of one unfinished chapter on www.ogbasel.ch/book.html (3.5 MB). Note that Fig. 3.12 happens to be the way I want it. Why this particular figure chose to behave I don't know, putting nothing after \placefigure[] and most options [left,right,inner etc.) don't make a difference.The setuparea contains:%Textfigures (on the inside up to 0.5/textwidth)\setupfloat[figure][criterium=0.5\textwidth,default=inner]\setupcaption[figure][style=\ssx]I tried to add a second criterium (bigger than \textwidth), but not surprisingly my inventions and guesses weren't successful. Interventions within the text itself (\placefigure[] and \setupfloat[figure][]) also didn't work.Lectures start this week, and I want to distribute some chapters as handouts in order to get feedback. This explains my bothering you with another question:The subsection heads should be capitals. Setting textstyle=cap doesn't do anything. Setting style=cap gives an error (see end of message). style=slanted works, commands (\cap, \kap) don't work. \cap{some text} used in the text works.This is how I'm setting up the heads:\def\BookchapterCommand#1#2{\framed[frame=off,rightframe=on]{#1\space}\framed[frame=off]{\space#2}}\setuphead[chapter][command=\BookchapterCommand,page=right]\setuphead[subsection][style=cap (THIS IS WHERE I'M HAVING PROBLEMS),number=no]\setuphead[subsubsection][style=slanted,number=no,after=\nowhitespace]Thanks a lot, Jörg.This is the error message when inserting style=cap:) (./figures_book.tex) (./Mydefinitions.tex) (./book.tuo) (./book.tuo)(./book.tuo) (./book.tuo) (./book.tuo) (./book.tuo) (./book.tuo) (./book.tuo)(./book.tuo) (./book.tuo) (./book.tuo) (./book.tuo) (./book.tuo)fonts : using map file: cbgreek.mapfonts : using map file: texnansi-public-lm.mapfonts : using map file: original-public-vnr.mapfonts : using map file: original-public-csr.mapfonts : using map file: original-public-plr.mapfonts : using map file: original-public-lm.mapfonts : using map file: original-ams-euler.mapfonts : using map file: original-ams-cmr.mapfonts : using map file: texnansi-base.mapfonts : using map file: t5-base.mapfonts : using map file: qx-base.mapfonts : using map file: 8r-base.mapfonts : using map file: ec-base.mapfonts : using map file: ec-public-lm.mapfonts : using map file: original-base.mapsystems : begin file book at line 45(./digestion/digestion_chapter.texchapter : 1 Verdauung und Resorptionsection : 1.1 Vorbereitung in Mund und Magen! Argument of \getvalue has an extra }.inserted text \par to be read again }\uppercased ...d \xdef \@@expanded {\uppercase {#1 }}}\@@expanded \dodosmallcapped ...alize \cap@@uppercase {#1{#2}} \egroup \doplaceheadtext ... {\??ko #1}\c!style \getvalue {\??ko #1\c!command } {} {...\dodododosomekop ...mber ]{\finalsectionnumber }}} \writesection {#1}{-}{#4}\...l.5 \subsection {Der Speichel} ? ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] presentation styles empty front page
I have a problem with the presentation styles s-pre-xx. Since I used them previously (about 2-3 years ago) now an EXTRA blank page appears up at the front of the series of sheets. I am positive this did not occur in the past, since I did not change my files. Because I tried some different presentation styles and they all show the extra page, my suspicion is that it could originate somewhere in s-pre-00 (pre-general). However, I cannot find something suspicious in that file. What has happened? dr. H. van der Meer ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] alignment of figures
Answering one of my own questions:The subsection heads should be capitals. Setting textstyle=cap doesn't do anything. Setting style=cap gives an error (see end of message). style=slanted works, commands (\cap, \kap) don't work. \cap{some text} used in the text works.style=\sc works.Cheers, Jörg.___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] xml and context
Wolfgang Zillig wrote: Hello, I'am starting with a PhD and I'm thinking about using xml/mathml and context. I'm a bit confused with all the different ways to combine xml and context, native xml, fo, xslt, texml, docbook, ... What is the most promising way to do this? i'd go fo rnative xml + content mathml (most control over layout) it's not that hard to map xml onto context and you can always apply xslt transformations to get other variants; for nice looking output, forget about xml-fo; it's not meant for that Is it possible to use mechanisms like bibtex when going that way? taco knows ... Hans ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] interaction between header texts and typing environments
Marko � wrote: I'm trying to have header texts on every page. There are also some long typing environments in the document. It seems that when the page breaks within the typing environment processing the header texts leads to an error. weird indeed has to do with catcodes and verbatim; for the moment use \setnormalcatcodes \startsetups heading \starttable[|w(.8\textwidth)l|w(.15\textwidth)l|] \HL \VL \VL page \pagenumber\ of \totalnumberofpages \VL\FR \VL \VL \VL \LR \HL \stoptable \stopsetups \starttext \setupheadertexts[\setnormalcatcodes\setups{heading}] . \stoptext Hans ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] interaction between header texts and typing environments
Marko � wrote: I'm trying to have header texts on every page. There are also some long typing environments in the document. It seems that when the page breaks within the typing environment processing the header texts leads to an error. If I put a \ifprocessingverbatim\else \fi around the table in the header text, I do not get the error. So I should turn off the typing environment temporarily to get the header text out. How should I do that? \stoptyping ... \starttyping do not do it. my guess is that the following should work ok (this current code is quite old and dates from previous century) \unprotect \bgroup \catcode`\|=\@@active \catcode`\=\@@active \gdef\pushouterbarandquote {\ifForgetTableBarAndQuote \ifnum\catcode`\|=\@@active \let\outertablebar|% \else \let\outertablebar\relax \fi \ifnum\catcode`\=\@@active \let\outertablequote% \else \let\outertablequote\relax \fi \fi} \gdef\popouterbarandquote {\ifForgetTableBarAndQuote \ifx\outertablebar \relax\else\let|\outertablebar \fi \ifx\outertablequote\relax\else\let\outertablequote\fi \else \redefinetablebarandquote \fi} \egroup \protect ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] strange (?) exporting from pdf
Henning Hraban Ramm wrote: I'm not a XML guru (never tried XML with ConTeXt), but I guess if you use a XML format like DocBook (or even OpenOffice's) there'd be a ready-to-use way for RTF. Thanks a lot, I was in fact investigating OO. If you make up something useful from OpenDocumentFormat (or OOo's old format), please share it � I guess an OOo to ConTeXt converter would help some people. actually i've done some of that some time ago in an experimental project; doable as long asin oo one does not mess round too much with tabs (not that well structured xml) Hans ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Getting icelandic letters (eth and thorn) to work.
Olivier wrote: There are not in the official distrib yet, but the TeXlive based packages available at http://www.tug.org/texlive/Debian/ are very great and up to date. In particular they provide This is pdfeTeX, Version 3.141592-1.30.2-2.2 (Web2C 7.5.5) TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005 TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004 Instructions for install at http://www.tug.org/texlive/debian.html indeed, the debian tex maintainers are quite actively participating in tex live packaging, Hans ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Continuous chapter numbering
Randall Skelton wrote: Is there a way to have the chapter numbers be continuous rather than resetting at the beginning of each product? I have already disabled product numbers in a setupheader command but I'm stumped at how to make the chapter numbers continuous. I've tried playing with incrementnumber=file but I'm not sure this appropraite... any hints here would be greatly appreciated. \setuphead[chapter][resetnumber=no] \starttext \chapter{test} \section{foo} \section{bar} \chapter{test} \section{foo} \section{bar} \stoptext should work with part as well Hans ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Interactive things and exact placement of graphics
Jessica Holle wrote: Hi, I have some questions again. :-) I want to draw a figure with metafun and place this on an exact place like x=3cm,y=4cm. This figure will be build of some figures which I draw with Metafun. In which way I do this? Whith layers? How should it looks like? Get some small layer with only one figure together in a big layer? And when I've build this graphic I want to put text into it and the whole graphic should be interactive. I want to lay a hyperlink over this to the web or another page in my document. Is this possible and in which way? \definelayer[blabla][width=4cm,height=8cm] \setlayer[blabla][preset=lefttop,x=1cm,y=2cm]{your graphic} etc etc grep a bit for layers in the context/base tree Hans ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] font scaling in typescripts
Thomas A. Schmitz wrote: This may be a bug, or I may be missing something... I have defined a typescript for my Adobe Garamond, and I want Courier as the monotype font accompanying it. Since Courier is a bit too big compared to Garamond, I want to scale it down, so I have this line in my typescript (yes, I have adapted my own Courier, I have given up on all the changes in names etc. in the latest teTeX releases): \definefontsynonym [Courier] [texnansi-Courier sa 0.9] [encoding=texnansi] This works almost perfectly; Courier is scaled exactly like I want it. There's one small problem: the first occurrence of monotype in the document will print sa 0.9 at 12.0pt just before the passage in monotype. This happens only once in the document, but it doesn't look very nice. Bug or feature? scaling is not defined at that lvel, but with \definefont[somename][Courier sa 0.9] cum suis; what you're looking for is 'rscale': \definetypeface . [encoding=texnansi,rscale=0.9] grep for rscale in the base directory; there are some example combinations defined Hans ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] MathML: Please ignore mo#x02061;/mo
Christopher Creutzig wrote: Salvete, I just started to think about using ConTeXt on XML input files, so I've got a question which should be easy to answer: My MathML source generates presentation code which includes mo#x02061;/mo between a function symbol and its arguments. I get a black rectangle for that; I'd like ConTeXt to ignore this character, where do I define it as �nothing�? in the related unic-* files (these are occasionally extended with new entries -) Hans ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] saving cell content in macro
� wrote: Hello, how could I save the cell of a table in a macro? I tried the following, but it does not work: \starttext \def\StartScanning#1\StopScanning{\def\MyValue{#1}} \starttable[|b{\StartScanning}la{\StopScanning}|l|] \NC 123 \NC 456 \NC\AR \stoptable Test: \MyValue \stoptext TIA for any help, Peter teh a/b keys are too tricky for this (preamble mess), so maybe do something: \starttext \def\GC#1 {#1\gdef\MyValue{#1}} \starttable[|l|l|] \GC 123 \NC 456 \NC\AR \stoptable Test: \MyValue \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] spreadsheet
� wrote: Hello, I would like to do some spreadsheet like calculations with ConTeXt. Before using the same package, I've used once upon a time with LaTeX (realcalc), I would like to know, if there are already some macros for calculations in ConTeXt, or if you could recommend some method, how to do that. wait till pdfluatex is out -) Hans ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Continuous chapter numbering
When I read emails from Hans like this one, I get very suspicious that he has a time machine to go backward a few months in time and add a feature so that it is already there when it is being requested --- Matthias On Oct 24, 2005, at 5:59 PM, Hans Hagen Test wrote: Randall Skelton wrote: Is there a way to have the chapter numbers be continuous rather than resetting at the beginning of each product? I have already disabled product numbers in a setupheader command but I'm stumped at how to make the chapter numbers continuous. I've tried playing with incrementnumber=file but I'm not sure this appropraite... any hints here would be greatly appreciated. \setuphead[chapter][resetnumber=no] \starttext \chapter{test} \section{foo} \section{bar} \chapter{test} \section{foo} \section{bar} \stoptext should work with part as well Hans ___ 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
Re: [NTG-context] spreadsheet
For me, I do all in Excel/OOoCalc then export it into ConTeXt format :-) Q. On 10/13/05, Peter Münster [EMAIL PROTECTED] wrote: Hello, I would like to do some spreadsheet like calculations with ConTeXt. Before using the same package, I've used once upon a time with LaTeX (realcalc), I would like to know, if there are already some macros for calculations in ConTeXt, or if you could recommend some method, how to do that. FYI my old LaTeX-file: \documentclass{article} \usepackage{dcolumn} \input{realcalc}% on CTAN \newcommand*\cc[1]{\multicolumn{1}{c}{#1}} \def\scanwert\ignorespaces#1\unskip{\gdef\WERT{#1}#1} \begin{document} \begin{tabular}{{\scanwert}D{.}{,}{-1}% {\Rmul\res\WERT{6.55957}\Radd\res\res{0.005}\Rtrunc\res2\res\res}% D{.}{,}{-1}}% \cc{Euro}\cc{FF}\\\hline 20.33 \\ 20.3 \\ 20 \\ 14.46 \end{tabular} \end{document} Cheers, Peter -- http://vnoss.org Vietnamese Open Source Software Community ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context