skip to main content
10.1145/2494266.2494285acmconferencesArticle/Chapter ViewAbstractPublication PagesdocengConference Proceedingsconference-collections
research-article

Balancing font sizes for flexibility in automated document layout

Authors Info & Claims
Published:10 September 2013Publication History

ABSTRACT

This paper presents an improved approach for automatically laying out content onto a document page, where the number and size of the items are unknown in advance. Our solution leverages earlier results from Oliveira (2008) wherein layouts are modeled by a guillotine partitioning of the page. The benefit of such method is its efficiency and ability to place as many items on a page as desired. In our model, items have flexible representations and texts may freely change their font sizes to fit a particular area of the page. As a consequence, the optimization goal is to find a layout that produces the least noticeable difference between font sizes, in order to obtain the most aesthetically pleasing layout. Finding the best areas for text requires knowledge of how typesetting engines actually render text for a particular setting. As such, we also model the behavior of the TeX typesetting engine when computing the height to be occupied by a text block as a function of the font size, text length and line width. An analytical approximation for text placement is then presented, refined by using curve fitting over TeX-generated data. As a practical result, the resulting layouts for a newspaper generation application are also presented. Finally, we discuss these results and directions for further research.

References

  1. B. C. Atkins. Adaptive photo collection page layout. In International Conference on Image Processing, volume 5, pages 2897--2900, Washington, DC, USA, Oct. 2004. IEEE Computer Society.Google ScholarGoogle ScholarCross RefCross Ref
  2. B. C. Atkins. Blocked recursive image composition. In MM '08: Proceeding of the 16th ACM international conference on Multimedia, pages 821--824, New York, NY, USA, 2008. ACM. Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. D. Chek, L. Ngo, and J. G. Byrne. Aesthetic measures for screen design. In OZCHI'98: Proceedings of the Australasian Conference on Computer Human Interaction, page 64, Washington, DC, USA, 1998. IEEE Computer Society. Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. E. Coffman, G. Galambos, S. Martello, and D. Vigo. Bin packing approximation algorithms: Combinatorial analysis. In D.-Z. Du and P. Pardalos, editors, Handbook of Combinatorial Optimization, pages 151--207. Springer US, 1999.Google ScholarGoogle Scholar
  5. T. H. Cormen, C. E. Leiserson, R. L. Rivest, and C. Stein. Introduction to Algorithms, Second Edition. The MIT Press, Cambridge, MA, September 2001. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. N. Damera-Venkata, J. Bento, and E. O'Brien-Strain. Probabilistic document model for automated document composition. In Proceedings of the 11th ACM symposium on Document engineering, DocEng '11, pages 3--12, New York, NY, USA, 2011. ACM. Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. J. B. S. de Oliveira. Two algorithms for automatic document page layout. In Proceedings of the eighth ACM symposium on Document engineering, pages 141--149, New York, NY, USA, 2008. ACM. Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. J. B. S. de Oliveira. Two algorithms for automatic page layout and possible applications. Multimedia Tools and Applications, 43(3):275--301, 2009. Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. M. Fleischer. Simulated annealing: past, present, and future. In WSC '95: Proceedings of the 27th conference on Winter simulation, pages 155--161, Washington, DC, USA, 1995. IEEE Computer Society. Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. G. Gange, K. Marriott, and P. Stuckey. Optimal guillotine layout. In Proceedings of the 2012 ACM symposium on Document engineering, DocEng '12, pages 13--22, New York, NY, USA, 2012. ACM. Google ScholarGoogle ScholarDigital LibraryDigital Library
  11. D. E. Goldberg. Genetic Algorithms in Search, Optimization and Machine Learning. Addison-Wesley Longman Publishing Co., Inc., Boston, MA, USA, 1989. Google ScholarGoogle ScholarDigital LibraryDigital Library
  12. E. Goldenberg. Automatic layout of variable-content print data. Master's thesis, School of Cognitive & Computing Sciences, University of Sussex, Brighton, UK, Nov 2002.Google ScholarGoogle Scholar
  13. A. Gómez, M. C. Penadés, J. H. Canós, M. R. S. Borges, and M. Llavador. DPLfw: a framework for variable content document generation. In Proceedings of the 16th International Software Product Line Conference -- Volume 1, SPLC '12, pages 96--105, New York, NY, USA, 2012. ACM. Google ScholarGoogle ScholarDigital LibraryDigital Library
  14. S. J. Harrington, J. F. Naveda, R. P. Jones, P. Roetling, and N. Thakkar. Aesthetic measures for automated document layout. In DocEng'04: Proceedings of the 2004 ACM symposium on Document engineering, pages 109--111, New York, NY, USA, 2004. ACM Press. Google ScholarGoogle ScholarDigital LibraryDigital Library
  15. T. Harrower. The Newspaper Designer's Handbook. McGraw-Hill, Boston, MA, USA, 1992.Google ScholarGoogle Scholar
  16. N. Hurst, W. Li, and K. Marriott. Review of automatic document formatting. In DocEng'09: Proceedings of the 9th ACM symposium on Document engineering, pages 99--108, New York, NY, USA, 2009. ACM. Google ScholarGoogle ScholarDigital LibraryDigital Library
  17. C. Jacobs, W. Li, E. Schrier, D. Bargeron, and D. Salesin. Adaptive grid-based document layout. In SIGGRAPH '03: ACM SIGGRAPH 2003, pages 838--847, New York, NY, USA, 2003. ACM Press. Google ScholarGoogle ScholarDigital LibraryDigital Library
  18. R. Johari, J. Marks, A. Partovi, and S. Shieber. Automatic yellow-pages pagination and layout. Journal of Heuristics, 2(4):321--342, 1997.Google ScholarGoogle ScholarCross RefCross Ref
  19. D. E. Knuth. Breaking Paragraphs Into Lines. In Digital typography, CSLI lecture notes, chapter 3, pages 67--155. CSLI Publications, 1999.Google ScholarGoogle Scholar
  20. L. Lamport. ŁaTeX: A Document Preparation System. Addison-Wesley, Reading, Massachusetts, USA, Boston, MA, USA, 1986. Google ScholarGoogle ScholarDigital LibraryDigital Library
  21. G. E. Legge and C. A. Bigelow. Does print size matter for reading? a review of findings from vision science and typography. Journal of Vision, 11(5), 2011.Google ScholarGoogle ScholarCross RefCross Ref
  22. A. Lodi, S. Martello, and D. Vigo. Recent advances on two-dimensional bin packing problems. Discrete Applied Mathematics, 123(1-3):379--396, 2002. Google ScholarGoogle ScholarDigital LibraryDigital Library
  23. B. Lowagie. iText in Action. Manning Publications Co., Greenwich, CT, USA, 2010. Google ScholarGoogle ScholarDigital LibraryDigital Library
  24. P. Luo, J. Fan, S. Liu, F. Lin, Y. Xiong, and J. Liu. Web article extraction for web printing: a DOM+visual based approach. In Proceedings of the 9th ACM symposium on Document engineering, DocEng '09, pages 66--69, New York, NY, USA, 2009. ACM. Google ScholarGoogle ScholarDigital LibraryDigital Library
  25. R. Piccoli, J. Oliveira, and I. Manssour. Optimal pagination and content mapping for customized magazines. Journal of the Brazilian Computer Society, pages 1--19, 2012. 10.1007/s13173-012-0066-6.Google ScholarGoogle ScholarCross RefCross Ref
  26. L. Purvis, S. Harrington, B. O'Sullivan, and E. C. Freuder. Creating personalized documents: an optimization approach. In DocEng '03: Proceedings of the 2003 ACM symposium on Document engineering, pages 68--77, New York, NY, USA, 2003. ACM. Google ScholarGoogle ScholarDigital LibraryDigital Library
  27. D. Salomon. The AdvancedTeXbook. Springer-Verlag, Berlin, 1995. Google ScholarGoogle ScholarDigital LibraryDigital Library
  28. E. Schrier, M. Dontcheva, C. Jacobs, G. Wade, and D. Salesin. Adaptive layout for dynamically aggregated documents. In IUI'08: Proceedings of the 13th international conference on Intelligent user interfaces, pages 99--108, New York, NY, USA, 2008. ACM. Google ScholarGoogle ScholarDigital LibraryDigital Library
  29. B. Veytsman and L. Akhmadeeva. Towards evidence-based typography: Literature review and experiment design. TUGboat, 32(3), 2011.Google ScholarGoogle Scholar

Index Terms

  1. Balancing font sizes for flexibility in automated document layout

        Recommendations

        Comments

        Login options

        Check if you have access through your login credentials or your institution to get full access on this article.

        Sign in
        • Published in

          cover image ACM Conferences
          DocEng '13: Proceedings of the 2013 ACM symposium on Document engineering
          September 2013
          582 pages
          ISBN:9781450317894
          DOI:10.1145/2494266

          Copyright © 2013 ACM

          Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

          Publisher

          Association for Computing Machinery

          New York, NY, United States

          Publication History

          • Published: 10 September 2013

          Permissions

          Request permissions about this article.

          Request Permissions

          Check for updates

          Qualifiers

          • research-article

          Acceptance Rates

          DocEng '13 Paper Acceptance Rate16of50submissions,32%Overall Acceptance Rate178of537submissions,33%

        PDF Format

        View or Download as a PDF file.

        PDF

        eReader

        View online with eReader.

        eReader