[NTG-context] your favourite ConTeXt debugging tools

2024-09-12 Thread Henning Hraban Ramm
There’s a growing number of trackers and directives, as well as \show… 
commands. I’m sure there are some that I could/should use and just don’t 
know, and there’s just too much to try.


Which are your hidden gems or favourite tools?

I’ll start:

\showlayout: inserts 4 pages of layout dimensions
\showmakeup: values of many details, e.g. distances and kerning
\showgrid: line grid for grid mode
\showframe: all frames
\showboxes: draw frames around a few areas
\showsetups: list of variables
\showbodyfont: variants of tha active font family
\showbodyfontenvironment: values of relative sizes
\showsymbolset[name]: list of symbols
\showstruts
\showcolor, \showcolorcomponents
\showpalet, \comparepalet
\showexternalfigures

\showtrackers – or "context --trackers"
\showdirectives – or "context --directives"


Trackers:
builders.hpack.overflow – mark under-/overfull hboxes
hyphenation.applied.visualize – show hyphenation
https://wiki.contextgarden.net/Trackers/typesetters.suspects
https://wiki.contextgarden.net/Trackers/visualizers.justification


Directives:
pdfview.method=auto (in contextcnf.lua) to change --autopdf default
logs.errors=* – make warnings errors(?)
logs.quitonerror=* – stop at every error
references.bookmarks.preroll – expand(?) macros in bookmarks
backend.pdf.nounicode=X – obfuscate text


Let’s fill in and complete
https://wiki.contextgarden.net/Trackers
(the list was made in 2012 and is quite outdated)

Hraban
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


Re: [NTG-context] Structure: multi-volume products

2022-12-16 Thread Richard Mahoney | Indica et Buddhica via ntg-context
Alan,

I'm attaching the two master files used for the following (also ran
cross refs between
each vol.):

Murugaiyan, Appasamy & Parlier-Renault, Édith (2021) (Eds) Whispering
of Inscriptions:
South Indian Epigraphy and Art History: Papers from an International
Symposium in
memory of Professor Noboru Karashima (Paris, 12–13 October 2017).
Oxford: Indica et
Buddhica. (2 vols)

https://indica-et-buddhica.com/publications/murugaiyan-appasamy-parlier-renault-edith/whispering-of-inscriptions-south-indian-epigraphy-and-art-history


Best, Richard


-- 
T +6433121699  M +64210640216
rmaho...@indica-et-buddhica.org
https://indica-et-buddhica.com/

Indica et Buddhica
Littledene  Bay Road  Oxford  NZ
NZBN: 9429041761809


-Original Message-
From: Alan Braslau via ntg-context 
Reply-To: mailing list for ConTeXt users 
To: mailing list for ConTeXt users 
Cc: Alan Braslau 
Subject: [NTG-context] Structure: multi-volume products
Date: Thu, 15 Dec 2022 20:23:36 -0700
Mailer: Claws Mail 3.19.0 (GTK+ 2.24.33; amd64-portbld-freebsd13.1)
X-Spam-Score: 0.0

Hello,

I have a book project that is being cut into two volumes (because it
is
too long and will be sold as a boxed set).

Each volume is presently a separate *product* in the project
structure.
I presently set the counters in the second volume using:

\setupheadnumber
  [part] [2]

\setupheadnumber
  [chapter] [5]

(I have multiple [5] parts in the project, and the first volume ends
with part 2 and chapter 5.)


1) Is this the right way to be handling this?

2) Any suggestions on how I can put a Table of Contents for the first
volume in the second volume?

Thanks!

Alan
__
_
If your question is of interest to others as well, please add an entry
to the Wiki!

maillist : ntg-context@ntg.nl /
https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
__
_

% master000.tex – ConTeXt MkIV Module

\startproduct master000

\project iebpmonographs

\environment ieb-c-layout-000

\environment monograph-local-layout

\usemodule[statistical-charts]

% \enabletrackers[typesetters.suspects]

% \showbodyfont

% \showbodyfontenvironment

\useexternaldocument[m001][master001][Whispering of Inscriptions,
Vol.~{\sc ii}]


\startfrontmatter

\component tlpg000

{

\setupheadtext[content=Contents of Vol.~i.]

\setupheadertexts[Contents of
Vol.~i.][pagenumber][pagenumber][Contents of Vol.~i.]

\noheaderandfooterlines

\completecontent

\PY

\PB

}

{

\setupheadtext[tables=Tables of Vol.~i.]

\setupheadertexts[Tables of Vol.~i.][pagenumber][pagenumber][Tables
of Vol.~i.]

\noheaderandfooterlines

\completelistoftables

\PY

\PB

}

{

\setupheadtext[figures=Figures of Vol.~i.]

\setupheadertexts[Figures of Vol.~i.][pagenumber][pagenumber][Figures
of Vol.~i.]

\noheaderandfooterlines

\completelistoffigures

\PY

}

\component ackn % A. Murugaiyan & E. Parlier-Renault

\component pref % A. Murugaiyan & E. Parlier-Renault

