[NTG-context] hierarchical modes
Hello, I need to prepare a document for different audiences. The question here is, how to encapsulate the different parts of the document. There are paragraphs which are public, some more which are internal and some which are private. People who are in the private group should see everything, the group internal only the public parts and the internal ones. As far as I see, modes are not additive. What would be the best way to structure such a document and to style the different paragraphs, so that the different audiences see, who can read what? Thanks in advance, __Janko Hauser ___ 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] macro for api-documentation
Hello everyone, good morning europe, I want to generate an API- documentation. For this I use a table (bTABLE) for every function definition. That's a lot of code, which is in part dynamic (number of rows for example depends on number of arguments). Here is a simple example, but I will need colors and different fonts, different lines between in/out and so on. \startalignment[middle] \midaligned{\ss \bTABLE \bTR \bTD[nc=3] validateRegistration \eTD \eTR \bTR \bTD[nr=3] \rotate[rotation=90]{Input} \eTD \bTD parameter1 \eTD \bTD Beschreibung zu Parameter 1 \eTD \eTR \bTR \bTD parameter2 \eTD \bTD Beschreibung zu Parameter 2 \eTD \eTR \bTR \bTD parameter2 \eTD \bTD Beschreibung zu Parameter 2 \eTD \eTR \bTR \bTD[nr=3] \rotate[rotation=90]{Output} \eTD \bTD parameter1 \eTD \bTD Beschreibung zu Parameter 1 \eTD \eTR \bTR \bTD parameter2 \eTD \bTD Beschreibung zu Parameter 2 \eTD \eTR \bTR \bTD parameter3 \eTD \bTD Beschreibung zu Parameter 3 \eTD \eTR \eTABLE} \stopalignment Are there any examples to do this more generally or better approaches to set this up? With regards, __Janko -- Janko Hauser email: [EMAIL PROTECTED] mobile: +49 1721 641552 PGP.sig Description: Signierter Teil der Nachricht ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] bold versions of fonts
Am 14.02.2007 um 11:34 schrieb Jörg Hagmann: I am editing the Annual Report of an ornithological society. In the past, this has been done with Word, the font was Gentium. I haven't changed to ConTeXt yet, because Gentium has no bold version and I want to stick with the same font (Word produces some kind of Gentium- bold itself). As I do not understand fonts at all, but is it really so, that one needs to have the bold fontpackage if one wants to set a word in bold in tex? Asked another way, can tex not do the same as word in this regard? with regards, __Janko -- Janko Hauser email: [EMAIL PROTECTED] mobile: +49 1721 641552 PGP.sig Description: Signierter Teil der Nachricht ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] scaling symbols
Hello I followed Adams nice way, to include unicode symbols. Now I want to ask, how these can be scaled, so that they can be used more like small figures. Any hints? TIA, __Janko Hauser ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Python,swig and pdftex ?
luigi.scarso schrieb: I'm try do make something useful with Python and pdftex using swig. Any suggestions ? Have you looked at pytex? It does nothing with pdftex, but I do not know what do you want to actually do. __Janko ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] small articles in columns?
Hans Hagen wrote: columns.pdf (column sets) else, play with \starttabulate[|p|p|p] \NC ... \NC ... \NC ... \NC \NR \stoptabulate Following the suggestions I tried to use the \column command to split the columns. But my main problem remains. With the \startcolumnset command I can not achive automatic balancing of columns. I looked through the code in context and learned, that there is the \startcolumns command wich can be given the [balance=yes] parameter. This works, but then I can not use the other nice features of the columnset environment. Further search in the code shows that the balance=yes is also present in the columnset environment, but it has no effect. Is this right, a missing feature or a malfunction? I can provide an example, if this should work, and I'm doing something wrong. All hints gratefully accepted :-) __Janko ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] small articles in columns?
Hans Hagen wrote: At 11:57 14/05/2004, you wrote: Hello, I want to tyeset some smaller text parts in columns on one page. I would like to place each text into it's own set of columns. Is it possible to have each text spread equally over some columns, so that the next text starts on the leftmost column again? Haven't found any parameter for this in the documentation. Thanks for the quick answer columns.pdf (column sets) This one I had tried, but it fills always to the bottom of the page. else, play with But this looks promising, I will test it and report back. \starttabulate[|p|p|p] \NC ... \NC ... \NC ... \NC \NR \stoptabulate with regards, __Janko ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] irregular typesetting area
On Wed, 14 Jan 2004 12:00:11 +0100 Ole Schoening [EMAIL PROTECTED] wrote: Dear Contexers, I would like to repeat my question (see below) because I neither got an answer nor found a solution on my own. I believe that \defineoverlay cannot produce a solution for my problem because this command puts pictures in a different layer and so the main text is not affected (i.e. text is printed on top of underlying pictures). Are there any hints available? There is an indepth explanation in the PDF-document details.pdf You do not work with an overlay, but use \placefigure, then the text is flowing around the picture. HTH, __Janko I'm trying to produce an irregular (more than 4 corners) typesetting (main text) area of the following shape: ... (header) _ ( logo /| ... text area ... | overlay background) || || || ...... || || || | |(logo | |/overlay background) | ... text area ... | |___| The reason of this wish is not to overwrite the displayed logos or overlay pictures, which are used to form a common layout for a brochure. Btw., the orientation of the logos / pictures changes from even to odd pages. The measures of the logos / pictures prohibit a solution just by putting them in the header or footer. Does anyone have an idea how to solve this problem? Thanks in advance, Ole ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] style questions
Hello everybody, Over the last days I started to write a Requirement document. I started from the example documents provided at the fiee-site, which are a big help. I use this as an exercise to see, what markup is actually needed in the content, to transform from XML documents later on. First some things I already solved, but want to ask, if it was in the right way. 1. I want to mark some words consistently and used the \definesynonyms command for this, although I only use the second form. \definesynonyms[glossar][explanation][\infull] \glossar [ZOPE] {\em Zope} {Web Applikationsserver} Is there a better way to style words consistently? I find it difficult to distinguish between \ZOPE\ and \ZOPE, especially for the possible later translation from XML. 2. In the example there is an indirection for the section definitions. \definehead [Topic] [chapter] \definehead [Nopic] [title] Later on the newly defined headers are styled. But they are used as the only headers throughout the document. So why not style the original ones? 3. I have defined colored header bars in the following ways. \setuphead [subject, Subject,section] [command=\mysec, page=no, continue=no, style={\ss\bs}, color=black] \def\mysec#1#2{\framed[width=\textwidth, corner=round, radius=0.05em, background=color, backgroundcolor=HKS5, framecolor=HKS5]{\startnarrower[1*left,1*right] #2 \hfill #1 \stopnarrower}} They are spanning the complete textwidth. What I now want is to have a smaller textwidth, but the bars should remain broader, as broad as the header and footer lines. Any hints? 4. How to deal with metadata, like author, version, last modified and so. Would you recommend to use buffers for this? This information is probably used on the title page and the footer of each page. Ok, now a real question. I want to style the actual requirements in form of a papercard, whith their actual status at the top. This would be an new definition with 2 or 3 arguments. But the requirements should also be enumerated. How can one build such an environment? Derive somehow from \defineenumeration? --- |ReqNbr | Title | status | date| --- | longer text with paragraphs and pagebreaks | --- Sorry for the ascii-art (cough :-). These cards should be able to span more than one page. In the light of this a table with running heads would also be an option, right? Thanks for this great package, it is a lot of fun and full of gems. TIA, __Janko ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] style questions
On Thu, 1 Jan 2004 23:23:41 +0100 Henning Hraban Ramm [EMAIL PROTECTED] wrote: Am Donnerstag, 01.01.04, um 20:49 Uhr (Europe/Zurich) schrieb Janko Hauser: 2. In the example there is an indirection for the section definitions. \definehead [Topic] [chapter] \definehead [Nopic] [title] Later on the newly defined headers are styled. But they are used as the only headers throughout the document. So why not style the original ones? I copied my styles from one of Hans', he used Topic/Nopic, and I just didn't change it - first I didn't understand what was going on, later I was too lazy... Thanks for the info. I learned a lot from the examples. It is good to have a structure for playing with the parameters. __Janko ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] new manual
On Tue, 23 Dec 2003 13:16:58 + Nigel King [EMAIL PROTECTED] wrote: Hans ruby texsync.rb --update --tree=doc --force --destination=/Users/Shared/Context/ Gets me the manuals I think on UNIX the first line of the script should look like #!/usr/bin/ruby Ab better way for most normal unices is to use #!/usr/bin/env ruby But that does not seem to be your problem However I tried this and then [Nigel-Kings-G4-Lap:~/bin] nigelk% texsync.rb texsync.rb: Command not found. Here is the question if the local directory is part of your path To run commands savely from a local directory use ./texsync.rb HTH, __Janko ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Recommendation for creating, XHTML and PDF versions of single document
On Thu, 4 Dec 2003 10:53:56 +0100 Frank [EMAIL PROTECTED] wrote: Hans, Is there any documentation availble on context's xml handler? I looked a the PDF listing at the pragma-ade site, but the filenames did not seem to shown anything related to xml. I think it's example.pdf ... HTH, __Janko ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] How to nicely print XHTML to PDF
On Fri, 14 Nov 2003 12:18:22 +0100 Thomas Schrader [EMAIL PROTECTED] wrote: Hi everybody, would you please put this right, if I'm mistaken. Isn't ConTeXt capable to typeset XML? And isn't it really simple to make XHTML from HTML? In theory, yes :-), practically it can be a huge effort. So, is there any obstacle against using ConTeXt as customizable quality-typesetting backend for (readjusted/simplyfied) (X)HTML pages? What about power/complexity? How to style output? I think pdf from xhtml is a very good usecase for context. Although I wouldn't think to do it directly, but transform the xhtml somewhat to a context friendly xml. If you generate modern xhtml on your site, you will have most of the styling in css files and have mostly structural information in the xhtml. A tool can decide with the help of the css definitions in the tags which layout macros it should use. On the other side I do not think, that this approach is the equivilant to the print function of the modern browsers. __Janko Hauser ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] letter style
Hello, my name is Janko Hauser, I'm a new context user, after many years of LaTeX :-) I want to use context for two different projects. 1. Produce styled PDF documents from a web-content-managment-system. This will be web-page based but also complete sets of pages to generate longer documents. One conceptual idea is to have something like a clip-board of visited pages, which can be printed as one document. Ok, this Zope-based site will be an effort going into the next year. I mention it only for background for the coming questions in the next months. 2. I want to generate my invoice and business-letters with context. I searched the mailinglist but the only note I got was a reference to the last MAPS which should contain an article about this. Ah and Hans has mentioned that there is something in the making :-) Is there already something to look at? Does someone know a direct link to the mentioned MAPS-article? Thanks in advance, I'm really looking forward to using context. __Janko ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context