[NTG-context] Flowfram-like behavior?
Is there a way to get behavior like flowfram using ConTeXt? Specifically, I mean the ability to define a set of frames or boxes, possibly several on a page or across a series of pages, and have the text automatically flow from one box to another in a prescribed order? I'm interested in doing InDesign-like layouts, which might have multiple stories, each of which can flow across multiple frames on multiple pages. Using flowfram with LaTeX comes pretty close (though only one story can flow from frame to frame), but there are conflicts with the longtable package and potentially others. I figured since one of the goals of ConTeXt (as I understand it) was to avoid inter-package conflicts, perhaps this would offer a better solution. Thank you. -pd -- The Tech Curmudgeon http://www.techcurmudgeon.com ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Flowfram-like behavior?
On Wed, Jul 6, 2011 at 11:22 AM, Hans Hagen pra...@wxs.nl wrote: On 6-7-2011 3:31, Peter Davis wrote: Is there a way to get behavior like flowfram using ConTeXt? Specifically, I mean the ability to define a set of frames or boxes, possibly several on a page or across a series of pages, and have the text automatically flow from one box to another in a prescribed order? I'm interested in doing InDesign-like layouts, which might have multiple stories, each of which can flow across multiple frames on multiple pages. Using flowfram with LaTeX comes pretty close (though only one story can flow from frame to frame), but there are conflicts with the longtable package and potentially others. I figured since one of the goals of ConTeXt (as I understand it) was to avoid inter-package conflicts, perhaps this would offer a better solution. I'm on and off working on streams which sort of do what you want, but it's not yet good enough as it's mostly geared at parallel text. Sounds interesting. I'm looking forward to hearing more about it. Sounds like I should stick with flowfram for now though. Thanks! -pd -- The Tech Curmudgeon http://www.techcurmudgeon.com ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] XeLaTeX or ConTeXt?
I'm still wrestling with this issue of doing InDesign-like documents. Does ConTeXt provide a way to simulate multiple stories or flows of text? For example, suppose I have a newspaper with two articles on page 1. One of them continues on page 2, and the other on page 3. Is there a way to do that? Alternatively, I could consider plain TeX or LuaTeX, but I know very little about either of those. I'm prepared to learn, but I'd like to get some hints about what seems like the likliest path to produce this kind of document. Thank you! -pd -- Forwarded message -- From: Peter Davis p...@pfdstudio.com Date: Sat, Jun 4, 2011 at 5:36 PM Subject: XeLaTeX or ConTeXt? To: texhax tex...@tug.org I'm looking for a way to produce InDesign-like documents with TeX. By InDesign-like, I mean, apart from excellent typography, the abillity to have 'stories' automatically overflow from one container to another, either on the same page or on additional pages, to embed graphics into the text, to copyfit, to wrap text around irregular shapes, etc. I've been working with XeLaTeX, using the Textpos package, which is very useful. However, I think I need to switch to (or add?) the Flowfram package to get automatic overflow handling. I think that will let me get the effect of multiple stories by concatenating the stories together into one document environment, and using explicit frame breaks to start a new 'story.' However, I'm wondering if I should be considering ConTeXt at this point. I keep seeing that it's supposed to provide more sophisticated typographic control than LaTeX, but I don't know what. Is there a way to get this multiple story, automatic overflow effect with ConTeXt? Layers seem a little like text frames, but I don't see anything about overflow. What about copyfitting? Wrapping around irregular shapes? I've looked at the ConTeXt docs, but it seems mostly to be a different way to get the same effects as LaTeX, rather than a way to get a whole new range of effects. Thanks, -pd -- The Tech Curmudgeon http://www.techcurmudgeon.com ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Current Mk IV doc?
Where can I find the most recent ConTeXt documentation? The files I found here: http://wiki.contextgarden.net/Main_Page show November 2001 as the date. Is there anything newer? Thanks! -pd -- The Tech Curmudgeon http://www.techcurmudgeon.com ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] font, line spacing issues
On Thu, Nov 18, 2010 at 3:04 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 18.11.2010 um 01:25 schrieb Peter Davis: As an experiment, I'm trying to duplicate a sample InDesign document with ConTeXt. I'm getting the overall layout (though my image positions need tweaking), but I'm having some problems with the fonts. I'm following the examples in http://www.pragma-ade.com/general/manuals/showfont.pdf , but I haven't seen the \switchtotypeface operator documented anywhere else. I'm on a Windows 7 machine, with minimals installed. I'm trying to use some of the system fonts (Minion, Impact, Myriad), but all I seem to get is CMR. Use \switchtobodyfont to switch to a different font. Thanks very much, Wolfgang! I really appreciate the clear example. PS. Please put blank lines in your file to make it easier to read the source. Sorry about that. The .tex file has blank lines, but somehow they disappeared in the process of copying and pasting into mail. -pd ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Choosing TeX um ... stuff
I've been on the periphery of TeX for years, as a casual user of LaTeX and also as an implementer of publishing software. However, I'm afraid I haven't kept in as close touch as I'd like, and now I find myself trying to absorb a lot in a short time. I'm trying to choose what software to use in building an XML-TeX workflow. I'd appreciate any help with the following questions: 1. True or False: TeX can be categorized along three orthogonal axes: 1. by format (plain TeX, LaTeX, ConTeXt, others?) 2. by implementation (web2c, pdfTeX/pdfLaTeX, LuaTeX, others?) 3. by distribution (MikTeX, TeXLive, MacTeX, others?) 2. True or False: plain TeX and LaTeX(2e) are warhorses ... been around for decades, quirks well known, lots of documentation, etc. 3. True or False: ConTeXt is newer, with a lot of built-in features, but still changing quite a bit from build to build. Other comments welcome vis. picking which software to use. One point is that since the actual TeX input files will be generated programmatically, readability or ease-of-coding is not a factor. I was going to use plain TeX, but it seems a lot of features like placing text boxes and graphics anywhere, using system fonts, etc. are more available for LaTeX and ConTeXt. Thank you for any comments! -pd ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] font, line spacing issues
As an experiment, I'm trying to duplicate a sample InDesign document with ConTeXt. I'm getting the overall layout (though my image positions need tweaking), but I'm having some problems with the fonts. I'm following the examples in http://www.pragma-ade.com/general/manuals/showfont.pdf , but I haven't seen the \switchtotypeface operator documented anywhere else. I'm on a Windows 7 machine, with minimals installed. I'm trying to use some of the system fonts (Minion, Impact, Myriad), but all I seem to get is CMR. Also, the line spacing on the paragraph at the top of the second page seems very weird. It's an address, and the bottom line is much too high relative to the spacing of the other lines. Here's the file: \definepapersize[card][width=792pt,height=612pt] \setuppapersize[card][card] \definetypeface[impact[rm][serif][mpact regular][default] \definetypeface[minion][rm][serif][Minion Pro Regular][default] \definetypeface[myriad][rm][serif][Myriad Pro Regular][default] \setupcolor[cmyk] \setupcolors[state=start] \definecolor[red][c=0,m=.87,y=.87,k=0] \definelayer[textbox][width=\paperwidth,height=\paperheight] \setupbackgrounds[page][background=textbox] \def\starttextbox {\dosingleargument\dostarttextbox} \def\dostarttextbox[#1]% {\def\stoptextbox{\setlayerframed[textbox][width=6cm,align=normal,frame=off,#1]{\getbuffer[textbox]}}% \startbuffer[textbox][starttextbox][stoptextbox]} \starttext %\starttextbox[x=12pt,y=20pt,width=768pt] %\useexternalfigure[ador1][Chrysanthemum.jpg][width=768pt] %\placefigure[here,force][]{none}{\externalfigure[ador1]} %\stoptextbox \starttextbox[x=195.3pt,y=115.2pt,width=560.7pt] \switchtotypeface[impact][48pt] \midaligned{Yo, First!} \stoptextbox \page[empty] \starttextbox[x=447.6pt,y=228pt,width=229.5pt] \switchtotypeface[minion][14pt]% Title. First Last \\ Company \\ Street Address \\ City, State, ZIP \stoptextbox \starttextbox[x=85.2pt,y=228pt,width=229.5pt] \switchtotypeface[minion][14pt]% Dear First,\\ \blank Are you aware that now is the {\bf winter of our discontent}? It's been made {\it glori}\color[red]{\it ous} \color[red]{\bi sum}{\bi mer} by this son of York.\\ \blank I say let's put it back the way it was. Are you with me, Last?\\ \blank Good.\\ \blank -pd \stoptextbox %\starttextbox[x=85.2pt,y=62.4pt,width=229.5pt] %\useexternalfigure[ador2][pd-logo-nobg.eps][scale=245.37] %\placefigure[here,force][pdlogo]{none}{\externalfigure[ador2]} %\stoptextbox \starttextbox[x=249.6pt,y=62.4pt,width=298.8pt] \switchtotypeface[myriad][20pt]% Peter Davis\\ Head Hoo-Ha\\ Hoo-Ha House, Inc.\\ 123 Fourfivesix St.\\ Lake Placebo, NY 12345-6789 \stoptextbox \page[empty] \stoptext ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Choosing TeX um ... stuff
Thanks for all the information, and for helping me update and refine my view of the (TeX) world. For the project I'm doing now, which involves creating desktop publishing type documents (multiple text flows, explicit control of placement of text and graphic elements, etc.), ConTeXt seems to be winning hand's down. I may also be using the XML features, so that's another plus. However, I'm also attracted by the stability and widespread use of plain TeX and LaTeX. It's clear from this that whatever path I take, there are lots of very knowledgeable and helpful people to get me over the hurdles. Thank you! -pd -- Peter Davis The Tech Curmudgeon - http://www.techcurmudgeon.com Ideas Great and Dumb - http://www.ideasgreatanddumb.com ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Placing boxes anywhere on the page
Is there a way to place a box at some specified x and y position on the page, and then typeset one or more paragraphs of text into the box? I guess I'm thinking of something like LaTeX's minipage, but with the ability to specify absolute coordinates, rather than just position relative to the current baseline. Thank you, -pd ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Placing boxes anywhere on the page
On Tue, Nov 16, 2010 at 3:22 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 16.11.2010 um 21:06 schrieb Peter Davis: Is there a way to place a box at some specified x and y position on the page, and then typeset one or more paragraphs of text into the box? I guess I'm thinking of something like LaTeX's minipage, but with the ability to specify absolute coordinates, rather than just position relative to the current baseline. Use layers (untested): \definelayer[textbox][width=\paperwidth,height=\paperheight] \setupbackgrounds[page][background=textbox] \def\starttextbox {\dosingleargument\dostarttextbox} \def\dostarttextbox[#1]% {\def\stoptextbox{\setlayerframed[textbox][#1]{\getbuffer[textbox]}}% \startbuffer[textbox][starttextbox][stoptextbox]} \starttext \starttextbox[x=2cm,y=4cm,width=8cm,frame=off] some text ... more text ... \stoptextbox \starttextbox[x=6cm,y=12cm,width=8cm,frame=off] another example ... \stoptextbox \stoptext Wolfgang Thanks, Worfgang! I just tried this. I don't see any errors, but I don't see any PDF either. Here's the log file: sorters setting language 'en' (layertest.tex jobcontrol resuming randomizer with 0.72399060029908 publications: loading formatting style from bxml-apa (C:/context/tex/texmf-context/tex/context/base/bxml-apa.mkiv) ConTeXt ver: 2010.07.30 11:35 MKIV fmt: 2010.11.9 int: english/english system : cont-new loaded (C:/context/tex/texmf-context/tex/context/base/cont-new.tex systems : beware: some patches loaded from cont-new.tex (C:/context/tex/texmf-context/tex/context/base/cont-new.mkiv)) system : cont-fil loaded (C:/context/tex/texmf-context/tex/context/base/cont-fil.tex loading : ConTeXt File Synonyms ) system : cont-sys.rme loaded (C:/context/tex/texmf-context/tex/context/user/cont-sys.rme (C:/context/tex/texmf-context/tex/context/base/type-def.mkiv) (C:/context/tex/texmf-context/tex/context/base/type-lua.mkiv) (C:/context/tex/texmf-context/tex/context/base/type-siz.mkiv) (C:/context/tex/texmf-context/tex/context/base/type-otf.mkiv)) system : layertest.top loaded % % begin of optionfile % % % runtime options files (command line driven) % \unprotect % % feedback and basic job control % % handy for special styles % \startluacode % document = document or { } % document.arguments={ % } % document.files={ % layertest.tex, % } % \stopluacode % % process info % \setupsystem[inputfile=layertest.tex] % \setupsystem[\c!n=1,\c!m=1] % % modes % % options (not that important) % \startsetups *runtime:options % \setupoutput[pdftex] % \stopsetups % % styles and modules % \startsetups *runtime:modules % \stopsetups % % done % \protect \endinput % % end of optionfile % (layertest.top) fonts : preloading latin modern fonts {C:/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{C:/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map}{C:/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map} bodyfont: 12pt rm is loaded language: language en is active systems : begin file layertest.tex at line 12 systems : end file layertest.tex at line 24 system : cont-err loaded (C:/context/tex/texmf-context/tex/context/base/cont-err.tex systems : no file 'cont-sys.tex', using 'cont-sys.rme' instead ) ) mkiv lua stats : used config file - C:/context/tex/texmf/web2c/texmfcnf.lua mkiv lua stats : used cache path - C:/context/tex/texmf-cache/luatex-cache/context/f53042fa2e1c106bc7e3383ec8c3a00c mkiv lua stats : input load time - 0.026 seconds mkiv lua stats : stored bytecode data - 231 modules, 54 tables, 285 chunks mkiv lua stats : node list callback tasks - 6 unique task lists, 4 instances (re)created, 316 calls mkiv lua stats : cleaned up reserved nodes - 33 nodes, 10 lists of 411 mkiv lua stats : node memory usage - 20 glue_spec mkiv lua stats : used backend - pdf (backend for directly generating pdf output) mkiv lua stats : loaded patterns - en::2 mkiv lua stats : callbacks - direct: 425, indirect: 4447, total: 4872 mkiv lua stats : result saved in file - layertest.pdf mkiv lua stats : loaded fonts - 33 files: stmary10.afm lmmono12-regular.otf lmmono8-regular.otf lmmono9-regular.otf lmroman12-bold.otf lmroman12-regular.otf lmroman7-bold.otf lmroman7-regular.otf lmroman9-bold.otf lmroman9-regular.otf lmsans12-regular.otf lmsans8-regular.otf lmsans9-regular.otf eufb10.tfm eufb7.tfm eufm10.tfm eufm7.tfm msam10.tfm msam7.tfm msbm10.tfm msbm7.tfm lmex10.tfm lmmi12.tfm lmmi7.tfm lmmi9.tfm lmmib10.tfm lmmib7.tfm lmsy10.tfm lmsy7.tfm lmsy9.tfm rm-lmr12.tfm rm-lmr7.tfm rm-lmr9.tfm mkiv lua stats : fonts load time - 0.262 seconds mkiv lua stats : luatex banner - this is luatex, version beta-0.63.0-2010090921 (web2c 2010) (rev 3873) mkiv lua stats : control sequences
Re: [NTG-context] Placing boxes anywhere on the page
Thanks again! Now I get output, But text isn't getting composed inside these boxes. It's just all output on one line. I tried a couple of paragraphs, and just saw the the end of one and the beginning of the next one one line. Sorry if there's some obvious remedy for this. I'm still new to ConTeXt. Thank you. -pd On Tue, Nov 16, 2010 at 3:48 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 16.11.2010 um 21:32 schrieb Peter Davis: Thanks, Worfgang! I just tried this. I don't see any errors, but I don't see any PDF either. Force ConTeXt to produce a page with „\page[empty]“ or „\dontleavehmode\page“ when you have enough material for one page or when you’re at the end of your document. 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 : http://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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Placing boxes anywhere on the page
On Tue, Nov 16, 2010 at 3:41 PM, Peter Münster pmli...@free.fr wrote: On Tue, Nov 16 2010, Peter Davis wrote: Is there a way to place a box at some specified x and y position on the page, and then typeset one or more paragraphs of text into the box? I guess I'm thinking of something like LaTeX's minipage, but with the ability to specify absolute coordinates, rather than just position relative to the current baseline. Layers or overlays are certainly the right method. But there is also the \position macro: Thanks! I didn't find much in the ConTeXt reference manual on this. Is there more info somewhere? Thank you. -pd ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Placing boxes anywhere on the page
On Tue, Nov 16, 2010 at 4:26 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 16.11.2010 um 22:12 schrieb Peter Davis: Thanks again! Now I get output, But text isn't getting composed inside these boxes. It's just all output on one line. I tried a couple of paragraphs, and just saw the the end of one and the beginning of the next one one line. Sorry if there's some obvious remedy for this. I'm still new to ConTeXt. Here is a complete working and tested example: Ah! Excellent! Very cool! Thank you very much. I really appreciate it. Best, -pd ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] XSL-FO to PDF?
On Sun, Nov 14, 2010 at 4:31 PM, Hans Hagen pra...@wxs.nl wrote: On 13-11-2010 4:14, Peter Davis wrote: On 11/13/10 6:03 AM, Renaud AUBIN wrote: Uh ? Give FOP a try… http://xmlgraphics.apache.org/fop/1.0/index.html Could you describe your target chain ? XML → FO → PDF ? Actually, I could write some XSLT to convert the XSL-FO into TeX or ConTeXt. But I was thinking it might be beneficial to use ConTeXt to process the XML (XSL-FO) directly ... get it all under one roof, so to speak. faster too Interesting point. I initially assumed it would be faster to do all my XML processing in ConTeXt, but it occurred to me that perhaps using XSLT to or even home-grown XML processing, I could generate a stream of TeX that could be processed while I'm still producing it. So one process might be looking at successive data records and generating TeX for the various pages, and another process could be simultaneously running TeX to typeset those pages. Plausible? Thank you. -pd ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] XSL-FO to PDF?
Hi, Renaud, In a nutshell, my use is a form of database publishing from two XML files. The first file is *like* XSL-FO, but also contains some namespaced constructs. This XML file is the page template ... it represents the layout, the static portions of the page, and the locations where various live data should get plugged in. The second XML contains the live data, extracted from a database. There might be thousands or tens of thousands of records of information to publish. So for each main element in the live data file, we use the template file, but plug in the live data and generate a beautiful, formatted document. The data may contain plain text, text with some formatting, and references to graphics and images in various formats. It definitely needs to support advanced typesetting (beautiful paragraphs, tracking and kerning, ligatures, multiple languages, etc.). It needs to support full color (mostly CMYK), most widely used fonts (T1, TT/OT, CID, etc.) It also needs to produce finished pages at a rate of thousands or tens of thousands of pages per minute. TeX has the features I want, but I'm still trying to determine the best way to use it. ConTeXt is particularly attractive for its built-in XML support, simplefonts support, pdfTeX support and minimals packaging, among other things. -pd On 11/14/2010 5:48 PM, Renaud AUBIN wrote: XSLT is fully adapted to XML/XML(fo or other target schema) since it was the design basis… My experience is: − good xslt is (relatively) easy to design as soon as you master the underlying data model − xsltproc is REALLY REALLY fast for xslt 1 processing − if you want something smarter, go for java with saxon/xerces, which is performant too… I'm the devil's advocate but what's your need to use ConTeXt. I have not read all your threads but if you just need: − to produce pdfs from xml data − without advanced typesettings you could use xslt to produce DocBook 5 xml file, include them using xi:include href=./data/stuff.xml/, configure your layout with an intermediate xslt + Fo xml config… Once more, it depends on your original ecosystem and constraints… If you provide a use case, I should provide a sample if you don't need it within a couple of hours (but a couple of days)… Best regards, Renaud Le 14/11/2010 22:36, Peter Davis a écrit : On Sun, Nov 14, 2010 at 4:31 PM, Hans Hagenpra...@wxs.nl wrote: On 13-11-2010 4:14, Peter Davis wrote: On 11/13/10 6:03 AM, Renaud AUBIN wrote: Uh ? Give FOP a try…http://xmlgraphics.apache.org/fop/1.0/index.html Could you describe your target chain ? XML → FO → PDF ? Actually, I could write some XSLT to convert the XSL-FO into TeX or ConTeXt. But I was thinking it might be beneficial to use ConTeXt to process the XML (XSL-FO) directly ... get it all under one roof, so to speak. faster too Interesting point. I initially assumed it would be faster to do all my XML processing in ConTeXt, but it occurred to me that perhaps using XSLT to or even home-grown XML processing, I could generate a stream of TeX that could be processed while I'm still producing it. So one process might be looking at successive data records and generating TeX for the various pages, and another process could be simultaneously running TeX to typeset those pages. Plausible? Thank you. -pd ___ 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 :http://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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- Peter Davis The Tech Curmudgeon - http://www.techcurmudgeon.com Ideas Great and Dumb - http://www.ideasgreatanddumb.com ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] XML pretty printer?
I was thinking of doing all the XML parsing in TeX/ConTeXt, so I was looking for examples of that. I'm still trying to learn my way around ConTeXt, and XML handling in particular, so I thought a pretty printer would be a good example. Thank you! -pd On Sat, Nov 13, 2010 at 6:23 AM, Renaud AUBIN au...@nibua-r.org wrote: Some precision. I don't think you could consider any pret-xml.lua as an example of XML processing. What processing would you apply to your XML file? Are considering to use directly lua to process your XML inputs? Sorry, but that's not clear to me… You are certainly aware of the fact that there is a plenty of SAX / XmlPulParser / CodeSynthesis Tree or parser samples around on the www. Renaud Le 12/11/2010 21:22, Peter Davis a écrit : Anybody have an XML pretty printer ConTeXt document? That would make a great example of generic XML processing. Thanks, -pd ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] XSL-FO to PDF?
On 11/13/10 6:03 AM, Renaud AUBIN wrote: Uh ? Give FOP a try… http://xmlgraphics.apache.org/fop/1.0/index.html Could you describe your target chain ? XML → FO → PDF ? Actually, I could write some XSLT to convert the XSL-FO into TeX or ConTeXt. But I was thinking it might be beneficial to use ConTeXt to process the XML (XSL-FO) directly ... get it all under one roof, so to speak. Thanks, -pd -- Peter Davis The Tech Curmudgeon - http://www.techcurmudgeon.com Ideas Great and Dumb - http://www.ideasgreatanddumb.com ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Separate layout and content XML files?
On Thu, Nov 11, 2010 at 11:34 PM, Aditya Mahajan adit...@umich.edu wrote: On Thu, 11 Nov 2010, Peter Davis wrote: I want to process documents from two separate XML files. One XML file defines the layout of the page ... placement of text boxes, fonts to use ... even placeholder text. The other XML contains the actual content that gets placed into that layout. You can generate the \setup commands (i.e. the preable) from the first XML file, and the main body of the document from the second XML file. Thanks! The layout XML would actually define a kind of boilerplate page, and then various contents from the other XML would be inserted. The final document might have a thousand pages, all based on the same boilerplate, but with different contents inserted. So I'd need a mechanism for storing the boilerplate so that for each element in the content XML, I could generate a new page using the boilerplate plus the text from that element. Is that clear? It's kind of like mail merge in a word processor. You might get a few hundred or thousand copies of a letter, each for a different recipient. So in essence, one XML contains the letter, and the other contains the list of recipients, their addresses, etc. Thank you. -pd ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Separate layout and content XML files?
On Fri, Nov 12, 2010 at 7:55 AM, Martin Schröder mar...@oneiros.de wrote: 2010/11/12 Peter Davis p...@pfdstudio.com: Is that clear? It's called database publishing. :-) Exactly. (Or sometimes variable data printing ... VDP.) I guess the layout XML file would basically be used to construct a macro that draws the page, and the content XML would basically invoke that macro with different arguments for each recipient. Does that seem like the most effective way to do this? Any examples of anything like this, or of using an XML to define a macro? Thank you. -pd ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Separate layout and content XML files?
On Fri, Nov 12, 2010 at 8:39 AM, Hans van der Meer h.vanderm...@uva.nlwrote: On tlcontrib.metatex.or I placed a series of ConTeXt modules under title hvdm. Perhaps these are useful as a working example of how to separate various elements of xml-typesetting. Hope this helps. Hans van der Meer Thank you, Hans. I have downloaded this, and will take a closer look. Best, -pd ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] XML pretty printer?
Anybody have an XML pretty printer ConTeXt document? That would make a great example of generic XML processing. Thanks, -pd ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Separate layout and content XML files?
I want to process documents from two separate XML files. One XML file defines the layout of the page ... placement of text boxes, fonts to use ... even placeholder text. The other XML contains the actual content that gets placed into that layout. Is this possible? Anyone have any examples of something like this? I'm a LaTeX user who's new to ConTeXt. I figured I can learn more quickly by starting with a recipe and modifying it to fit my needs. Thank you! -pd ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] XSL-FO to PDF?
On Tue, Nov 9, 2010 at 6:56 PM, luigi scarso luigi.sca...@gmail.com wrote: On Wed, Nov 10, 2010 at 12:22 AM, Peter Davis p...@pfdstudio.com wrote: Is there some recent information on using XML, and specifically XSL-FO, with ConTeXt? The pages on the contextgarden wiki appear to be 5 years old or more, and even the archive of this list seem pretty sparse on recent information. I'm trying to find the most direct route from XSL-FO to PS or PDF. I'll be generating hundreds or thousands of XSL-FO documents, and would like to process them. Thank you. batik http://xmlgraphics.apache.org/batik/ -- luigi Thanks, Luigi. I'm not sure I see the connection, but I'll take a look. -pd ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] XSL-FO to PDF?
On Tue, Nov 9, 2010 at 7:16 PM, Hans Hagen pra...@wxs.nl wrote: On 10-11-2010 12:22, Peter Davis wrote: Is there some recent information on using XML, and specifically XSL-FO, with ConTeXt? The pages on the contextgarden wiki appear to be 5 years old or more, and even the archive of this list seem pretty sparse on recent information. I'm trying to find the most direct route from XSL-FO to PS or PDF. I'll be generating hundreds or thousands of XSL-FO documents, and would like to process them. there was never much interest in FO and usually such code only gets better when it's used; I have it on my todo list to rewrite the mkii specific FO processing code in mkiv as it can be done more efficient etc etc but there is not that much incentive ... in projects that I'm involved in we normally go directly from xml to pdf simply because it's faster, gives better results and takes less coding than going the fo-route; and as FO is not that much fun, I'd either need a project or see it as a challenge (btw, it's not that big a deal to rewrite the mkii code to mkiv) Hans Thanks, Hans. I can certainly understand that FO has not gotten much attention. In our case, though, this is the XML format we're starting with. It's not a matter of converting other xml to FO. I'd be happy to look at the mkii code, but considering that I'm brand spanking new to ConTeXt, I don't expect to make any great strides there for a while. Is it possible to put a setup inside an xmlsetup? For example, if the xml specifies a page size, can I put a setup for that inside the xmlsetup that handles that element? Thank you, -pd ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] First try with ConTeXt (Win7)
On Tue, Nov 9, 2010 at 8:30 AM, Mojca Miklavec mojca.miklavec.li...@gmail.com wrote: In the last tab of settings in TeXworks you should be able to adjust paths. Simply add the path to [context root]/texmf-mswin/bin to that list and put it on top. That fixed it. Thanks! Apart from that: ConTeXt should work under MikTeX 2.9 out of the bo.x (I reported some problems to CS; I have no idea if he fixed them, but all of them were solvable even without official fix of MikTeX, but I didn't try the latest version, I only tested the beta.) I'm trying to shake out a workflow that will eventually be put on systems that don't have MikTeX pre-installed, so I'd like to keep everything dependent only on the minimal installation. Thank you. -pd ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] First try with ConTeXt (Win7)
I've used LaTeX for years, but I'm trying to work with ConTeXt now on a Win7 PC that has already had MikTeX 2.9 installed. I've downloaded the minimal ZIP file, unpacked it and run the first_setup.bat file. (Note, I don't have Ruby installed yet, so I can't use pdfTeX, but I assume some other build is available.) Then I opened TeXworks, created a ConTeXt typesetting option, entered a helloworld.tex program, and tried to ConTeXt it. However, I just get these messages: MTXrun | forcing cache reload MTXrun | resolvers: skipping configuration file 'C:/Users/peterd/AppData/Roaming/MiKTeX/2.9/web2c/texmfcnf.lua' (no file) MTXrun | resolvers MTXrun | resolvers MTXrun | the resolver databases are not present or outdated MTXrun | resolvers: using suffix based filetype 'lua' MTXrun | resolvers: using suffix based filetype 'lua' MTXrun | resolvers: remembering file 'mtx-context.lua' MTXrun | resolvers: using suffix based filetype 'lua' MTXrun | unknown script 'context.lua' or 'mtx-context.lua' Any clues available? Thanks! -pd ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] XSL-FO to PDF?
Is there some recent information on using XML, and specifically XSL-FO, with ConTeXt? The pages on the contextgarden wiki appear to be 5 years old or more, and even the archive of this list seem pretty sparse on recent information. I'm trying to find the most direct route from XSL-FO to PS or PDF. I'll be generating hundreds or thousands of XSL-FO documents, and would like to process them. Thank you. -pd ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___