\component intr % Y. Subbarayalu

\stopfrontmatter


\startbodymatter

\setcounter[userpage][1]

\component chp02 % Y. Subbarayalu

\component chp01 % V. Gillet

\component chp03 % G. Vijayavenugopal

\component chp04 % E. Francis

\component chp05 % N. Athiyaman

\component chp06 % V. Selvakumar

\component chp07 % S. Rajavelu

\component chp08 % A. Murugaiyan

\component chp09 % S. Brocquet

\stopbodymatter


% \startbackmatter

% \component indx

% \stopbackmatter


\stopproduct
% master001.tex – ConTeXt MkIV Module

\startproduct master001

\project iebpmonographs

\environment ieb-c-layout-001

\environment monograph-local-layout

% \enabletrackers[typesetters.suspects]

% \showbodyfont

% \showbodyfontenvironment

\useexternaldocument[m000][master000][Whispering of Inscriptions,
Vol.~{\sc i}]


\startfrontmatter

\component tlpg001

{

\setupheadtext[content=Contents of Vol.~ii.]

\setupheadertexts[Contents of
Vol.~ii.][pagenumber][pagenumber][Contents of Vol.~ii.]

\noheaderandfooterlines

\completecontent

\PY

\PB

}

{

\setupheadtext[tables=Tables of Vol.~ii.]

\setupheadertexts[Tables of Vol.~ii.][pagenumber][pagenumber][Tables
of Vol.~ii.]

\noheaderandfooterlines

\completelistoftables

\PY

\PB

}

{

\setupheadtext[figures=Figures of Vol.~ii.]

\setupheadertexts[Figures of
Vol.~ii.][pagenumber][pagenumber][Figures of Vol.~ii.]

\noheaderandfooterlines

\completelistoffigures

\PY

}

\stopfrontmatter


\startbodymatter

\setcounter[userpage][1]

\component chp10 % P. Estienne

\component chp11 % V. Renganathan

\component chp12 % C. Schmid

\component chp13 % K. Rajan

\component chp14 % A. Davrinche

\component chp15 % M. Le Sauce-Carnis

\component chp16 % V. Olivier

\component chp17 % K. Ladrech

\component chp18 % E

[NTG-context] Undefined control sequence \bodyfontsizevariable

2022-10-30 Thread Henning Hraban Ramm via ntg-context

Latest LMTX, probably an error in mkxl/s-fonts-show.mkxl:


\starttext

\showbodyfont

\showbodyfontenvironment % error!

As you can see, the font class is called \quotation{\fontclass} and the 
bodyfont is typeset from \quotation{\fontname\font} in 
\the\globalbodyfontsize.


\stoptext


Hraban
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Lines in \showbodyfontenvironment

2019-02-17 Thread Tomas Hala

I have tested it on this code:

\definebodyfontenvironment
  [default] % or size
  [text=10pt,a=2,d=5,   % or other values 
]

\starttext
  ahoj {\bfa ahoj} {\bfd ahoj} ahoj

  \showbodyfontenvironment
\stoptext

Tomáš


Sun, Feb 17, 2019 ve 06:02:53PM +0100 Wolfgang Schuster napsal(a):
# Tomas Hala schrieb am 17.02.19 um 16:07:
# >Hi all,
# >
# >I played with \definebodyfontenvironment and found the command
# >\showbodyfontenvironment.
# >
# >Experimentally I changed parameters at \definebodyfontenvironment
# >and I am not able to understand the logic of the table generated
# >by the \showbodyfontenvironment.
# >
# >What is the meaning of lines in the table? Or is this published somewhere?
# 
# Do you have a minimal example?
# 
# 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Lines in \showbodyfontenvironment

2019-02-17 Thread Wolfgang Schuster

Tomas Hala schrieb am 17.02.19 um 16:07:

Hi all,

I played with \definebodyfontenvironment and found the command
\showbodyfontenvironment.

Experimentally I changed parameters at \definebodyfontenvironment
and I am not able to understand the logic of the table generated
by the \showbodyfontenvironment.

What is the meaning of lines in the table? Or is this published somewhere?


Do you have a minimal example?

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Lines in \showbodyfontenvironment

2019-02-17 Thread Tomas Hala
Hi all,

I played with \definebodyfontenvironment and found the command 
\showbodyfontenvironment.

Experimentally I changed parameters at \definebodyfontenvironment
and I am not able to understand the logic of the table generated 
by the \showbodyfontenvironment.

What is the meaning of lines in the table? Or is this published somewhere?

Best wishes,

Tomáš
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Iwona-Light error

2011-02-09 Thread Tom
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-243-0074 fax
blog: www.TomBenjey.com




-Original Message-
From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On
Behalf Of Mojca Miklavec
Sent: Wednesday, February 09, 2011 2:51 PM
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] Iwona-Light error

On Wed, Feb 9, 2011 at 20:37, Tom  wrote:
> I get the following error message when trying to use the iwona-light font
in
> MKII:
> Cannot find Iwona-CapsLight.mf.

In type-one.mkii it should have been:

