ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Line height for smaller fonts. (Migrating from LaTeX to ConTeXt:) forcing new line and new page
@ 2010-10-04 16:13 Procházka Lukáš Ing. - Pontex s. r. o.
  2010-10-04 16:44 ` Hans Hagen
  2010-10-04 17:05 ` Aditya Mahajan
  0 siblings, 2 replies; 3+ messages in thread
From: Procházka Lukáš Ing. - Pontex s. r. o. @ 2010-10-04 16:13 UTC (permalink / raw)
  To: ConTeXt

[-- Attachment #1: Type: text/plain, Size: 1026 bytes --]

Hello,

let's have the following example:

---
\starttext

    \tt
    \input tufte

    \hairline

    \tfx
    \input tufte

    \hairline

    \tfxx
    \input tufte

\stoptext
---

When I look at the result, I see the smaller font the bigger "gap" between lines (or this may be taken as "line height" relative to letter height).

As I would need to type many datafiles, it's important for me to reduce line height, even if readability of the text becomes a bit worse.

Is it possible to achieve this anyhow?

Another question:

How to force new line and new page to start?

- LaTeX provides \newline, \newpage\ linebreak and \pagebreak commands - see e.g. http://www.personal.ceu.hu/tex/breaking.htm.

Does ConTeXt provide similar commands? Or how to achieve this?

Regards,

Lukas


-- 
Ing. Lukáš Procházka [mailto:LPr@pontex.cz]
Pontex s. r. o.      [mailto:pontex@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

[-- Attachment #2: ListFile-3.pdf --]
[-- Type: application/pdf, Size: 18153 bytes --]

[-- Attachment #3: ListFile-3.ctx --]
[-- Type: application/octet-stream, Size: 117 bytes --]

\starttext

  \tt
  \input tufte

  \hairline

  \tfx
  \input tufte

  \hairline

  \tfxx
  \input tufte

\stoptext

[-- Attachment #4: Type: text/plain, Size: 486 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Line height for smaller fonts. (Migrating from LaTeX to ConTeXt:) forcing new line and new page
  2010-10-04 16:13 Line height for smaller fonts. (Migrating from LaTeX to ConTeXt:) forcing new line and new page Procházka Lukáš Ing. - Pontex s. r. o.
@ 2010-10-04 16:44 ` Hans Hagen
  2010-10-04 17:05 ` Aditya Mahajan
  1 sibling, 0 replies; 3+ messages in thread
From: Hans Hagen @ 2010-10-04 16:44 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 4-10-2010 6:13, Procházka Lukáš Ing. - Pontex s. r. o. wrote:
> Hello,
>
> let's have the following example:
>
> ---
> \starttext
>
> \tt
> \input tufte
>
> \hairline
>
> \tfx
> \input tufte
>
> \hairline
>
> \tfxx
> \input tufte
>
> \stoptext
> ---
>
> When I look at the result, I see the smaller font the bigger "gap"
> between lines (or this may be taken as "line height" relative to letter
> height).

\starttext

     \start \tt \input tufte \par \stop

     \hairline

     \start \ttx \input tufte \par \stop

     \hairline

     \start \ttxx \setupinterlinespace \input tufte \par \stop

     \hairline

     \start \switchtobodyfont[6pt,tt] \input tufte \par \stop

\stoptext


> As I would need to type many datafiles, it's important for me to reduce
> line height, even if readability of the text becomes a bit worse.
>
> Is it possible to achieve this anyhow?
>
> Another question:
>
> How to force new line and new page to start?
>
> - LaTeX provides \newline, \newpage\ linebreak and \pagebreak commands -
> see e.g. http://www.personal.ceu.hu/tex/breaking.htm.

\crlf  (forced newline with strut, no whitespace)
\par   (regular par break)
\page  (pagebreak)
\break (linebreak)

> Does ConTeXt provide similar commands? Or how to achieve this?
>
> Regards,
>
> Lukas
>
>
>
>
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________


-- 

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Line height for smaller fonts. (Migrating from LaTeX to ConTeXt:) forcing new line and new page
  2010-10-04 16:13 Line height for smaller fonts. (Migrating from LaTeX to ConTeXt:) forcing new line and new page Procházka Lukáš Ing. - Pontex s. r. o.
  2010-10-04 16:44 ` Hans Hagen
@ 2010-10-04 17:05 ` Aditya Mahajan
  1 sibling, 0 replies; 3+ messages in thread
From: Aditya Mahajan @ 2010-10-04 17:05 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1059 bytes --]

On Mon, 4 Oct 2010, Procházka Lukáš Ing. - Pontex s. r. o. wrote:

> Hello,
>
> let's have the following example:
>
> ---
> \starttext
>
>   \tt
>   \input tufte
>
>  \hairline

\switchtobodyfont[small]

or \tfx\setupinterlinespace (untested)

>   \tfx
>   \input tufte
>
>  \hairline
>
>   \tfxx
>   \input tufte
>
> \stoptext
> ---
>
> When I look at the result, I see the smaller font the bigger "gap" between 
> lines (or this may be taken as "line height" relative to letter height).
>
> As I would need to type many datafiles, it's important for me to reduce line 
> height, even if readability of the text becomes a bit worse.
>
> Is it possible to achieve this anyhow?
>
> Another question:
>
> How to force new line and new page to start?
>
> - LaTeX provides \newline, \newpage\ linebreak and \pagebreak commands - see 
> e.g. http://www.personal.ceu.hu/tex/breaking.htm.

\newline = \crlf
\linebreak = \blank (not completely sure as I do not remember what 
linebreak does)

\newpage = \page

Aditya

[-- Attachment #2: Type: text/plain, Size: 486 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-10-04 17:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-04 16:13 Line height for smaller fonts. (Migrating from LaTeX to ConTeXt:) forcing new line and new page Procházka Lukáš Ing. - Pontex s. r. o.
2010-10-04 16:44 ` Hans Hagen
2010-10-04 17:05 ` Aditya Mahajan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).