[NTG-context] Line height for smaller fonts. (Migrating from LaTeX to ConTeXt:) forcing new line and new page

2010-10-04 Thread Procházka Lukáš Ing . - Pontex s . r . o .

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:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

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

ListFile-3.pdf
Description: Adobe PDF document


ListFile-3.ctx
Description: Binary data
___
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] Line height for smaller fonts. (Migrating from LaTeX to ConTeXt:) forcing new line and new page

2010-10-04 Thread Hans Hagen

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
___


Re: [NTG-context] Line height for smaller fonts. (Migrating from LaTeX to ConTeXt:) forcing new line and new page

2010-10-04 Thread Aditya Mahajan

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