\starttypescript [sans] [iwona-light] [name]
\setups[font:fallback:sans]
...
\definefontsynonym [SansCaps]   [Iwona-CapsLight-Regular]
\definefontsynonym [SansItalicCaps] [Iwona-CapsLight-Italic]

Instead of just Iwona-CapsLight and Iwona-CapsLightItalic.

Thanks for noticing.

Mojca

___
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

___

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


[NTG-context] Iwona-Light error

2011-02-09 Thread Tom
I get the following error message when trying to use the iwona-light font in
MKII:
Cannot find Iwona-CapsLight.mf.

Iwona and Iwona-Heavy load OK.

The following code demonstrates the problem:

\usetypescriptfile[type-one]
\usetypescript[iwona-light][ec]
\setupbodyfont[iwona-light,12pt]

\starttext

\showbodyfont
\showbodyfontenvironment
\input knuth

\stoptext

BTW, the new chapter on typography helps immensely. However, I am a bit
confused by table 1.7 which, among other things, states that "commercial
fonts are typeset in bold." It might be my old eyes, but I don't see
anything in that table typeset in bold. 

Tom Benjey
717-258-9733 voice
717-243-0074 fax
blog: www.TomBenjey.com





___
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] Determining available fonts

2011-01-06 Thread Taco Hoekwater

On 01/06/2011 05:04 PM, Tom wrote:

\showbodyfont&  \showbodyfontenvironment display details about a single
font. Which command lists or otherwise identifies fonts available for use on
a Tex Live MKII system? I want to find out what fonts have been loaded onto
my system. These would most likely be the standard fonts included with the
on-line download. The documentation shows me how to load additional fonts
but I don't yet know what is there by default.


There is nothing like that, because a command would not know where to 
start searching for installed fonts: it can hardly try all font names

out in the wild just to see which ones exist.

But the new reference manual chapter on fonts has a (perhaps slightly
outdated) list of available typescripts for mkii. You can try those
and see which ones work. The chapter is here:

http://context.aanhet.net/svn/contextman/context-reference/en/co-fonts.pdf

Best wishes,
Taco
___
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
___


[NTG-context] Determining available fonts

2011-01-06 Thread Tom
\showbodyfont & \showbodyfontenvironment display details about a single
font. Which command lists or otherwise identifies fonts available for use on
a Tex Live MKII system? I want to find out what fonts have been loaded onto
my system. These would most likely be the standard fonts included with the
on-line download. The documentation shows me how to load additional fonts
but I don't yet know what is there by default.

Tom Benjey
717-258-9733 voice
717-243-0074 fax
Twitter: @TomBenjey





___
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] Math and bold font

2010-12-05 Thread Procházka Lukáš

Hello,

thanks for the explanation -

On Sat, 04 Dec 2010 09:55:25 +0100, Hans Hagen  wrote:


On 3-12-2010 5:00, Procházka Lukáš Ing. - Pontex s. r. o. wrote:


to get slanted chars, I have to call \it or \sl or \bi explicitly. OK, I


