Tell me more ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

This question might well be off topic, so feel free to close. But I hope some people reading here possess the relevant meta-knowledge.

I'm thinking (from a professional point of view) about fully automatic generation of newspapers from data.

More precisely, the system under consideration would get an 'attributed' data stream of articles (subject classification, headers, author info &c, text, images) plus some hints on the way things should be layouted, but only on the level of "lead story", "short message", "weather report", and generate a complete newspaper automatically without further user interaction (for print, not online).

Note I'm not looking for help on how to do this with LaTeX. There won't be technical difficulties with page and article layout using my system DocScape. I'm asking (myself) about the basic algorithm for "geometrically" generating the page layout based on the given content stream. There has to be some 'artificial intelligence' in there to make the newspaper look good also from a professional newspaper editor's point of view.

googling yields some interesting references, but it's hard to distinguish which of them would really lead to an effective implementation. I'm not talking about an academic exercise here but about a real system which would be used by a publisher to produce hundreds of newspapers each week.

There are further interesting references in the area of floorplanning for VLSI layout, but these lack consideration for specific needs of newspapers, of course ;-)

Now my questions a bit more precisely:

  1. Does a system like described above effectively exist (it doesn't have to be based on TeX)? I'd be interested in pointers to concrete systems as well as publications about them.
  2. Are there publishers who really use a system like this for making newspapers (online would be interesting as well)?
  3. Has anyone here ever worked with such a system and would care to describe how it's used?
  4. What are the most interesting "scientific" publications on this subject which I should consider when designing such a system myself?

I have seen the question Automatic newspaper creation in LaTeX, but it's got a slightly different focus than mine (what LaTeX tools to use), and unfortunately the discussion there wasn't very intense, yielding no pointers which would help me.

Edit

on accepting answers.

As this question is rather open and allows for many answers, I won't accept any (unless it's really definitive) but wait until I can set a bounty and then award one to every appropriate answer. This is really important to me!

Update

I have now accepted the answer that was most useful to me. I'm leaving the bounty up looking for further answers, but I'm getting the impression I have a good overview of the current situation now.

Conclusion

Thank you to Yiannis, Frank for answering. I'll soon make a short list of relevant literature I have collected so far.

share|improve this question
Interesting question! I've run into something potentially applicable in the Lists in TeX's mouth TUGboat article, which mentions at the end of the article MagTeX, and “infinite list of ouput routines”. I haven't found more information on MagTeX, though. – morbusg Mar 28 '12 at 9:51
@morbusg While this might be an interesting question from the TeX point of view (making this even a bit more on topic :) I can assure you I have the technical demands of page layout sorted out in DocScape. See for instance [flipcat2.giata-web.de/…. – Stephan Lehmke Mar 28 '12 at 9:58
Stephan: OK, I guess I don't understand the question, then. But just to be on the safe side, please, let the sentence “infinite list of output routines” sink in. To help with that, I thought it could be good to repeat it one more time ;-D infinite list of output routines. – morbusg Mar 28 '12 at 10:22
@morbusg: I can give you another sentence: no output routine at all which is what DocScape is using ;-) What I'm really looking for is the part of the system which will 'geometrically' assign articles to places on the page (and on the fly assign a precise shape to every article) so that the layout of the page after typesetting looks like a human did it. – Stephan Lehmke Mar 28 '12 at 10:27
2  
Well, this really depends. First, DocScape globally redefines \shipout to \newcommand\shipoutoff@DocScape{\setbox\@tempboxa=} so while \output might be triggered occasionally when a macro generates spurious spaces or text is output owing to error states, this doesn't really output anything for certain. On the other hand, things get output of course, only not by an output routine in the sense of plain or LaTeX, but from a much more sophisticated "object-oriented" page model. – Stephan Lehmke Mar 28 '12 at 10:38
show 4 more comments

2 Answers

up vote 15 down vote accepted
+100

Not much of an answer, more a couple of loose thoughts ...

Off-hand I'm not aware of any such system and also not aware of any research that deals with automatic newspaper layout. As far as I know there has been only very very limited attempts to approach the subject of automatic typesetting with more complex layout rules and dependencies that go beyond what is largely a linear process. You can count the with your hands:

  • Michael Plass (under Knuth)
  • Graham Asher in 1990 or so (Type & Set) - not sure what happened to that
  • Anne Brüggemann-Klein in the mid 90ties
  • Richard Furuta and a few others in the 90ties
  • Stephan Wohlfeil 1997 (Phd: On the Pagination of Complex Book-like Documents)

and to my knowledge nada otherwise. And those are all looking more at the questions arising from "book-like" documents rather than newspapers/journals. But I might be very wrong as I didn't follow that area closely in the last 10 years.

But assuming my knowledge is correct for a moment, it isn't really really surprising, is it? What you have is a global optimization problem of a constraint system where the possibilities that you need to test grow astronomically the moment you have more than a single column and a good number of floats with a certain set of constraints. And so far any serious attempts to do much better than choosing the trivial way out (no floats, just linear typesetting - aka MS-Word model) or a simple greedy algorithm that never looks back (like LaTeX does) got defeated by the complexity of the task.

Now newspaper typesetting on one hand comes with the additional complexity (but perhaps also the freedom) of having multiple input streams of limited length which allow for reordering (to some extent). On the other hand it will have much different requirements on picture order and call-outs.

By the way, to my knowledge it is quite common in newspaper writing that the authors have to write to length and if they don't they get edited to it. Are you thinking of taking that into account? Because if so that would simplify the task probably considerably.

