][features=cond] % this way, only
titles are condensed
\setuphead[chapter][style={\switchtobodyfont[titlefont,35pt]}]
\mainlanguage[de]
\starttext
\chapter{Dudelsackpfeifenmachergesellen sind lustige Leute}
Dudelsackpfeifenmachergeselle {\ss Dudelsackpfeifenmachergeselle
a bigger
x-height than Libertine
\definesimplefonttypeface[titlefont][aller][features=cond] % this way, only
titles are condensed
\setuphead[chapter][style={\switchtobodyfont[titlefont,35pt]}]
\mainlanguage[de]
\starttext
\chapter{Dudelsackpfeifenmachergesellen sind lustige Leute
] [sans] [myriadpro] [default]
\stoptypescript
\usetypescript[myriadpro]
\starttext
\switchtobodyfont[myriadpro,ss]
\sb Hello
\si Italic
\stoptext
--
Peter Park Nelson
peter.park.nel...@gmail.com
[myriadpro]
\definetypeface [myriadpro] [ss] [sans] [myriadpro] [default]
\stoptypescript
\usetypescript[myriadpro]
\starttext
\switchtobodyfont[myriadpro,ss]
\sb Hello
\si Italic
\stoptext
--
Peter Park Nelson
peter.park.nel...@gmail.com
typeface, the
\setupinterlinespace can than be omitted (my typescript package provides
support for Aller):
\usetypescriptfile[type-aller]
\starttext
\start \switchtobodyfont[aller-light,36pt]
Ich bin Blindtext. Von Geburt an. Es hat lange gedauert, bis ich begriffen
habe, was es bedeutet
=yes,align={normal,hyphenated}]
\setupinteraction[style=]
\define[2]\QuotationCommand
{
\setupindenting[no]
\switchtobodyfont[arial,10pt]
\textrule{#1}\blank \vfil\nobreak\penalty1\endgraf
\startcolumns#2\stopcolumns
\hspace \nobreak\penalty1000
\textrule
}
\definetypeface[braqqadocio][ss
Am 20.09.2011 um 09:09 schrieb Hans van der Meer:
I looked into the recent Fonts in Context book, but could not figure out how
to access characters directly in unicode. In my case this is inside a
MetaPost picture something like:
\switchtobodyfont[courier,24pt]
..
label (UNICODE
I looked into the recent Fonts in Context book, but could not figure out how to
access characters directly in unicode. In my case this is inside a MetaPost
picture something like:
\switchtobodyfont[courier,24pt]
..
label (UNICODE character U+2B06 here…
How to?
Hans van der Meer
[align=flushright,style={\switchtobodyfont[36pt,ss]}]
Very long title which
should cover two lines
\stoplines
\startstandardmakeup
\startlines[align=flushright,style={\switchtobodyfont[36pt,ss]}]
Very long title which
should cover two lines
\stoplines
\stopstandardmakeup
\startstandardmakeup[align
I have the following document:
\setupheader[
after={\startalignment[center]\hairline\stopalignment},
style={\switchtobodyfont[9pt]},
]
\setuplayout[
footer=0mm,
header=10mm,
]
\setupheadertexts[]
\setupheadertexts[Documentation for product XYZ –concept–]
[version: 2001
Cecil Westerhof
Gesendet: Dienstag, 19. Juli 2011 12:21
An: mailing list for ConTeXt users
Betreff: [NTG-context] Use of \hairline in the header
I have the following document:
\setupheader[
after={\startalignment[center]\hairline\stopalignment},
style={\switchtobodyfont[9pt
Am 19.07.2011 um 12:21 schrieb Cecil Westerhof:
I have the following document:
\setupheader[
after={\startalignment[center]\hairline\stopalignment},
style={\switchtobodyfont[9pt]},
]
\setupheader[text][after=\hairline,...]
Wolfgang
2011/7/19 Wolfgang Schuster schuster.wolfg...@googlemail.com
I have the following document:
\setupheader[
after={\startalignment[center]\hairline\stopalignment},
style={\switchtobodyfont[9pt]},
]
\setupheader[text][after=\hairline,...]
Works. Thanks.
--
Cecil Westerhof
for the titlepage then switch
to helvetica *in* the standardmakeup environment and don’t switch
font before and after the environment.
\setupbodyfont[palatino]
\startsetups[titlepage]
\switchtobodyfont[helvetica]
\stopsetups
\starttext
\startstandardmakeup[align=middle,setups=titlepage]
How
\start \kerncharacters[0.01]
\input zapf
\stop
\start \setupalign[hz]
\input zapf
\stop
\start \switchtobodyfont[9.8bp]
\input zapf
\stop
\stoptext
Wolfgang
___
If your question is of interest to others as well
On Thu, 2011-06-23 at 05:31 +0200, Wolfgang Schuster wrote:
Am 23.06.2011 um 01:33 schrieb John Haltiwanger:
Please take a look at the simplefonts module.
\usemodule[simplefonts]
\setmainfont[Ubuntu]
\switchtobodyfont[11pt]
(please correct me anyone, if I'm wrong).
Use
]
%\setmainfont[Ubuntu]
%\switchtobodyfont[11pt]
\definelayout
[fullpage]
[\c!backspace=0pt,
\c!topspace=0pt,
\c!width=\v!middle,
\c!height=\v!middle,
\c!header=0pt,
\c!footer=0pt]
\setuppagenumbering
[\c!alternative=\v!doublesided]
\def\startchapter#1%
{\chapter[#1]{#1}\index{#1
Please take a look at the simplefonts module.
\usemodule[simplefonts]
\setmainfont[Ubuntu]
\switchtobodyfont[11pt]
(please correct me anyone, if I'm wrong).
On Wed, Jun 22, 2011 at 4:10 PM, Kip Warner k...@thevertigo.com wrote:
Hey list,
I am trying to change the body font of my document
Am 23.06.2011 um 01:33 schrieb John Haltiwanger:
Please take a look at the simplefonts module.
\usemodule[simplefonts]
\setmainfont[Ubuntu]
\switchtobodyfont[11pt]
(please correct me anyone, if I'm wrong).
Use \setupbodyfont to change the font size for whole document,
\switchtobodyfont
should be typeset (drawn)
as lm sans, whereas the main font should be left untouched
(serif).
An alternative to Wolfgang's answer when you want to use complex font
definitions (or other complex commands) is to use \sometxt.
\usetypescript[iwona]
\definetextext[myfont]{\switchtobodyfont[iwona,ss
font should be left untouched
(serif).
·
\startMPenvironment %[global]
\switchtobodyfont[sans]
%\setupbodyfont[sans]
\stopMPenvironment
%\start\setupbodyfont[sans]
\startuseMPgraphic{bg}
verbatimtex \setupbodyfont[sans] etex
should be typeset (drawn)
as lm sans, whereas the main font should be left untouched
(serif).
·
\startMPenvironment %[global]
\switchtobodyfont[sans]
%\setupbodyfont[sans]
\stopMPenvironment
%\start\setupbodyfont[sans
On 2011-06-09 23:31:49, Wolfgang Schuster wrote:
Am 09.06.2011 um 23:20 schrieb Philipp Gesang:
snip/
·
\startMPenvironment %[global]
\switchtobodyfont[sans]
%\setupbodyfont[sans]
\stopMPenvironment
%\start
Hello,
I'm rather new to ConTeXt and would like to simplify my document, in
order to simplify processing of documents.
I have this:
\defineparagraphs[infos][n=1]
\setupparagraphs[infos][1][
style={\switchtobodyfont[6pt]},
%command=,
]
\starttext
\startinfos
\smash
Hello,
I'm rather new to ConTeXt and would like to simplify my document, in
order to simplify processing of documents.
I have this:
\defineparagraphs[infos][n=1]
\setupparagraphs[infos][1][
style={\switchtobodyfont[6pt]},
%command=,
]
\starttext
\startinfos
\smash
Am 03.06.2011 um 16:50 schrieb Stéphanie Vilayphiou:
Hello,
I'm rather new to ConTeXt and would like to simplify my document, in order to
simplify processing of documents.
I have this:
\defineparagraphs[infos][n=1]
\setupparagraphs[infos][1][
style={\switchtobodyfont[6pt
-sty
\startxmlsetups xml:body
\xmlflush{#1}
\stopxmlsetups
\startxmlsetups xml:lb
\MarText{\tfxx{xml linebreak numbers}}
\xmlflush{#1}
\stopxmlsetups
\definemargindata [MarText][right][color=red]
\startxmlsetups xml:div:arab
\setarabic{\switchtobodyfont[Arabic
}
\stopxmlsetups
\startxmlsetups xml:pb
\xmlflush{#1}
\stopxmlsetups
\startxmlsetups xml:lb
\MarText{\tfxx{xml pb/lb numbers}}
\xmlflush{#1}
\stopxmlsetups
\definemargindata [MarText][right][color=red]
\startxmlsetups xml:div:arab
\setarabic{\switchtobodyfont[Arabic] \xmlflush
the following, can
anyone
help me. Thanks
I use context --mode=screen test to compile the document
\starttext
\title[content]{mulu}
\placecontent
\chapter{One}
\setuppagenumbering
[style=\tfx, location=]
\startmode[screen]
\switchtobodyfont[8pt]
\setupfootertexts
[{haha}][{\goto{back
to have the
long titles on multiples lines being only single interline spaced (2.8ex).
Is there something I could add in the \setuplist[chapter] command ?
Thanks for any hint !
Something like this?
\setuplist[chapter][
label=yes,
alternative=c,style={\switchtobodyfont[10pt
hint !
Something like this?
\setuplist[chapter][
label=yes,
alternative=c,style={\switchtobodyfont[10pt]\bf\setuplocalinterlinespace[line=4.2ex]},
before={\blank[line]},after={\blank[halfline]}
]
\setuplist[section,subsection][
label=yes
this to the Wiki along other
tutorials for MKIV font usage, so as much information on the subject as
possible is appreciated.
You’re right, \switchtotypeface accepts all parameters
from \switchtobodyfont as second argument because the
commands pass it’s arguments to \switchtobodyfont.
Wolfgang
: 2011.05.18 22:26 MKIV
Why do you insist on \switchtotypeface when \switchtobodyfont works?
Here is a example which works on my machine (requires commercial fonts:
\starttext
\input ward\par
\switchtobodyfont[calluna,8pt]
\input ward\par
\switchtobodyfont[cambria,10pt]
\input ward\par
\stoptext
Wolfgang
Thanks to Wolfgang for the instructions on changing fonts, \switchtobodyfont
works as expected. I still
have to dig up the exact definitions of both \switchtobodyfont and
\switchtotypeface, as the latter command
seems to work in Hans' examples (for example showfont.pdf) but not with my
with the way I select
and use multiple fonts in the same document?
Try
\switchtotypeface[LeagueScript][12pt]
\switchtobodyfont[LeageScript]
and
\switchtotypeface[Pompadour][12pt]
\switchtobodyfont[Pompadour]
You can also replace (but check the output because
the spec-settings give sometimes
Try
\switchtotypeface[LeagueScript][12pt]
\switchtobodyfont[LeageScript]
Is \switchtobodyfont the recommended way of changing the typeface temporarily
anywhere in a document
(for example when making cover page graphics)? Its name implies only document
body.
Nevertheless, \switchtobodyfont
Am 21.05.2011 um 17:31 schrieb Otso Helenius:
Try
\switchtotypeface[LeagueScript][12pt]
\switchtobodyfont[LeageScript]
Is \switchtobodyfont the recommended way of changing the typeface temporarily
anywhere in a document
(for example when making cover page graphics)? Its name implies
...
Thanks!!
Matthieu
\starttext
\setupMPpage[offset=1pt]
\switchtobodyfont[10pt]
% Beginning MetaPost graphic
\startMPpage
label.top(btex 1.4 etex scaled 1.00, (10, 10));
label.top(btex $\sigma_t$ etex scaled 1.00, (0, 10));
label.top(btex $\displaystyle \frac{\sigma_t}{a}$ etex scaled
=1pt]
\switchtobodyfont[10pt]
% Beginning MetaPost graphic
\startMPpage
label.top(btex 1.4 etex scaled 1.00, (10, 10));
label.top(btex $\sigma_t$ etex scaled 1.00, (0, 10));
label.top(btex $\displaystyle \frac{\sigma_t}{a}$ etex scaled 1.00, (0, 10));
\stopMPpage
\stoptext
Error
]
\definebodyfont [10.5pt] [rm] [default]
\stoptypescript
\definebodyfontenvironment[10.5pt]
\usetypescript[times]
\setupbodyfont[times,10.5pt]
\setupfootnotes[bodyfont={rm,8.5pt}]
\definestartstop[quote]
[before={\setupnarrower[left=10pt,right=0pt]\startnarrower[left,right]\switchtobodyfont
* \starttext:
\definetypeface [times] [rm] [serif] [times] [default]
\definetypeface [times] [ss] [sans] [helvetica] [default] [rscale=2]
\setupbodyfont[times]
%\setupbodyfont[times,10.5pt] % fails
\starttext
%text {\ss text}
\setupbodyfont[10.5pt]
text {\ss text}
\switchtobodyfont[8.5pt]
text
is the name of the typescript, default is the character encoding.
\usetypescript[myfonts][default]
% Finally, use that typeface set, at 10pt base size.
% Calling setupbodyfont changes headers and footers as well as body text;
% switchtobodyfont just changes body text.
\setupbodyfont[nicefonts,10pt
is the character encoding.
\usetypescript[myfonts][default]
% Finally, use that typeface set, at 10pt base size.
% Calling setupbodyfont changes headers and footers as well as body text;
% switchtobodyfont just changes body text.
\setupbodyfont[nicefonts,10pt]
% And finally, the actual document
\setuppapersize[S6][S6]
\setuppagenumbering[state=stop]
\switchtobodyfont[modern,20pt]
\setupcolors[state=start]
\setupbackgrounds[page][background=color,backgroundcolor=darkblue]
\startcolor[white]
\setuptolerance[verytolerant,stretch]
\definecolor[a][r=0,g=0,b=1]
\definecolor[b][r=0,g=0,b=0.05
\definetypeface[mainface-\FontTestCounter][rm][specserif][#1]
\switchtobodyfont[mainface-\FontTestCounter]
\title{#1}
\startpacked
` Backtick\par
' Apostrophe\par
‘ Open curly quote\par
’ Close curly quote\par
- hyphen\par
– en dash\par
— em dash
\stoppacked
\blank
kerning. As you can see here it’s font
dependent:
\starttext
t/m
\switchtobodyfont[pagella]t/m
\switchtobodyfont[termes]t/m
\switchtobodyfont[iwona]t/m
\switchtobodyfont[antykwa-poltawskiego]t/m
\stoptext
Wolfgang
Am 19.03.2011 um 03:29 schrieb Cecil Westerhof:
At the moment I have I my document:
{\switchtobodyfont[1.25em]\bf M}ust
{\switchtobodyfont[1.25em]\bf S}hould
{\switchtobodyfont[1.25em]\bf C}ould
{\switchtobodyfont[1.25em]\bf N}ot now
But I like to have a macro for this, so I could
I thought I saw it once, but I can not find it. I like to use another
fontsize in my headers and footers. At the moment I have solved it in this
way:
\setupfootertexts[{\switchtobodyfont[6pt]Pagina \pagenumber \space van
\lastpage}]
But then I have to do this everywhere I change the text
Am 19.03.2011 um 15:08 schrieb Cecil Westerhof:
I thought I saw it once, but I can not find it. I like to use another
fontsize in my headers and footers. At the moment I have solved it in this
way:
\setupfootertexts[{\switchtobodyfont[6pt]Pagina \pagenumber \space van
\lastpage
2011/3/19 Wolfgang Schuster schuster.wolfg...@googlemail.com
I thought I saw it once, but I can not find it. I like to use another
fontsize in my headers and footers. At the moment I have solved it in this
way:
\setupfootertexts[{\switchtobodyfont[6pt]Pagina \pagenumber \space
van
At the moment I have I my document:
{\switchtobodyfont[1.25em]\bf M}ust
{\switchtobodyfont[1.25em]\bf S}hould
{\switchtobodyfont[1.25em]\bf C}ould
{\switchtobodyfont[1.25em]\bf N}ot now
But I like to have a macro for this, so I could just do:
\Acronym{Must Should Could Not~now}
Is more
On Sat, 19 Mar 2011, Cecil Westerhof wrote:
At the moment I have I my document:
{\switchtobodyfont[1.25em]\bf M}ust
{\switchtobodyfont[1.25em]\bf S}hould
{\switchtobodyfont[1.25em]\bf C}ould
{\switchtobodyfont[1.25em]\bf N}ot now
But I like to have a macro for this, so I could just do
2011/3/19 Aditya Mahajan adit...@umich.edu
On Sat, 19 Mar 2011, Cecil Westerhof wrote:
At the moment I have I my document:
{\switchtobodyfont[1.25em]\bf M}ust
{\switchtobodyfont[1.25em]\bf S}hould
{\switchtobodyfont[1.25em]\bf C}ould
{\switchtobodyfont[1.25em]\bf N}ot now
But I like
On Sat, 19 Mar 2011, Cecil Westerhof wrote:
2011/3/19 Aditya Mahajan adit...@umich.edu
On Sat, 19 Mar 2011, Cecil Westerhof wrote:
At the moment I have I my document:
{\switchtobodyfont[1.25em]\bf M}ust
{\switchtobodyfont[1.25em]\bf S}hould
{\switchtobodyfont[1.25em]\bf C}ould
2011/3/19 Aditya Mahajan adit...@umich.edu
\definestartstop
[FancyFirstLetter]
[style={\switchtobodyfont[big]\bf},
color=red]
\def\FancyUppercase#1%
{\dostartFancyUppercase#1\dostopFancyUppercase}
\def\dostartFancyUppercase#1#2\dostopFancyUppercase
{\FancyFirstLetter{#1}#2}
\def
as such.
It’s font related:
\starttext
\dontleavehmode\ruledhbox{$Q$}\ruledhbox{$Y$}\ruledhbox{$N$}
\switchtobodyfont[pagella]
\dontleavehmode\ruledhbox{$Q$}\ruledhbox{$Y$}\ruledhbox{$N$}
\switchtobodyfont[termes]
\dontleavehmode\ruledhbox{$Q$}\ruledhbox{$Y$}\ruledhbox{$N$}
\stoptext
Wolfgang
To me the space between 'Freed' and 'by' looks awkward:
\starttext
\startalignment[left]
\bgroup
\switchtobodyfont[72pt]
{\ss Freed \par
by \par
Design}
\egroup
\stoptext
-- Should I be using \start..\stoplines ? or is this a bug
2011/3/10 John Haltiwanger john.haltiwan...@gmail.com
To me the space between 'Freed' and 'by' looks awkward:
\starttext
\startalignment[left]
\bgroup
\switchtobodyfont[72pt]
{\ss Freed \par
by \par
Design}
\egroup
\stoptext
-- Should I be using
Am 10.03.2011 um 18:28 schrieb John Haltiwanger:
\startalignment[left]
\bgroup
\switchtobodyfont[72pt]
{\ss Freed \par
by \par
Design}
\egroup
\startlines[align=flushright,style={\switchtobodyfont[72pt,ss]}]
Freed
by
Design
\stoplines
Wolfgang
Thanks Verdan and Wolfgang. As I suspected, \startlines was the way to go.
On Thu, Mar 10, 2011 at 6:56 PM, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:
Am 10.03.2011 um 18:28 schrieb John Haltiwanger:
\startalignment[left]
\bgroup
\switchtobodyfont[72pt
Hi Mathew,
I looked at your example. I made some comments on \setuplayout and setup of
fonts \switchtobodyfont vs. \setupbodyfont.
Willi
On 9 Mar 2011, at 18:04, mathew wrote:
Hi. I recently returned to TeX after a 20 year absence, and decided ConTeXt
was the best choice of package
=12pt,rulecolor=red]
\starttext
\switchtobodyfont[60pt]
This is an \underbar{underlined} word.
\stoptext
___
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context
,rulethickness=12pt,rulecolor=red]
\starttext
\switchtobodyfont[60pt]
This is an \underbar{underlined} word.
\stoptext
But now it complains that setupbar is not recognized:
Undefined control sequence...
2
\setupbar[underbar][bottomoffset=2pt,rulethickness=12pt,rulecolor=red]
Am I still doing
,
color=red]
\starttext·
\switchtobodyfont[60pt]
This is an \underbar{underlined} word.·
\stoptext·
Thanks Wolfgang for your help!
___
If your question is of interest to others as well, please add an entry to the
Wiki
, %
backgroundcolor=gray:9]{\slidetitle{#1}}}
\usemodule[simplefonts]
\setmainfont[Helvetica]
\switchtobodyfont[20pt]
\definehead[slidetitle][subject]
\setuphead[slidetitle][style=\tfb,
color=lightsteelblue]
\def\SlideTitle#1{\page\framed[frame
}}}
\usemodule[simplefonts]
\setmainfont[Helvetica]
\switchtobodyfont[20pt]
\definehead[slidetitle][subject]
\setuphead[slidetitle][style=\tfb,
color=lightsteelblue]
\def\SlideTitle#1{\page\framed[frame=off, background=color, %
backgroundcolor=gray:9
it.
What am I missing here? The wiki didn't procure more information then the
manual.
Hans van der Meer
\setuppapersize[A5][A5]
\switchtobodyfont[20pt]
\starttext
\color[red]{hello} \quad
\color[green]{hello} \quad
\color[cyan]{hello} \quad
\showcolor[red]
\showcolor[green]
\showcolor[cyan
Why is the second color in the palet not showing up? I foolowed the example in the manual (section 6 page 6). Strange: adding a third color in the palet (see comment) now shows the first two! Off by one error in a loop?Hans van der Meer\setuppapersize[A5][A5]\switchtobodyfont[20pt]\definepalet[dvb
\switchtobodyfont[0.1pt] does has the spirit of ConTeXt ;-)
Anybody out there knowing how to do it?
Hans van der Meer
___
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist
\setupinterlinespace[height=0.2,depth=0] did not help and the kludge
\switchtobodyfont[0.1pt] does has the spirit of ConTeXt ;-)
Anybody out there knowing how to do it?
\setupinterlinespace[line=0.5mm] or use MetaPost (not sure what do you want).
Wolfgang
\switchtobodyfont[0.1pt]}
___
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
-screen\crlf\start\setupinterlinespace[line=0.5mm]}
does not work:
DOES WORK A BIT
\def\startdvbscreen{DVB-screen\crlf\start\switchtobodyfont[0.1pt]}
___
If your question is of interest to others as well, please add
[height=0.2,depth=0] did
not help and the kludge \switchtobodyfont[0.1pt] does has the spirit
of ConTeXt ;-) Anybody out there knowing how to do it?
maybe \lineskip=0pt helps?
Regards, Hartmut
___
If your question
be awesome.
2) To set the font size I do the following, is there a better solution
like bodyfont=xyz for definetyping or is it just fine like this?
\definevimtyping [PHP] [
syntax=php,
before={\switchtobodyfont[small]},
]
I think that the best idea is to add a style=..., and color
think that I should just be able to plug in
ConTeXt's line numbering mechanism.
2) To set the font size I do the following, is there a better solution like
bodyfont=xyz for definetyping or is it just fine like this?
\definevimtyping [PHP] [
syntax=php,
before={\switchtobodyfont[small
the following, is there a better solution like
bodyfont=xyz for definetyping or is it just fine like this?
\definevimtyping [PHP] [
syntax=php,
before={\switchtobodyfont[small]},
]
Marco
___
If your question
]
\usetypescript[palatino]
\switchtobodyfont[palatino,20pt]
\setupcolors[state=start]
\definelayer[myLayer]
[width=\paperwidth, height=\paperheight]
\startsetups layer
\setlayer[myLayer][preset=lefttop,x=0.9\paperwidth,y=0.96\paperheight]
{\switchtobodyfont[10pt
Am 18.02.2011 um 18:59 schrieb Vnpenguin:
\usetypescript[palatino]
\switchtobodyfont[palatino,20pt]
Replace this (both lines) with
\setupbodyfont[palatino,20pt]
Wolfgang
___
If your question is of interest
On Fri, Feb 18, 2011 at 19:03, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:
Am 18.02.2011 um 18:59 schrieb Vnpenguin:
\usetypescript[palatino]
\switchtobodyfont[palatino,20pt]
Replace this (both lines) with
\setupbodyfont[palatino,20pt]
Wolfgang
Wow, it works now.
Thank
Am 18.02.2011 um 19:08 schrieb Vnpenguin:
Wow, it works now.
You can also separate the style and content of a layer with \setlayerframed,
e.g.
\setlayerframed
[mylayer]
[x=...,
y=...,
frame=off,
style={\switchtobodyfont[10pt]}]
{text}
Wolfgang
=off,
style={\switchtobodyfont[10pt]}]
{text}
Thank you,
Regards
___
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
\switchtobodyfont[50pt]
START\setregisterentry[index][label={Index_Label}]%
Test\dorecurse{10}{This is one long, long paragraph. }%
STOP\finishregisterentry[index][label={Index_Label},entries={Index entry}]
Test
\stoptext
Does it work on your machines?
Is the syntax changed, do I have to add a certain
Hi,
in current beta (2011.02.11 18:18 MKIV) set-/finishregisterentry is killed:
Empty pagenumbers only!
Please run attached example.
Steffen
---
\placeindex[method=first,criterium=all,compress=yes]
\starttext
\switchtobodyfont[50pt]
START\setregisterentry[index][label={Index_Label
=on]
{\vbox{\headtext{chapter} #1\blank#2}}}
\stophiding
% headings
\definestartstop[dedication][style={\switchtobodyfont[dedication,20pt]},befo
re=\page]
\definehead [intro] [chapter]
\setuphead[chapter][style=\ss\bfd,alternative=middle,
command=\MyChapterCommand,
header=empty,footer=chapter
resulted in abject failure. I am clearly missing something.
\def\MyChapterCommand#1#2
{\switchtobodyfont[ss,30pt]
\hbox to \hsize {\stretched{Chapter\\One}}
\blank[small]
\switchtobodyfont[sansbold,20pt]
\hbox to \hsize {\stretched{It\\Was\\The\\Best\\Of\\Times}}}
\setuphead[chapter
. Numerous attempts at that have
resulted in abject failure. I am clearly missing something.
\def\MyChapterCommand#1#2
{\switchtobodyfont[ss,30pt]
\hbox to \hsize {\stretched{Chapter\\One}}
\blank[small]
\switchtobodyfont[sansbold,20pt]
\hbox to \hsize {\stretched{It\\Was\\The\\Best
] [chapter]
\definehead [dedication][chapter]
\setuphead[chapter][style=\ss\bfa,alternative=middle]
\setuphead[intro][number=no]
\setuphead[dedication][number=no,style={\switchtobodyfont[dedication,16pt]}]
\definecombinedlist [content][intro,chapter,section]
% pagenumbers
\setuppagenumbering
] [default]
\setupbodyfont[mainface]
% headings
\definehead [intro] [chapter]
\definehead [dedication][chapter]
\setuphead[chapter][style=\ss\bfa,alternative=middle]
\setuphead[intro][number=no]
\setuphead[dedication][number=no,style={\switchtobodyfont[dedication,16pt]}]
\definecombinedlist
chapters, sort of, in that the
chapter title isn't normally displayed and the body of the chapter is
printed in a different font than are the other chapters.
Add this to my example:
\definestartstop[dedication][style={\switchtobodyfont[dedication]}]
You can now write in your document
\dedication
={\switchtobodyfont[dedication]}]
You can now write in your document
\dedication{...}
and
\startdedeication
...
\stopdedication
Wolfgang
___
If your question is of interest to others as well, please add an entry to
the Wiki
of paragraph of text. Using a frame seems
like using a sledgehammer to pound a tack.
Why not?
\defineframedtext
[dedication]
[frame=off,
align=middle,
style={\switchtobodyfont[dedication]},
width=\textwidth]
You can also \setupalign to \definestartstop:
\definestartstop
[dedication
] [default]
\definetypeface [dedication] [rm] [serif] [chancery] [default]
\setupbodyfont[mainface]
% headings
\definestartstop[dedication][style={\switchtobodyfont[dedication,20pt]}]
\definehead [intro] [chapter]
\definehead [dedication][chapter]
\setuphead[chapter][style=\ss\bfd,alternative
Am 13.02.2011 um 21:40 schrieb Tom:
My intention is to indent all paragraphs that do not follow whitespace.
However, my code isn't making that happen. What am I doing wrong?
\definestartstop[dedication][style={\switchtobodyfont[dedication,20pt]}]
\definehead [dedication][chapter]
Don’t
={\switchtobodyfont[dedication,20pt]}]
\definehead [dedication][chapter]
Don't define two commands with the same name, \definestartstop[dedication]
was meant as alternative to \definehead[dedication]. To force a page break
you can add before=\page to \definestartstop.
\setupindenting[medium
]
\switchtobodyfont[serif]
\setuphead [chapter][style=sansbold, alternative=middle]
\definehead [intro][chapter]
\setuphead [intro][number=no]
\definecombinedlist [content][intro,chapter,section]
\setuphead[chapter][style=sansbold]
\starttext
{\cg Dedication}
\page
\completecontent
\intro{Introduction
]
\stoptypescript
\starttypescript [myriadpro]
\definetypeface [myriadpro] [ss] [sans] [myriadpro] [default]
\stoptypescript
\usetypescript[myriadpro]
\starttext
\switchtobodyfont[myriadpro,ss]
\sb Hello
\si Italic
\stoptext
[myriadpro] [ss] [sans] [myriadpro] [default]
\stoptypescript
\usetypescript[myriadpro]
\starttext
\switchtobodyfont[myriadpro,ss]
\sb Hello
\si Italic
\stoptext
___
If your question is of interest
That works. Now I get:
Cannot find Helvetica-Caps.mf
for Postscript font.
\usetypescriptfile[type-one]
\usetypescript[postscript][ec]
\setupbodyfont[postscript,12pt]
\starttext
\switchtobodyfont[ss]
\showbodyfont
\showbodyfontenvironment
\input knuth
\stoptext
Tom Benjey
717-258-9733 voice
717
lastrealpage is exactly the page
where the ending mark is set?
Attached you may find a minimal example.
Best,
Steffen
---
\starttext
\switchtobodyfont[50pt]
\input tufte \par
\setregisterentry[index][label={Index_Label}]%
Test\dorecurse{5}{This is are words, not paragraphs.
}\finishregisterentry
lastrealpage is exactly the page
where the ending mark is set?
Attached you may find a minimal example.
Best,
Steffen
---
\starttext
\switchtobodyfont[50pt]
\input tufte \par
\setregisterentry[index][label={Index_Label}]%
Test\dorecurse{5}{This is are words, not paragraphs.
}\finishregisterentry
801 - 900 of 1630 matches
Mail list logo