In fact in math these are not font switches, but switches to a different
alphabet.  In traditional tex that normally is a font switch so one gets
the other bold or whatever shapes for free, given that they are in that
font (so it's a side effect of the way math alphabets are implemented),
but not so in open type math.

there is no default math font in mkiv: one uses regular math or bold
math (given that there are two font(set)s available which is seldom the
case) and within them gets bold or heavy alphabets (plus a few chars)


- So does it mean that the Vladimir's "cambria case" is exactly the seldom case 
when regular and bold math are available, both defining Greek chars like \alpha as well?


\setupbodyfont[cambria]

\starttext
This is a test.
$a=\alpha$
$\bf a=\alpha$
$\bi a=\alpha$
\stoptext


Please, could you give more examples of normal and bold math fonts "of the same 
kin" (to be used for normal and bold math), both having Greek letters as well?

- Vladimir showed "cambria". Unfortunately, his solution changes the entire 
document bodyfont (i.e. non-math font as well).

- What is the relationship to AMS fonts 
(http://www.ams.org/publications/authors/tex/amsfonts)? Or how to make them 
accessible in Ctx document? How to make them work?

- - On the site it's written: "... What is AMSFonts? ... *Subscript sizes of bold 
math italic and bold Greek letters* ... Because these fonts are standard TeX fonts, they 
may be used with any standard TeX system ... "

- - Wouldn't this be exactly what I'm looking for?

Maybe \setupformulas[] should do this? And what 
\definetypeface[] should precede?


best try to convert to the unicode math approach: bold a-z is different
unicode slots than a-z and in context the \bf command does that
transformation on ascii a-z (you can also key in the official unicode
chars); the benefit is that you can cut and paste the bold characters in
pdf files i.e. you retain that property; a bold b is not a bold one in
typographic sense but a special symbol that happens to use a bold
rendering; in for instance a section title, one can have all math bold,
and then this regular bold character will become real bold

Hans


I guess this approach won't be useful in my situation. I need to generate some 
math by Lua. There is a function that should generate a context formulas with 
mixed case and/or Greek letters, e.g.:

function t(var)
   context("$" .. var .. "\\alpha = {\\bf " .. -- Or something else instead of 
"bf"
   var "\\alpha}")
end

t("Abc")

So the variable name a priori cannot have information whether or not to be 
printed with regular or bold math - this is up to the function 't()'.

---

Now I'm trying to understand "This Way" (11/2003, mag-0005.pdf) where the mixed case is investigated. Also 
the "co-fonts.pdf"; but it seems to me that this document is a bit out-of-date and "mfonts.pdf" 
should be used instead. And also Mojca's presentation from Brejlov, the "some-thoughts-about-typescripts.pdf".

To be honest, I have a bit mess with fonts: I'm trying to deduce the 
relationship between:

"font script" (text/script/scriptscript?),

"font typescript" (serif, sans-serif, math, mono, other?),

"font size [marking]" (xx/x/?/a/b/c/d/e; ?/xsmall/small/?/?...?, 5pt, 
6pt... 40pt; ... at 6pt, ... at 20pt...; sixpoint,eightpoint,tenpoint... used in some 
commands),

"font weight" (light? semilight? normal/semibold/bold/extrabold?),

"font family",

"font typeface"

- When I look at the Figure 1 "The current bodyfont environment" in mfonts.pdf, 
I see:

\showbodyfontenvironment  %  [lbr]

[lucida]  [11.0pt]
text   script scriptscript x  xx small  biginterlinespace
20.7pt 14.4pt 12pt 17.3pt 14.4pt 17.3pt 20.7pt not set
17.3pt 12.1pt 8.6pt13.8pt 10.3pt 13.8pt 20.7pt not set
...

So what's the relationship between "text", "script", "scriptscript" (and?) "x", "xx", 
"small" and "big"?

Why size for the "script" on the first line is the same for "xx", "text" as for "big" and 
"x" the same as "small"?

Why doesn't work the same on the next lines as well?

- The abbreviations for [typefaces?]:

rm = ? RoMan? (means serif) (but also wrong "Regular Math" comes to 
place)
ss = Sans Serif
tt = TeleType (but means Mono as well)
mm = Math what

Re: [NTG-context] strange fontswitching error

2009-02-20 Thread Alan Stone
On Thu, Feb 19, 2009 at 10:36 PM, Hans Hagen  wrote:

> Alan Stone wrote:
>
>> Hi,
>>
>> BF = body font
>> HF = head font
>>
>> A = arial
>> T = times new roman
>> V = verdana
>>
>> OT = 12 = 12pt
>> OF = 14 = 14pt
>>
>> See comments in fontswitch.tex
>>
>> In attachment...
>>
>> - fontswitch.tex: minimal example
>> - tps_arial.tex, tps_timesnewroman.tex, tps_verdana.tex: typescripts
>> - fontswitch.log for BFT14 + HFV14 -> font error ( same with BFA14 + HFV14
>> )
>> - fontswitch.pdf for BFT14 + HFV14 : chapter head is blank ( same with
>> BFA14
>> + HFV14 )
>>
>> After testing different font(switching) combinations...
>>
>> - BFA14 or BFT14 + HFVx with x not 14pt compile and print the generated
>> pdf
>> fine
>> - BFV14 + HFV14 compiles and prints the generated pdf fine
>> - BFA12, BFT12, BFV12 + HFV14 or HFV12 compile and print the generated pdf
>> fine
>>
>> Qué passa ?
>>
>
> you use undefined typefaces; in mkii we default to an empty fontclass which
> in turn will trigger default fallbacks (i.e. the main bodyfont has no
> fontclass) while in mkiv we default to the 'modern' fontclass; i'm still not
> sure if it will be kept this way but if so, i'll make a fallback again (this
> time to a default fontclass)


At first I didn't understand a thing about your answer, however after
digging a bit further and finding out that when replacing 14pt with 14.4 pt
( re: \showbodyfontenvironment table ) it works again. Guess I now
understand what "fallbacks"means. :O)

For future reference...
http://en.wikipedia.org/wiki/Typeface
http://en.wikipedia.org/wiki/Fallback_font

Alan



> % \usetypescriptfile[tps_arial] \usetypescript[arial]
> \usetypescriptfile[tps_timesnewroman] \usetypescript[timesnewroman]
> \usetypescriptfile[tps_verdana]   \usetypescript[verdana]
>
> \def\myFontSizeOT{12pt}
> \def\myFontSizeOF{19pt}
>
> % \setupbodyfont[arial,\myFontSizeOT]
> % \setupbodyfont[timesnewroman,\myFontSizeOT]
> \setupbodyfont[verdana,  \myFontSizeOT]
>
> % \setupbodyfont[arial,\myFontSizeOF]
> % \setupbodyfont[timesnewroman,\myFontSizeOF]
> % \setupbodyfont[verdana,  \myFontSizeOF]
>
> % \setuphead[chapter][style={\switchtobodyfont[arial,\myFontSizeOT]}]
> %
> \setuphead[chapter][style={\switchtobodyfont[timesnewroman,\myFontSizeOT]}]
> % \setuphead[chapter][style={\switchtobodyfont[verdana,\myFontSizeOT]}]
>
> \setuphead[chapter][style={\switchtobodyfont[arial,\myFontSizeOF]}]
> %
> \setuphead[chapter][style={\switchtobodyfont[timesnewroman,\myFontSizeOF]}]
> % \setuphead[chapter][style={\switchtobodyfont[verdana,\myFontSizeOF]}]
>
> \starttext
>
> \chapter{First Chapter}
>
> \input knuth
>
___
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
___


