Re: [NTG-context] Problem of space in font names
On Sat, Feb 14, 2009 at 1:26 AM, Hans Hagen wrote: Mehdi Omidali wrote: Hi, I have noticed that luatex can not handle fonts with space in their names. I haven't had this problem in the past but now it happens in the latest context minimal both on windows and linux. spaces are always tricky ... in mkiv just omit the spaces (internally all font names are stripped from spaces and special characters and treated lowercase), so Abc Def-GhI becomes abcdefghi anyway Hello Hans, I agree that spaces are tricky, but XeTeX does require those spaces for example\footnote{Yes, yes, I know what you wanted to repy about XeTeX. I would rename the font as well, but on the other hand being able to use the same definition for bothe engines is only a benefit.}. As long as the syntax is clear: [file:Some Name With Spaces] this should be accepted in my opinion. If you store font names without spaces and dashes in database, it might make sense to strip the name in a similar manner here before trying to access the database and ask it to give back the font. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] startup script stubs (for unix)
On Fri, Feb 13, 2009 at 7:40 PM, frantisek holop min...@obiit.org wrote: hmm, on Fri, Feb 13, 2009 at 04:52:49PM +0100, Mojca Miklavec said that That folder is not meant to be a replacement for binaries. It's just a folder where files can be taken from and put somewhere else afterwards. They don't have the x bit set because zip on windows doesn't handle permission bits. ok, i have a lot of catching up to do because of the enormous volume of mail hitting this list, but let me ask this. all i want is a simple alias/shell_script/stub/whatever to run context on a .tex file. that's all. as someone coming from latex (a long time ago) and running commands like latex doc.tex or pdflatex doc.tex i always expected that to be context doc.tex. when i started using context, it was texexec doc.tex. as a user i don't mind what's in the background, perl, shell, ruby or a bone fide binary, all i'd like to do is have an official (as opposed to hand rolled/home made) context command that runs everything that is needed to process the .tex file. That's texexec and it's official on any TeX distribution, the only problem is that it doesn't work so well in older distributions. Any recent distribution has a properly working texexec command. But if you want to fiddle with home-made distribution, you need to be ready for using home-made solutions. That's all. There is also a more recent command context which uses luatex engine in the background. But I would not recommend you to try to enable it on the ancient distribution until you figure out all the other bits and pieces. You need to configure way too many files ... and you probably don't want to do every time when you reinstall the system if you do that often. It's much easier to install the minimals. is there something like that? if not, will be? :] Sure, there is - as explained above. It's just that nobody cares about tetex any more and nobody will provide support for tetex. But if you like it (for a reason - LaTeX hardly changes if you don't use XeTeX, TikZ etc.) it's perfectly fine if you configure it to use the most recent ConTeXt. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] \setbuffer
Hi Hans, why is \setbuffer not defined with \long, I want to use it as part of a macro and need it to allow paragraphs as content. Can you change this? TIA, 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 ___
[NTG-context] chapter page question
Hi, What's the way to test whether a page is a (start of a new) chapter page ? Didn't find it onoffline. -- Best, 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] chapter page question
Am 14.02.2009 um 11:46 schrieb Alan Stone: What's the way to test whether a page is a (start of a new) chapter page ? Didn't find it onoffline. Why and for what do you need this information? 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] chapter page question
On Sat, Feb 14, 2009 at 11:57 AM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 14.02.2009 um 11:46 schrieb Alan Stone: What's the way to test whether a page is a (start of a new) chapter page ? Didn't find it onoffline. Why and for what do you need this information? To put different text in the margin/edge top/header/... whether a page is a chapter page or not. 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] chapter page question
Am 14.02.2009 um 12:57 schrieb Alan Stone: What's the way to test whether a page is a (start of a new) chapter page ? Didn't find it onoffline. Why and for what do you need this information? To put different text in the margin/edge top/header/... whether a page is a chapter page or not. \setupheadertexts[\doifoddpageelse{right page}{left page}] \definetext[chapter][header][chapter page] % The \definetext command works like \setup(header/footer/...)texts and % has 3–7 arguments, the first argument is a keyword (you can use whatever % you want, the second is the location of the text and all other arguments % are reseved for the content. \setuphead [chapter] [header=chapter] \starttext \dorecurse{2}{\chapter{Chapter #1}\dorecurse{20}{\input knuth\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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Unicode Math - what it is
Am 13.02.2009 um 20:44 schrieb Mohamed Bana: i upgraded only to check if this would would, and it didn't, any idea why? $ context --version MtxRun | main context file: /home/mbana/context-minimals/tex/texmf- context/tex/context/base/context.tex MtxRun | current version: 2009.01.18 14:39 $ luatex --version This is LuaTeX, Version snapshot-0.31.3-2008123108, build unknown You need the last beta version (2009.02.09) and the last LuaTeX version (0.33.1) plus Microsofts cambria fonts. I find it odd to get a upright mu with µ and the italic with \mu in math mode, shouldn't both give the same result? also where exactly are the typescripts located and do you happen to have the Asana Math typescripts as well? :) You can find the typescript in $TEXMF/tex/context/base/type-xxx.tex Asana Math is not supported by default, the typescripts are missing. 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] chapter page question
Am 14.02.2009 um 14:14 schrieb Alan Stone: \setupheadertexts[\doifoddpageelse{right page}{left page}] \definetext[chapter][header][chapter page] % The \definetext command works like \setup(header/footer/...)texts and % has 3–7 arguments, the first argument is a keyword (you can use whatever % you want, the second is the location of the text and all other arguments % are reseved for the content. from what I understand... - the location is limited to the text header/footer = what about margin/edge top/header/footer/bottom ? You can place text in the header, footer and text area: \definetext[text for header area][header][...] \definetext[text for text area] [text] [...] \definetext[text for footer area][footer][...] \setuphead [...] [header=text for header area, text=text for text area, fotter=text for header area] You can also control where the text in this area should appear: \definetext[text for header area][header][...] % centered text in the text column \definetext[text for header area][header][...][...] % left and right text in the text column \definetext[text for header area][header][text] [...][...] % left and right text in the text column \definetext[text for header area][header][margin][...][...] % left and right margin in the text column \definetext[text for header area][header][edge] [...][...] % left and right edge in the text column - all other arguments are reserved for content = for which content and where ? if i put \definetext[chapter][header][chapter page][x1][x2][x3][x4] the chapter page header is replaced by right page !? Your setting is ignored because with all seven argument the third one has to be either text, margin or edge. 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] Unicode Math - what it is
i upgraded only to check if this would would, and it didn't, any idea why? $ context --version MtxRun | main context file: /home/mbana/context-minimals/tex/texmf-context/tex/context/base/context.tex MtxRun | current version: 2009.01.18 14:39 $ luatex --version This is LuaTeX, Version snapshot-0.31.3-2008123108, build unknown % engine=luatex \usetypescript[cambria] \setupbodyfont[cambria] \starttext $\mu$ µ is ok, but $µ$ is ţ \stoptext uses Latin Modern i'm getting this error when i try to use Tikz ! Undefined control sequence. recently read \usetikzlibrary l.11 \usetikzlibrary [arrows,automata,fit] ? also where exactly are the typescripts located and do you happen to have the Asana Math typescripts as well? :) btw, thanks a lot. Wolfgang Schuster wrote: Am 13.02.2009 um 18:12 schrieb Michail Vidiassov: You can already use Cambria Math or Asana Math in mkiv with the non-released LuaTeX with ConTeXt beta from Pragma. How? What are the typescripts? \usetypescript[cambria] \setupbodyfont[cambria] 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 ___ ___ 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] chapter page question
Ahaaa... thanks for clearing up the mist. So that makes... \definetext[text for header/text/footer area][header/text/footer][edge/margin/text][left][right] What are arguments 6 and 7 for ? Alan On Sat, Feb 14, 2009 at 2:40 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 14.02.2009 um 14:14 schrieb Alan Stone: \setupheadertexts[\doifoddpageelse{right page}{left page}] \definetext[chapter][header][chapter page] % The \definetext command works like \setup(header/footer/...)texts and % has 3–7 arguments, the first argument is a keyword (you can use whatever % you want, the second is the location of the text and all other arguments % are reseved for the content. from what I understand... - the location is limited to the text header/footer = what about margin/edge top/header/footer/bottom ? You can place text in the header, footer and text area: \definetext[text for header area][header][...] \definetext[text for text area] [text] [...] \definetext[text for footer area][footer][...] \setuphead [...] [header=text for header area, text=text for text area, fotter=text for header area] You can also control where the text in this area should appear: \definetext[text for header area][header][...] % centered text in the text column \definetext[text for header area][header][...][...] % left and right text in the text column \definetext[text for header area][header][text] [...][...] % left and right text in the text column \definetext[text for header area][header][margin][...][...] % left and right margin in the text column \definetext[text for header area][header][edge] [...][...] % left and right edge in the text column - all other arguments are reserved for content = for which content and where ? if i put \definetext[chapter][header][chapter page][x1][x2][x3][x4] the chapter page header is replaced by right page !? Your setting is ignored because with all seven argument the third one has to be either text, margin or edge. 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] chapter page question
So it seems, although there's also \setuptop and \setupbottom, that definetext doesn't accept top and bottom. Any idea why that's so (samewise for setuphead which doesn't accept top and bottom arguments either, according to the manual) ? Alan On Sat, Feb 14, 2009 at 3:47 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 14.02.2009 um 15:33 schrieb Alan Stone: Ahaaa... thanks for clearing up the mist. So that makes... \definetext[text for header/text/footer area][header/text/footer][edge/margin/text][left][right] What are arguments 6 and 7 for ? To set different texts for left pages. Seldom needed because in a doublesided document a chapter start normally at a right page. 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] Unicode Math - what it is
On Fri, Feb 13, 2009 at 8:44 PM, Mohamed Bana wrote: i upgraded only to check if this would would, and it didn't, any idea why? $ context --version MtxRun | main context file: /home/mbana/context-minimals/tex/texmf-context/tex/context/base/context.tex MtxRun | current version: 2009.01.18 14:39 $ luatex --version This is LuaTeX, Version snapshot-0.31.3-2008123108, build unknown You need version 0.33.1 from SVN and the latest ConTeXt (about 5 days old; in minimals it's --context=alpha and it's beta on Pragma, but you need your own LuaTeX). % engine=luatex \usetypescript[cambria] \setupbodyfont[cambria] \starttext $\mu$ µ is ok, but $µ$ is ţ \stoptext uses Latin Modern i'm getting this error when i try to use Tikz ! Undefined control sequence. recently read \usetikzlibrary l.11 \usetikzlibrary [arrows,automata,fit] ? Did you check for notices like module tikz not loaded in the log? If you use the minimals you need to make sure to add --extras=t-tikz to first-setup.sh (or add that switch when you call first-setup.sh). also where exactly are the typescripts located and do you happen to have the Asana Math typescripts as well? :) They are in type-otf.tex. If you want to use Asana, just copy the whole portion of cambria typescripts and search-and-replace-all from cambria to asana (or ask Hans politely to do that in core once he's back). 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Unicode Math - what it is
On Sat, Feb 14, 2009 at 2:25 PM, Wolfgang Schuster wrote: Am 13.02.2009 um 20:44 schrieb Mohamed Bana: I find it odd to get a upright mu with µ and the italic with \mu in math mode, shouldn't both give the same result? I find it a miracle that it works at all :) Just joking. Greek inside math is not working properly yet due to duplication and slight confusion between greek (U+03XX) and math greek (U+1D6XX) ranges. Just the proper mapping is missing at the moment - the same kind of mapping that turns lowercase latin a into mathematical italic small a. also where exactly are the typescripts located and do you happen to have the Asana Math typescripts as well? :) You can find the typescript in $TEXMF/tex/context/base/type-xxx.tex Asana Math is not supported by default, the typescripts are missing. However there's no reason for not adding them. It's probably the only free OpenType math font so far. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Unicode Math - what it is
Am 14.02.2009 um 16:16 schrieb Mojca Miklavec: Asana Math is not supported by default, the typescripts are missing. However there's no reason for not adding them. It's probably the only free OpenType math font so far. Can you add it to the minimals. 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] Problem with flowchart in presentation layout
Am 13.02.2009 um 19:21 schrieb Cecil Westerhof: With flow.tex flow.pdf is generated. When generating again flow2.pdf is generated. (And every time it is generated again, there are 8 more blanco pages inserted.) When deleting the flowchart part in flow.tex, flow3.pdf is generated. This looks okay. So there should be something wrong with my flowchart code. But I do not see anything. What is going wrong here? Don't use \startcolor[white] to change the color of the main text, use \setupcolors[state=start,textcolor=white] instead. 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 ___
[NTG-context] question for the xml-experts
Hi all, this is not a question about direct technical details, but more of a conceptual problem, and I would love to have your input and ideas on this. I will be editing several edited volumes in my field (humanities, classics). From experience, I know that it's impossible to make scholars in the humanities adhere to standards. Each and every one of them will turn in a paper (most of them written in half a dozen different versions of Word) with its own idiosyncracies. At my last conference, I asked them to please use Unicode for their Greek passages, and I got blank looks and the question What the hell is Unicode? So: I want to extract the content of these papers and process it with ConTeXt. I thought the easiest route might be convert them to OpenOffice odt and then use the content.xml as a starting point. Since the formatting will be unusable anyways, it doesn't make sense to process the odt directly; instead, I want to transform the xml via xslt to a simplified format and then process that with ConTeXt. I have just discovered the tool xalan ( http://xml.apache.org/xalan-c/index.html ) which allows me to use an xslt style sheet and direct the output to a new file. I will then need to clean up these xml files and write a mkiv xml setup for them. So for those who know much more about this sort of workflow: does that make sense? Is there any better way to achieve these results, i.e., have the content of a couple of papers in Word and/or rtf format and typeset it in a consistent ConTeXt environment? Is there any tool better than xslt to convert the OpenOffice xml than xslt (anything in lua that can parse xml)? Anything better than xalan to convert xm - xml? I'm just beginning to plan this, so I'd be most grateful for any pointers. Thanks for reading this long message, all best Thomas ___ 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] chapter page question
The underneath example works with \def\myHeader{\iftuut chapter\else high\fi} How do you make it work with\def\myHeader{\doifmodelse{a}{chapter}{high}} ? ( without resorting to \doifmodeelse{a}{\tuuttrue}{\tuutfalse} ) \showframe \newif\iftuut %\tuuttrue \tuutfalse \setuppagenumbering[location=footer] \setupheadertexts[\doifoddpageelse{right page}{left page}] \definetext[chapter][header][chapter page] \def\myHeader{\doifmodelse{a}{chapter}{high}} %\def\myHeader{\iftuut chapter\else high\fi} \setuphead [chapter] % [header=chapter] % [header=high] [header=\myHeader] \starttext \dorecurse{2}{\chapter{Chapter #1}\dorecurse{20}{\input knuth\par}} \stoptext --- ! Undefined control sequence. \myHeader -\doifmodelse {a}{chapter}{high} \doifvaluesomething ...inga {\csname #1\endcsname }\ifx \!!stringa \empty \e... argument ...ething {\??ko \v!chapter \c!header } {\setuplayouttext [\v!hea... \firstoftwoarguments #1#2-#1 argument ...BB {\v!chapter }\v!header \c!header \dohandlepagebreakBB {\v!c... \firstofoneargument #1-#1 ... l.23 ...apter #1}\dorecurse{20}{\input knuth\par}} --- 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] question for the xml-experts
Hi Thomas, why don't you take a look at the OpenOffice export function, I saw it's possible to convert a document to xhtml and this could be a start for you. Wolfgang Am 14.02.2009 um 18:40 schrieb Thomas A. Schmitz: Hi all, this is not a question about direct technical details, but more of a conceptual problem, and I would love to have your input and ideas on this. I will be editing several edited volumes in my field (humanities, classics). From experience, I know that it's impossible to make scholars in the humanities adhere to standards. Each and every one of them will turn in a paper (most of them written in half a dozen different versions of Word) with its own idiosyncracies. At my last conference, I asked them to please use Unicode for their Greek passages, and I got blank looks and the question What the hell is Unicode? So: I want to extract the content of these papers and process it with ConTeXt. I thought the easiest route might be convert them to OpenOffice odt and then use the content.xml as a starting point. Since the formatting will be unusable anyways, it doesn't make sense to process the odt directly; instead, I want to transform the xml via xslt to a simplified format and then process that with ConTeXt. I have just discovered the tool xalan ( http://xml.apache.org/xalan-c/index.html ) which allows me to use an xslt style sheet and direct the output to a new file. I will then need to clean up these xml files and write a mkiv xml setup for them. So for those who know much more about this sort of workflow: does that make sense? Is there any better way to achieve these results, i.e., have the content of a couple of papers in Word and/or rtf format and typeset it in a consistent ConTeXt environment? Is there any tool better than xslt to convert the OpenOffice xml than xslt (anything in lua that can parse xml)? Anything better than xalan to convert xm - xml? I'm just beginning to plan this, so I'd be most grateful for any pointers. Thanks for reading this long message, all best Thomas ___ 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] question for the xml-experts
Hi Thomas, process the odt directly; instead, I want to transform the xml via xslt to a simplified format and then process that with ConTeXt. I have just discovered the tool xalan ( http://xml.apache.org/xalan-c/index.html ) which allows me to use an xslt style sheet and direct the output to a new file. I will then need to clean up these xml files and write a mkiv xml setup for them. So for those who know much more about this sort of workflow: does that make sense? Yes, it does. At my company we clean up (and reorganize) XML data with XSLT all the time. We are happy users of saxon 9 (http://saxon.sourceforge.net/) which is an xslt 2.0 engine. Learning XSLT is not trivial (but not too hard either), but once you get an understanding of it nobody can stop you using XSLT for 'everything'. Patrick -- ConTeXt wiki and more: 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] question for the xml-experts
On Feb 14, 2009, at 7:25 PM, Wolfgang Schuster wrote: Hi Thomas, why don't you take a look at the OpenOffice export function, I saw it's possible to convert a document to xhtml and this could be a start for you. Wolfgang Hi Wolfgang, thanks for the suggestion! I had, in fact, tried the export functions (docbook and xhtml), but both drop too much formating: all italics etc. are silently dropped, and dynamical references are replaced with their values. So unless I can manage to hack the export xslt files, this doesn't seem possible. All best Thomas ___ 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] Problem with flowchart in presentation layout
2009/2/14 Wolfgang Schuster schuster.wolfg...@googlemail.com: With flow.tex flow.pdf is generated. When generating again flow2.pdf is generated. (And every time it is generated again, there are 8 more blanco pages inserted.) When deleting the flowchart part in flow.tex, flow3.pdf is generated. This looks okay. So there should be something wrong with my flowchart code. But I do not see anything. What is going wrong here? Don't use \startcolor[white] to change the color of the main text, use \setupcolors[state=start,textcolor=white] instead. That works. I got the code from http://www.tug.org/pracjourn/2006-2/schmitz/. I'll notify him about the problem. Strange that there is only a problem when using a flowchart. -- Cecil Westerhof ___ 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] chapter page question
Am 14.02.2009 um 19:17 schrieb Alan Stone: The underneath example works with \def\myHeader{\iftuut chapter\else high\fi} How do you make it work with\def\myHeader{\doifmodelse{a}{chapter} {high}} ? ( without resorting to \doifmodeelse{a}{\tuuttrue}{\tuutfalse} ) [...] ! Undefined control sequence. \myHeader -\doifmodelse \doifmodeelse (a 'e' is missing in the command) 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] question for the xml-experts
On Feb 14, 2009, at 7:31 PM, Patrick Gundlach wrote: Yes, it does. At my company we clean up (and reorganize) XML data with XSLT all the time. We are happy users of saxon 9 (http://saxon.sourceforge.net/) which is an xslt 2.0 engine. Learning XSLT is not trivial (but not too hard either), but once you get an understanding of it nobody can stop you using XSLT for 'everything'. Patrick Great, I will look into saxon and xslt! Best Thomas ___ 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] chapter page question
Unfortunately, it doesn't resolve the problem... ! Undefined control sequence. \cleanuplabel #1-\begingroup \let : \lettercolon \xdef \cleanlabel {#1}\endg... \docheckformode #1#2#3-\cleanuplabel {#3} \protect \checkedmodefalse \rawpro... \myHeader -\doifmodeelse {a} {chapter}{high} \doifvaluesomething ...inga {\csname #1\endcsname }\ifx \!!stringa \empty \e... argument ...ething {\??ko \v!chapter \c!header } {\setuplayouttext [\v!hea... \firstoftwoarguments #1#2-#1 ... l.23 ...apter #1}\dorecurse{20}{\input knuth\par}} ? context.cmd --modes=a test Alan On Sat, Feb 14, 2009 at 7:28 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 14.02.2009 um 19:17 schrieb Alan Stone: The underneath example works with \def\myHeader{\iftuut chapter\else high\fi} How do you make it work with\def\myHeader{\doifmodelse{a}{chapter}{high}} ? ( without resorting to \doifmodeelse{a}{\tuuttrue}{\tuutfalse} ) [...] ! Undefined control sequence. \myHeader -\doifmodelse \doifmodeelse (a 'e' is missing in the command) 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] chapter page question
Am 14.02.2009 um 20:17 schrieb Alan Stone: Unfortunately, it doesn't resolve the problem... ! Undefined control sequence. \cleanuplabel #1-\begingroup \let : \lettercolon \xdef \cleanlabel {#1}\endg... \docheckformode #1#2#3-\cleanuplabel {#3} \protect \checkedmodefalse \rawpro... \myHeader -\doifmodeelse {a} {chapter}{high} \doifvaluesomething ...inga {\csname #1\endcsname }\ifx \!!stringa \empty \e... argument ...ething {\??ko \v!chapter \c!header } {\setuplayouttext [\v!hea... \firstoftwoarguments #1#2-#1 ... l.23 ...apter #1}\dorecurse{20}{\input knuth\par}} I had only looked at the error message and not at your example. Passing tests to values is often a problem because you don't know what happens in the internals and only only low level commands like \iftrue, \ifdim ... works without problems. The best you can do is to write: \startmode[a] \setuphead[chapter][header=chapter] \stopmode \startnotmode[a] \setuphead[chapter][header=high] \stopnotmode 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] chapter page question
I also would like to be able to choose a different font and/or fontsize (\switchtobodyfont[...]), style and/or color (\color[...]) for chapter pages' header area (margin/edge/text) and non-chapter pages. Hence, I guess... back to my initial question. Alan On Sat, Feb 14, 2009 at 1:23 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 14.02.2009 um 12:57 schrieb Alan Stone: What's the way to test whether a page is a (start of a new) chapter page ? Didn't find it onoffline. Why and for what do you need this information? To put different text in the margin/edge top/header/... whether a page is a chapter page or not. \setupheadertexts[\doifoddpageelse{right page}{left page}] \definetext[chapter][header][chapter page] % The \definetext command works like \setup(header/footer/...)texts and % has 3–7 arguments, the first argument is a keyword (you can use whatever % you want, the second is the location of the text and all other arguments % are reseved for the content. \setuphead [chapter] [header=chapter] \starttext \dorecurse{2}{\chapter{Chapter #1}\dorecurse{20}{\input knuth\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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] How to set the colors for a flowchart
I am experimenting with the flowchart module. How can I change the color of a shape, and the text color of an shape? -- Cecil Westerhof ___ 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] Problem with flowchart in presentation layout
Hi cecil, there is a manual on charts at: http://www.pragma-ade.nl/overview.htm In your case you need to setup the flowchart and indicate the number of cells per x an y direction. You can also manipulate the didstance between cells. In case that you want to let the chart break over more pages call the flowchart with \FLOWcharts[...] instead of \FLOWchart[...] \setupFLOWcharts[..,..=..,..] option test width dimension height dimension offset none overlay standard dimension dx dimension dy dimension nx number ny number x number y number autofocus name focus name backgroundcolor name white Willi On Feb 13, 2009, at 7:21 PM, Cecil Westerhof wrote: flow.tex ___ 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 ___