ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* fullpage and XeTeX typescript
@ 2008-12-23 17:44 Mohamed Bana
  2008-12-23 18:32 ` Wolfgang Schuster
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Mohamed Bana @ 2008-12-23 17:44 UTC (permalink / raw)
  To: ntg-context

hi,

1.

what's the equivalent of the \usepackage{fullpage} for ConTeXt?


2.

it would be convenient if LuaTeX supported typescripts like XeTeX does 
instead of having to define font synonyms, e.g.,

\definetypeface[mainface][rm][Xserif][Warnock Pro]
\definetypeface[mainface][ss][Xsans][Cronos Pro]
\definetypeface[mainface][tt][Xmono][Inconsolata][default]%[rscale=0.9] 
% use only for Monaco
%\definetypeface[mainface][mm][Xmath][palatino]
\definetypeface[mainface][mm][math][palatino][default]%[encoding=texnansi]
\setupbodyfont[mainface, 13pt]


___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: fullpage and XeTeX typescript
  2008-12-23 17:44 fullpage and XeTeX typescript Mohamed Bana
@ 2008-12-23 18:32 ` Wolfgang Schuster
  2008-12-23 19:11 ` Wolfgang Schuster
  2008-12-24  4:50 ` Yue Wang
  2 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Schuster @ 2008-12-23 18:32 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 23.12.2008 um 18:44 schrieb Mohamed Bana:

> hi,
>
> 1.
>
> what's the equivalent of the \usepackage{fullpage} for ConTeXt?


Tell us next time what a package is supposed to do.

\setuplayout
   [backspace=1in,
    width=middle,
    topspace=1in,
    header=0pt,
    footer=0pt,
    height=middle]

\starttext
...
\stoptext

or use \definelayout to predefine different layouts and load
them in 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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: fullpage and XeTeX typescript
  2008-12-23 17:44 fullpage and XeTeX typescript Mohamed Bana
  2008-12-23 18:32 ` Wolfgang Schuster
@ 2008-12-23 19:11 ` Wolfgang Schuster
  2008-12-24  4:50 ` Yue Wang
  2 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Schuster @ 2008-12-23 19:11 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 23.12.2008 um 18:44 schrieb Mohamed Bana:

> hi,
>
> 1.
>
> what's the equivalent of the \usepackage{fullpage} for ConTeXt?


<file name="example.tex">
\usemodule[fullpage][style={cm,empty}]

%\showframe

\starttext
\input knuth
\stoptext
</file>

<file name="p-fullpage.tex">
%D \module
%D   [       file=p-fullpage,
%D        version=2008.12.23,
%D          title=\CONTEXT\ User Module,
%D       subtitle=Fullpage documents,
%D         author=Wolfgang Schuster,
%D           date=\currentdate,
%D      copyright=Wolfgang Schuster,
%D        license=Public Domain]

\unprotect

\startinterface all
   \setinterfacevariable {fullpage} {fullpage}
   \setinterfacevariable {in}       {in}
   \setinterfacevariable {cm}       {cm}
   \setinterfacevariable {plain}    {plain}
   \setinterfacevariable {headings} {headings}
\stopinterface

\startmodule[\v!fullpage]

\setupmodule
   [\c!style={\v!in,\v!plain}]

\startsetups[\v!fullpage:\v!in]

\setuplayout
   [\c!backspace=1in,
    \c!width=\v!middle,
    \c!topspace=1in,
    \c!height=\v!middle]

\stopsetups

\startsetups[\v!fullpage:\v!cm]

\setuplayout
   [\c!backspace=15mm,
    \c!width=\v!middle,
    \c!topspace=15mm,
    \c!height=\v!middle]

\stopsetups

\startsetups[\v!fullpage:\v!plain]

\setuplayout
   [\c!header=0pt,
    \c!footer=.5in]

\stopsetups

\startsetups[\v!fullpage:\v!empty]

\setuplayout
   [\c!header=0pt,
    \c!footer=0pt]

\stopsetups

\startsetups[\v!fullpage:\v!headings]

\setuplayout
   [\c!header=.5in,
    \c!footer=.5in]

\stopsetups

\def\dofullpagelayout#1%
   {\directsetup{\v!fullpage:#1}}

\processcommacommand[\currentmoduleparameter\c!style]\dofullpagelayout

\stopmodule

\protect \endinput
</file>

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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: fullpage and XeTeX typescript
  2008-12-23 17:44 fullpage and XeTeX typescript Mohamed Bana
  2008-12-23 18:32 ` Wolfgang Schuster
  2008-12-23 19:11 ` Wolfgang Schuster
@ 2008-12-24  4:50 ` Yue Wang
  2 siblings, 0 replies; 4+ messages in thread
From: Yue Wang @ 2008-12-24  4:50 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Concerning the second question, the following is the reply from Hans
months ago to me.
I think Hans is right, since fonts are quite complex, but it *will* be
a lot easier if we have that mechanism since this mechanism will be
applicable to most fonts.
If there are fonts that fontconfig cannot handle well, then the user
can define them in the old way.:

Yue Wang wrote:

> last question: is it possible to add fontconfig-like interface? if I
> define to use minion famaily, then all the alternatives are
> automatically defined like xetex?

i never looked into that interface so i cannot comment on it, but i've
learned my lessons with fonts ... they are all different and any 'clever
automated mechanism' will at some point fail, so then one ends up with
exeptions; when defining a document style one needs to know the font,
its usage (what variants, styles, etc) and often also it slimitations
(font feature are not that well defined and fonts might have incomplete
implementations)

the best one can do is make a typescript (or a collection, as with tex
gyre which tries to be consistent over the whole range) that implements
a definition and even then, a different version of a font (i mostly use
commercial fonts and font ABC may have different implementations) may
hav edifferent properties; also, there is not one good usage (typescript
combination) of a specific font, esp now that we have many features

actually, talking about features, you need to keep in mind that even
when you define a specific instance, applying such an instance to a
whole document might fail because some features may not cover the whole
possible set of combinations of characters (take frac as an example) and
so usage demands knowlegde

eventually we may have a set of predefined typescripts that cover most
system fonts

On Wed, Dec 24, 2008 at 1:44 AM, Mohamed Bana
<mbana.lists@googlemail.com> wrote:
> hi,
>
> 1.
>
> what's the equivalent of the \usepackage{fullpage} for ConTeXt?
>
>
> 2.
>
> it would be convenient if LuaTeX supported typescripts like XeTeX does
> instead of having to define font synonyms, e.g.,
>
> \definetypeface[mainface][rm][Xserif][Warnock Pro]
> \definetypeface[mainface][ss][Xsans][Cronos Pro]
> \definetypeface[mainface][tt][Xmono][Inconsolata][default]%[rscale=0.9] %
> use only for Monaco
> %\definetypeface[mainface][mm][Xmath][palatino]
> \definetypeface[mainface][mm][math][palatino][default]%[encoding=texnansi]
> \setupbodyfont[mainface, 13pt]
>
>
> ___________________________________________________________________________________
> 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  : https://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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

end of thread, other threads:[~2008-12-24  4:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-23 17:44 fullpage and XeTeX typescript Mohamed Bana
2008-12-23 18:32 ` Wolfgang Schuster
2008-12-23 19:11 ` Wolfgang Schuster
2008-12-24  4:50 ` Yue Wang

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).