[NTG-context] showbody* commands for non-bodyfonts ?

2008-07-14 Thread Alan Stone
Hi,

When using more than one font in a document, what is the corresponding

\showbodyfont

command for the non-bodyfont(s) ?

I tried

\showbodyfont[bodyfont](1)
\showbodyfont[non-bodyfont]  (2)

and only (1) gets processed and displayed.

Same question for \showbodyfontenvironment.

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


Re: [NTG-context] ConTeXt-ifying Kile

2008-01-02 Thread Matija Šuklje
 \setupTABLE
\setuptables[options]
\setuptabulate[name][options]
\setuptext[text|margin|edge][options]
# \setuptextbackground
\setuptextposition[name][settings]
\setuptextrules[options]
\setuptexttexts[text|margin|edge][text|section|date|mark|pagenumber][text|section|date|mark|pagenumber]
\setuptextvariable[name][options]
\setupthinrules[options]
\setuptolerance[options]
\setuptop[text|margin|edge][options]
\setuptoptexts[text|margin|edge][text|section|date|mark|pagenumber][text|section|date|mark|pagenumber]
\setuptype[options]
\setuptyping[file|typing|name][options]
\setupunderbar[options]
\setupurl[options]
\setupversions[options]
\setupwhitespace[none|small|medium|big|line|fixed|fix|dimension]
# \setvalue
# \setvariables
# \setxvalue
# \setxvariables
# \showaccents
\showbodyfont[settings]
\showbodyfontenvironment[settings]
# \showcharacters
\showcolor[name]
\showcolorgroup[name][horizontal|vertical|name|value|number]
\showexternalfigures[alternative=a|b|c]
\showfields[names]
# \showfont
\showframe[text|margin|edge]
\showgrid
# \showgridboxes
# \showgridsnapping
\showlayout
# \showlayoutcomponents
\showmakeup
\showpalet[name][horizontal|vertical|name|value]
\showprint[typesetting papersize][printing papersize][settings]
\showsetups
\showstruts
# \showstruts
\showsymbolset[name]
# \snaptogrid
\someline[reference]
\somewhere{text}{text}[reference]
\sort[text]{text}
\space
\splitfloat[settings]{text}{text}
# \splitstring
# \SR
# \start \stop
# \start \stop
\startalignment[width|left|right|middle|inner|outer|wide|broad|height|bottom|line|reset|hanging|nothanging|hyphenated|nothyphenated]
 \stopalignment