So I think the first task would be to understand and research the constraint system, e.g., what kind of rules make newspapers or journals tick. Those will not be universal and most likely they are contradicting each other if taken all together. But they form a basis of what an algorithm needs to be able to be configured for. And only when those boundaries are known can one delve deeper into the question of designing such an algorithm. How close one can get to an ideal, I don't know. In some respects, I would assume that it might in fact be simpler for newspapers due to the flexibility of reordering stories but in any case I believe this is an open research topic that is so far unsolved (just like "the pagination of complex book-like documents" effectively is). --- I'm certainly interested and have been for more than two decades, even if I had to take a longer break after the millennium.

I don't know if Wohlfeil's PhD work is still easily available (it was difficult for me to get back then) but a quick search on the web brought up a shorter paper by Brüggeman-Klein/Klein/Wohlfeil "On the Pagination of Complex Documents" which is from around the same time. And I also found "Pagination reconsidered" by the same authors (but no date to go with it, but from the number it was probably earlier).

I'm sure that there are probably many other sources but one good book that I think is worth looking at for those who speak German is "Praxishandbuch Gestaltungsraster" by Andreas and Regina Maxhauer. Its focus isn't the newspaper angle, but rather the grid one but that naturally covers a good number of possible rules.

By the way, a good way to do some research (through far from perfect at the moment) is to look around in Microsoft's Academic Search. For example that gives you some more background on what Anne was doing over the years and which papers she co-authored. But you have to be aware that there is a lot of rubbish in the data they have and it is horribly incomplete in parts.

Update

Upon reading a bit in Stefan's PhD thesis again (which I incorrectly labeled habil initially) I came across the work of Krista Lagus who wrote in her master thesis about "Automated pagination of the generalized newspaper using simulated annealing". I didn't find the thesis on the web but perhaps it is worth exploring further.

share|improve this answer
Thank you very much for the answer, and for all the references. They will surely be useful. Looking at this I'm almost tempted to make a research project from this after all ;-) But if this project is to happen at all, it has to be with a totally pragmatic approach, yielding acceptable results within a reasonable amount of implementation time. Fortunately, we meanwhile have plenty of experience with automatically generating complex page structures. This would without doubt be the most complex we ever attempted, but still I think our basic techniques can be applied. – Stephan Lehmke Apr 1 '12 at 23:11
Another note: I doubt we can have the editors modifying text to get a better fit. If they had resources for that, they would surely do the whole layout the traditional way. It's the sheer amount of pages which have to be produced per week which calls for automation, and this would also prohibit adaption on a per-article basis. One thing which could be considered would be to declare parts of a text as optional, as the same text can appear on a lot of pages (these are localised newspapers). But most of the time flexibility has to come from adding fillers or white space. – Stephan Lehmke Apr 1 '12 at 23:16
@Stephan doesn't really surprise me. I was assuming this. Still, there may be variants possible either by specification in the text or by allowing pictures to go with the text to be adjusted in size, for example. Either way, the opimization job may not become easier only wider in options :-) – Frank Mittelbach Apr 1 '12 at 23:20
Of course, this will boil down to pre-determining a "geometric solution space" for every article, describing the range of all geometries it can assume by choosing different templates, compressing or extending. The layouting process will then combine geometries from the ranges of different articles. The interesting part will be to asses the total quality of a page candidate based on criteria acquired from domain experts. btw, thanks for the update. I didn't have this paper, but I will surely try to get hold of it. – Stephan Lehmke Apr 1 '12 at 23:25

I am not familiar with any literature other than some papers that concentrate on page description languages. However, I think Håkon Wium Lie's thesis on Cascading Style Sheets, might be partially relevant to what you are looking at least from the point of developing a robust "templating" or "templet" system (also has an interesting bibliography). However, as you said:

There won't be technical difficulties with page and article layout using my system DocScape. I'm asking (myself) about the basic algorithm for "geometrically" generating the page layout based on the given content stream.

The difficulty lies in defining an algorithm for nicely placing textual objects on a page, trying the various permutations etc. The answer certainly lies in the realm of AI and especially machine learning.

I would envision a system that has scanned and translated into templates (based on an as yet to be developed system) 1000s of editions and then out of this corpus to train the algorithm to produce similar designs using pattern recognition algorithms.

However, the problem will become more tractable if you re-phrase as: from a set of pre-determined typographical layouts can you automate the production of a newspaper. The answer for this is almost certain as proven by LaTeX that automates the production of pre-determined styles for books etc. Such a system has been described by DeTreville in a PhD Thesis. The dissertation is a bit dated but has a good approach in abstracting layouts.

I tried hard on and off to try and define an algorithm that from a set of figures and text produce art book like output. So far I have a collection of about 100 different designs. How do you choose one from another still evades me and this is three orders of magnitude easier.

But, please don't let me discourage you. I think is a great area to develop and research or create a start-up for it.

share|improve this answer
Thank you for this answer. See my edit above on accepting answers. I'm not discouraged at all. We've already successfully designed systems for optimal ad placement, so I'm really confident we can solve the computing problem involved. The most challenging task will be to design an "intelligent" function for assessing the "fitness" of a given page layout based on criteria which express the opinion of professional editors. Personally, I don't believe in approaching this type of problem with a learning algorithm (NN or ILP or whatever). I've seen too much of this while at university. – Stephan Lehmke Mar 28 '12 at 20:04
@Yiannis I would be thrilled to learn more about your collection of layouts. This is just what I would need for working on the new layout config concepts for LaTeX3 – Frank Mittelbach Apr 1 '12 at 22:05
@FrankMittelbach I am back on 17 April and will email them with pleasure. – Yiannis Lazarides Apr 2 '12 at 3:46
@YiannisLazarides Thank you very much for the additional link. I'll take a look. – Stephan Lehmke Apr 8 '12 at 15:36
@YiannisLazarides can I ping you once more for your layout collection? I think a lot of people would benefit. – Frank Mittelbach Jun 28 '12 at 16:41

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.