# \startarabicpar \stoparabicpar
# \startarabictext \stoparabictext
# \startappendices \stopappendices
\startbackground \stopbackground
# \startbackmatter \stopbackmatter
# \startbaselinecorrection \stopbaselinecorrection
# \startblockquote \stopblockquote
# \startbodymatter \stopbodymatter
\startbuffer[name] \stopbuffer
\startcolor[name] \stopcolor
\startcolumns[settings] \stopcolumns
\startcombination[matrix] \stopcombination
\startcomment[name][settings] \stopcomment
\startcomponent file \stopcomponent
\startdescription{text} \stopdescription
\startdocument[name] \stopdocument
\startenumeration \stopenumeration
\startenvironment file \stopenvironment
\startfact\fact text \\ text \\ text \\\fact text \stopfact
\startfigure[name][file][factor=number][frame=on|off] \stopfigure
\startfloattext[left|right|high|middle|low|offset|tall][reference]{text}{text} 
\stopfloattext
# \startFLOWcell \stopFLOWcell
# \startFLOWchart \stopFLOWchart
\startformula \stopformula
# \startframedcontent \stopframedcontent
\startframedtext[left|right|middle|none][settings] \stopframedtext
# \startfrontmatter \stopfrontmatter
# \starthanging \stophanging
\starthiding \stophiding
\startinteractionmenu[name] \stopinteractionmenu
\startitemgroup[name][options][settings] \stopitemigroup
# \startitemize \stopitemize
# \startitemize \stopitemize
# \startJScode \stopJScode
# \startJSpreamble \stopJSpreamble
# \startJSscripts \stopJSscripts
\startlegend[two]\leg text \\ text \\ text \\\leg \stoplegend
\startline[reference] \stopline
\startlinecorrection \stoplinecorrection
\startlinenumbering[continue] \stoplinenumbering
\startlines \stoplines
\startlocal \stoplocal
\startlocalenvironment \stoplocalenvironment
\startlocalfootnotes \stoplocalfootnotes
# \startlocalsetups \stoplocalsetups
\startmakeup[name][settings] \stopmakeup
\startmarginblock \stopmarginblock
\startmarginrule[number] \stopmarginrule
# \startmode \stopmode
# \startMPpage \stopMPpage
\startnamemakeup \stopnamemakeup
\startnarrower[left|middle|right] \stopnarrower
# \startnointerference \stopnointerference
# \startnotmode \stopnotmode
\startopposite \stopopposite
\startoverlay{text}{text} \stopoverlay
\startoverview[names] \stopoverview
\startpacked[blank] \stoppacked
\startparagraph \stopparagraph
\startpositioning \stoppositioning
\startpostponing \stoppostponing
\startproduct file \stopproduct
\startprofile[names] \stopprofile
\startproject file \stopproject
\startquotation[left|middle|right] \stopquotation
\startregister[text]{text+text+text} \stopregister
# \startsetups \stopsetups
# \startstandardmakeup \stopstandardmakeup
\startsymbolset[name] \stopsymbolset
\startsynchronization \stopsynchronization
\starttable[text|name] \stoptable
\starttables[text|name] \stoptables
\starttabulate[text][settings] \stoptabulate
# \startTEXpage \stopTEXpage
# \starttext \stoptext
# \starttextbackground \stoptextbackground
# \starttextdata \stoptextdata
\starttextrule[top|bottom]{text} \stoptextrule
\starttyping \stoptyping
\startunpacked \stopunpacked
\startversion[numbers] \stopversion
# \startXMLdata \stopXMLdata
# \startXMLignore \stopXMLignore
# \startXMLmapping \stopXMLmapping
\stretched{text}
# \strut
# \strutdepth
# \strutheight
# \struttedbox
\sub[references]
\subject[references]{text}
\subsection[references]{text}
\subsubject[references]{text}
\subsubsection[references]{text}
\subsubsubject[re

Re: [NTG-context] Making posters with ConTeXT

2006-05-24 Thread Johan Sandblom
Rugg, Shallice, Josephs, Dolan: Recollection and familiarity
in recognition memory: an eventrelated functional magnetic resonance
imaging study.  1999.  J Neurosci 19:3962\par
\stopbuffer

\setuppagenumbering[location=]
\setupindenting[none]



% Colors
\setupcolors[state=start, rgb=no, cmyk=yes]
\definecolor[tyellow]  [r=1,   g=1,   b=.2,  t=.3, a=1]
\definecolor[tyyellow] [r=.8,  g=.8,  b=.2,  t=.3, a=1]
\definecolor[tlightblue]   [r=.7,  g=.7,  b=1,   t=.3, a=1]
\definecolor[tlightred][r=1,   g=.7,  b=.7,  t=.3, a=1]
\definecolor[tlightgreen]  [r=.7,  g=1,   b=1,   t=.3, a=1]
\definecolor[tred] [r=1,   g=.2,  b=.2,  t=.7, a=1]
\definecolor[tbred][r=.7,  g=.15, b=0 ,  t=.7, a=1]
\definecolor[tbbred]   [r=.6,  g=.1,  b=0,   t=.7, a=1]
\definecolor[tbbbred]  [r=.5,  g=.1,  b=0,   t=.7, a=1]
\definecolor[tgreen]   [r=.2,  g=1,   b=.2,  t=.7, a=1]
\definecolor[tblue][r=.2,  g=.2,  b=1,   t=.7, a=1]
\definecolor[tgrey][s=.85,   t=.5, a=1]
\definecolor[twhite]   [s=1, t=.5, a=1]


% Backgrounds and layers
\setupbackgrounds [page] [background=pagegraphics]
\setupbackgrounds [text] [background=text]
\definelayer
   [pagegraphics]
   [x=2cm, y=2cm,
width=\paperwidth,
height=\paperheight]
\definelayer
   [text]
   [x=20mm, y=170mm,
width=801mm,
height=1029mm]

\setlayer[pagegraphics][preset=rightbottom]
%\setlayer[pagegraphics][corner={right,bottom}, location={left,top}]
{\switchtobodyfont[sans,12pt] \rotate[rotation=90]{
\tbbbred This poster was typeset with \ConTeXt\ }}

\setlayer[pagegraphics][x=20mm,y=200mm]
{\framed[frame=off,width=801mm,height=250mm,
 background=color,backgroundcolor=tbred]{}}
\setlayer[pagegraphics][x=20mm, y=440mm]
{\framed[frame=off,width=801mm,height=250mm,
 background=color,backgroundcolor=tbbred]{}}
\setlayer[pagegraphics][x=20mm, y=680mm]
{\framed[frame=off,width=801mm,height=250mm,
 background=color,backgroundcolor=tred]{}}
\setlayer[pagegraphics][x=20mm, y=920mm]
{\framed[frame=off,width=801mm,height=250mm,
  background=color,backgroundcolor=tbbred]{}}
%\setlayer[pagegraphics][x=660.8mm, y=200mm]
%{\framed[frame=off,width=160.2mm,height=94cm,
%  background=color,backgroundcolor=tred]{}}


% Fonts and shit
\enableregime[il1]
\definebodyfontenvironment[32pt]
\definebodyfontenvironment[40pt]
\definebodyfontenvironment[56pt]
%\definebodyfontenvironment[600pt]
% \definebodyfontenvironment[30pt]
% \definebodyfontenvironment[28pt]
\setupbodyfont[sansserif,32pt]



% Unless I say different ...
\setupframed[background=color,
frame=off,
align=width,
offset=15mm]

\definehead[BoxTitle][subject]
\setuphead[BoxTitle]
[textcommand=\BoxTitleCmd]
\def\BoxTitleCmd#1%
   {\framed[backgroundcolor=twhite, offset=10mm]{\blue #1}}\par
\setupcaptions[number=no]
\setupfloats[location=right]

% The title is not layered, and is placed in the ordinary manner
\starttext
%\setlayer[pagegraphics][corner={left,top}, location={right,bottom}]
\setlayer[pagegraphics][x=25mm, y=25mm]
{\externalfigure[KI][height=17cm]}
\setlayer[pagegraphics][x=20mm, y=20mm]
{\framed[backgroundcolor=tyyellow, width=183mm, height=1149mm]{}}
\framed[backgroundcolor=tyellow,
width=broad,
height=19cm,
offset=3cm,
align=left,
%bottom=\vfil,
%top=\vfil
]
{\switchtobodyfont[56pt] \tfd\bf {\darkred Remember/know
revisited}\crlf
   \vfil % \setupinterlinespace[height=.5]
   \switchtobodyfont[40pt]
\tfa Johan Sandblom$^*$,
Håkan Fischer$^\dag$,
Lars Bäckman$^\dag$, % \blank[small] %\\
Jesper Andersson$^*$, \crlf
Karl Magnus Petersson$^*$,
Martin Ingvar$^*$\crlf
\tfxx $^*$MR Research Centre and
$^\dag$Aging Research Centre,
Karolinska Institute, S-171 76 Stockholm, Sweden}
%\showbodyfontenvironment


%
%\showlayout
%\showframe
%\showgrid
\setlayer[text] [x=-10mm, y=1030mm] {
\framed[backgroundcolor=tlightred, width=820mm] {
\tfxx \getbuffer[References]}}
\setlayer[text] [x=0mm, y=780mm] {
\framed[backgroundcolor=twhite, width=350mm] {
\tfx \getbuffer[Methods]}}
\setlayer[text] [x=420mm, y=780mm] {
\framed[backgroundcolor=twhite, width=200mm] {
\tfx \getbuffer[DataAnal]}}
\setlayer[text] [x=580mm, y=500mm] {
\framed[backgroundcolor=tw

Re: [NTG-context] Where to find documents?

2005-09-23 Thread jjgod
Hans Hagen wrote:

> 
> mfonts.pdf (in show-man the one with green/red cover) 
> 
> Hans 

hmm, I mean, there are so many macros about define fonts,

\definefontsynonym
\definefont
\definebodyfont
\showbodyfontenvironment
\switchtobodyfont
\showbodyfont
\starttypescript
\stoptypescript
\definetypeface
\usetypescript
\definebodyfontenvironment
\setupbodyfont

What's their relation? I guess I need a more precisely
and clearly description, like the document for LaTeX NFSS.

Regards,
jjgod.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Learning ConTeXt, typical hurdle

2005-03-10 Thread Gerben Wierda
Maybe I should start a blog somewhere...

Anyway, I have started my "conversion to ConTeXT" project.

So, I used the fiee perl script to set up my project. Then I started to
fill things in. Everything is still in one directory (I do not understand
directory searching in ConTeXt yet and I haven't seen a example for a book
project).

So, I have a project file:

===
% output=pdf interface=en
\usemodule[bib]
\startproject project_teoada
\environment env_teoada

%  \showlayout
%  \showgrid
%  \showbodyfontenvironment

\product prd_book
\stopproject
===

A product file:

===
\startproduct prd_book
\project project_teoada

\startfrontmatter
\component c_introduction
\stopfrontmatter
\component c_chapter1
\component c_chapter2
\component c_chapter3
\component c_chapter4
\component c_chapter5
\component c_chapter6
\component c_chapter7
\startbackmatter
\component c_appendixa
\component c_appendixb
\stopbackmatter
\stopproduct
===

I defined a description environment to replace LaTeX's description. In the
environment file:
===
\startenvironment env_teoada
\project project_teoada

\definedescription [description]
[location=hanging, margin=standard, headstyle=bold]
\definestartstop [descriptions] [before=\blank\startpacked,
after=\stoppacked\blank]

\stopenvironment
===

And I put some info in c_introduction.tex. There I used the description
thingy:

===
\startcomponent c_introduction
\product prd_book
\project project_teoada

\starttext
\chapter[h:guide]{Guide}

\startdescriptions
\description{Chapter \in[h:ch1]} Bla bla
\description{Chapter \in[h:ch2]} Bla bla
\stopdescriptions

\stoptext

\stopcomponent
===

Now, this fails. Why? I was completely stumped. I get an error message I
do not understand:

references  : unknown reference [][h:ch2]
! Extra }, or forgotten \endgroup.
\stopdescriptions ->\dostopattributes \egroup
  \getvalue {\??be
descriptions\...
 Bla bla \stopdescriptions
 \@@stopdescription
{description}\stoptext

\dodowithpar ...cription}[]{Chapter \in [h:ch2]}#1
  \@@stopdescription
{descri...
l.14

? x

Now what turns out to solve this? Empty lines before \description and
\stopdescriptions

Though I like ConTeXt if I look at certain design aspects, behaviour that
depends on whitespace before a command frightens me.

G

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Font definitions.

2004-11-02 Thread Dirar BOUGATEF
Thanks Hans. I see my error now. I was using a typescript name where a 
fontsynonym name was needed.

I still have a question about \small and \big. i tried the 
\showbodyfontenvironment to see the sizes then tried this:

{\big Hello world}Hello world{\small Hello world}
I get the first and the second Hello world at the same size, where the fonts 
table shows that i should have \big at 14.3pt when my current size is at 12.

Is there any interest to define a new font environment in this case ?
This my example:
\usetypescriptfile[Karat.tex]
\usetypescript[karat]
\setupbodyfont[karat,ss,12pt]
\starttext
\showbodyfontenvironment
{\big Hello world}Hello world{\small Hello world}
\stoptext
Many thanks.
Dirar.
_
FREE pop-up blocking with the new MSN Toolbar - get it now! 
http://toolbar.msn.com/

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Setting up a typeface

2004-09-15 Thread Ulrich Dirr
Hi,

I've now studied the docs for a while and experimenting with a bunch of
settings but I'm still failing setting up typefaces correctly in ConTeXt.
Probably the font mechanism in ConTeXt is much more elaborate than with
LaTeX's NFSS. But I'm too stupid to understand it :-( Could someone please
help me?

My test case -- and it will be the sans serif part of my wish list --
should setup the Linotype HelveticaNeue as body font. The main part is not
very difficult to achieve.

The test file:
-
\setupoutput [pdftex]
\input pdftexconfig
\usetypescriptfile [type-NeueHelvetica]
\usetypescript[HelveticaNeue][ec]
\setupbodyfont[HelveticaNeueLT,ss,10pt]
\starttext
\showbodyfontenvironment[HelveticaNeueLT]
\showbodyfont[HelveticaNeueLT]
\stoptext
-

type-NeueHelvetica.tex:
-
\starttypescript [sans] [HelveticaNeue] [name]
\definefontsynonym [Sans] [HelveticaNeueLT-Roman]
\definefontsynonym [SansItalic]   [HelveticaNeueLT-Italic]
\definefontsynonym [SansBold] [HelveticaNeueLT-Bold]
\definefontsynonym [SansBoldItalic]   [HelveticaNeueLT-BoldItalic]   
[...]
\stoptypescript

\starttypescript [sans] [HelveticaNeue] [ec]
\definefontsynonym [HelveticaNeueLT-Roman]  [lhnr8t]  [encoding=ec]
\definefontsynonym [HelveticaNeueLT-Italic] [lhnri8t] [encoding=ec]
\definefontsynonym [HelveticaNeueLT-Bold]   [lhnb8t]  [encoding=ec]
\definefontsynonym [HelveticaNeueLT-BoldItalic] [lhnbi8t] [encoding=ec]
[...]
\stoptypescript

\starttypescript [HelveticaNeue][ec]
\usetypescript [sans] [HelveticaNeue] [name]
\usetypescript [sans] [HelveticaNeue] [size]
\stoptypescript

\starttypescript [HelveticaNeue] [ec]
\definetypeface [HelveticaNeueLT] [ss] [sans] [HelveticaNeue] [default]
[encoding=ec]
\stoptypescript
-

The next step should define destinct sizes for use in a project. And here
I'm always failing.

I've tried, e.g.,
\definebodyfontenvironment
  [9bp]
  [   text=9bp,
script=7bp,
  scriptscript=5bp,
 x=7bp,
xx=5bp,
   big=11bp,
 small=7bp,
  interlinespace=11bp]
or, e.g.,
\starttypescript [sans] [HelveticaNeue] [size]
\definebodyfont [10bp] [ss]
  [tf=Sans at 10bp,
   bf=SansBold,
   it=SansItalic,
   sl=SansItalic,
   bi=SansBoldItalic,
   bs=SansBoldItalic]
\stoptypescript

in all sizes I want, with and without definitions of \definebodyfont, but
never got what I want. 

How can I setup my typeface (regular, bold, etc.) to use the specific sizes
5,6,7,8,9.5,10,12,14,18,24,28 *bp*??? (And with correct dependencies)

I'm definitely not understanding how the general scheme works. And all
examples I've found always use the standard font sizes and the standard
measurement units.

Please help me!

Best regards,
Ulrich Dirr

P.S. are there predefined shortcuts for heavy, light, etc. variants?

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context