Re: [NTG-context] How to really force figure to appear "here"?

2023-05-24 Thread Henning Hraban Ramm via ntg-context

Am 21.05.23 um 15:17 schrieb Wolfgang Schuster via ntg-context:

Joel via ntg-context schrieb am 21.05.2023 um 15:11:
Here, I've created an example that does just that. I want the figure 
to appear immediately after the bold text. Even if a lot of whitespace 
is placed and the figure appears on the next page, that is fine, but I 
don't want the next group of text to appear until *after* the figure. 
This is really confusing my readers.


\starttext
    \input knuth
    \input knuth

    {\boldface This is a short note about the picture. It should 
appear right after this.}

 \placefigure[here,force]{caption}{
 \externalfigure[1.jpg][width=\textwidth]
    }


Get rid of the here keyword and use only force, you can't use both at 
the same time
and one gets ignored (depends whatever is first checked in the float 
mechanism).


I seem to remember it used to work and was even suggested. Then I’d 
consider it a bug/regression.


Does {bottom,force} make sense?

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] How to really force figure to appear "here"?

2023-05-21 Thread Wolfgang Schuster via ntg-context

Joel via ntg-context schrieb am 21.05.2023 um 15:11:
Here, I've created an example that does just that. I want the figure 
to appear immediately after the bold text. Even if a lot of whitespace 
is placed and the figure appears on the next page, that is fine, but I 
don't want the next group of text to appear until *after* the figure. 
This is really confusing my readers.


\starttext
    \input knuth
    \input knuth

    {\boldface This is a short note about the picture. It should 
appear right after this.}

 \placefigure[here,force]{caption}{
 \externalfigure[1.jpg][width=\textwidth]
    }


Get rid of the here keyword and use only force, you can't use both at 
the same time
and one gets ignored (depends whatever is first checked in the float 
mechanism).


\placefigure[force]{caption}{\externalfigure[1.jpg][width=\textwidth]}

Wolfgang

___
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] How to really force figure to appear "here"?

2023-05-21 Thread Joel via ntg-context
 Here, I've created an example that does just that. I want the figure to appear 
immediately after the bold text. Even if a lot of whitespace is placed and the 
figure appears on the next page, that is fine, but I don't want the next group 
of text to appear until *after* the figure. This is really confusing my readers.
\starttext
    \input knuth
    \input knuth

    {\boldface This is a short note about the picture. It should appear right 
after this.}
    \placefigure[here,force]{caption}{
        \externalfigure[1.jpg][width=\textwidth]
    }

    \input knuth
    \input knuth
    \input knuth
    \input knuth
    \input knuth
    \input knuth

\stoptext

--Joel

On Saturday, May 20, 2023 at 07:49:45 PM MDT, Joel via ntg-context 
 wrote:  
 
 I have been using \placefigure[here, force] to place some graphics, but its 
instead showing other text from the next section, then the picture. In testing, 
this is causing readers to be confused, as they expect to see a picture, but 
its somehow appearing two pages later. I don't care it it requires a huge blank 
area on the page before it, how can I make it so any text after 
\placefigure[here, force] doesn't appear before the figure?
--Joel
___
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
___
  ___
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] How do I define a smallcaps font?

2022-04-25 Thread Joel via ntg-context
 Replacing \smallcaps with \sc fixed it. I had assumed they were synonyms---the 
same as \bf vs \boldface, \it vs \italicface, but it seems they are different 
entirely?
Thanks!
--Joel

On Sunday, April 24, 2022, 11:19:10 AM MDT, Henning Hraban Ramm via 
ntg-context  wrote:  
 
 Am 24.04.22 um 16:21 schrieb Joel via ntg-context:
> I have a font that already comes with a smallcaps variant.
> 
> How do I define it?
> 
> I've tried the following, which I think should work from the 
> documentation I've seen, but doesn't:
> 
> 
> \starttypescript[serif]                            [garamond]
>      \definefontsynonym[Serif]                  
>   [file:/home/joel/.fonts/12/EBGaramond-Regular.otf]
>      \definefontsynonym[SerifBold]              
>   [file:/home/joel/.fonts/12/EBGaramond-Bold.otf]
>      \definefontsynonym[SerifItalic]              
>   [file:/home/joel/.fonts/12/EBGaramond-Italic.otf]
>      \definefontsynonym[SerifBoldItalic]          
>   [file:/home/joel/.fonts/12/EBGaramond-BoldItalic.otf]
>      \definefontsynonym[SerifCaps]              
>   [file:/home/joel/.fonts/13/EBGaramond12-AllSC.otf]
> \stoptypescript
> 
> \starttypescript[sans]                            [garamond]
>      \definefontsynonym[Sans]                  
>   [file:/home/joel/.fonts/12/EBGaramond-Regular.otf]
>      \definefontsynonym[SansBold]              
>   [file:/home/joel/.fonts/12/EBGaramond-Bold.otf]
>      \definefontsynonym[SansItalic]              
>   [file:/home/joel/.fonts/12/EBGaramond-Italic.otf]
>      \definefontsynonym[SansBoldItalic]          
>   [file:/home/joel/.fonts/12/EBGaramond-BoldItalic.otf]
>      \definefontsynonym[SansCaps]              
>   [file:/home/joel/.fonts/13/EBGaramond12-AllSC.otf]
> \stoptypescript
> 
> \starttypescript[garamond]
>      \definetypeface[garamond]                  
>   [rm][serif][garamond][default]
>      \definetypeface[garamond]                  
>   [ss][sans][garamond][default]
>      \definetypeface[garamond]                  
>   [mm][math][modern][default]
> \stoptypescript
> 
> \starttext
> 
>      This is regular text.
> 
>      {\smallcaps This should be in smallcaps.}
> 
>      {\WORD This should be regular text, but capitalized, not really 
> smallcaps.}
> 
> \stoptext

SerifCaps etc. works with the traditional \sc, don’t know about \smallcaps.

Are you sure your fonts are found?

mtxrun --script fonts --list --all --pattern=EBGaramond


If your regular OpenType font contains smallcaps, try:

\definefontfeature[mysmallcaps][default][
  smcp=yes, % smallcaps
  script=latn,
]

\starttypescript [serif] [garamond] [name]
...
\definefontsynonym [SerifCaps][EBGaramond-Regular][features=mysmallcaps]
...


Hraban
___
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
___
  ___
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] Metafun, difficulty with graphical element in the margin

2022-03-20 Thread Wolfgang Schuster via ntg-context
\setupwhitespace[2pt]
\stopsetups

\setupdelimitedtext
  [blockquote]
  [spacebefore=big,
 style=\directsetup{blockquote:style},
 indenting=none,
indentnext=yes]

\starttext
\chapter{Testing}
\input ward

\startblockquote
\input knuth

\stopblockquote

\input zapf

{\it This is what Italic letters look like.} {\bf And these are bold.}


\startblockquote
This is what it said, in {\it Italic} and {\bf bold} letters:

\bgroup
\it This is what Italic letters look like here.
\egroup

\bgroup
\bf This is what Bold letters look like here.
\egroup
\stopblockquote

\stoptext











\definelayer [testlayer]

\setupbackgrounds [text] [text] [background=testlayer]

%\setupbackgrounds[state=repeat]

\starttext

\setlayer [testlayer] [x=1cm,y=1cm] {Text background}

\dorecurse{4}{xxx\page}

\stoptext






\starttext

text {\italicface text {\boldface text} text} text

text {\it text {\bf text} text} text: here the third instance of text is in 
boldface, but not in italic boldface.

text {\it text {\bi text} text} text

\stoptext


\unprotect

\def\pack_layers_positioned_box_nop
  {\vpack
 {\writestatus{WOLF}{\getboxlly\b_layers}%
  \writestatus{WOLF}{\getboxllx\b_layers}%
  \vskip-\getboxlly\b_layers
  \hskip-\getboxllx\b_layers
  \hsize-\dimexpr\getboxllx\b_layers-\wd\b_layers\relax
  \ifconditional\c_pack_layers_repeated\copy\else\box\fi\b_layers}}

\protect

\setuppapersize[A4][A3]

\setuplayout[location=middle]

\definelayer
  [test]
  [%option=test,
   %method=fit,
   position=yes]

\setupbackgrounds [text] [text] [background=test]

\setupbackgrounds[state=repeat]

\starttext

text \setlayer[test]{layer} text

\page

text

\stoptext






\starttext

\startitemize[columns,three]
\startitem One \stopitem
\startitem Two\par Three \stopitem
\stopitemize


\stoptext










\starttext

text {\italicface text {\boldface text} text} text

\stoptext




\unprotect

\def\page_backgrounds_set_boxes
  {\ifconditional\c_page_backgrounds_new
 \page_backgrounds_set_boxes_r
   \fi
   \doifbothsides
 \page_backgrounds_set_boxes_a
 \page_backgrounds_set_boxes_b
 \page_backgrounds_set_boxes_c
   \ifx\p_page_backgrounds_state\v!repeat\else
 \global\setfalse\c_page_backgrounds_new
   \fi}

\protect

%\definelayer [l_page]
\definelayer [l_text]

%\setupbackgrounds [page] [background=l_page]
\setupbackgrounds [text] [text] [background=l_text]

\setupbackgrounds[state=repeat]

\starttext

%\setlayer [l_page] [x=1cm,y=1cm] {Page background}
\setlayer [l_text] [x=1cm,y=1cm] {Text background}

\tracingmacros1
\dorecurse{4}{xxx\page}
\tracingmacros0

\stoptext







\showgrid

\starttext

\samplefile{lorem}

\page

\start \setupinterlinespace[2]% 2 lines, also possible: 1.5, 3, ...
\samplefile{lorem}\par
\stop

\page

\start \setupinterlinespace[line=5.6ex]% also possible: 
\setupinterlinespace[5.6ex]
\samplefile{lorem}\par
\stop

\stoptext



\starttexdefinition RemovePreceding #1
\removeunwantedspaces
#1
\stoptexdefinition

\starttexdefinition RemoveFollowing #1
#1
\ignorespaces
\stoptexdefinition

\starttext

Bla \RemovePreceding{Bla} Bla

Bla \RemoveFollowing{Bla} Bla

\stoptext



\starttexdefinition Italic #1
\emphasized{#1}
\autoinsertnextspace
\stoptexdefinition

\starttexdefinition Underbar #1
\underbar{#1}
\stoptexdefinition

\starttext

Bla Bla Bla

\Underbar{\Italic{Bla} , Bla Bla.}

\stoptext





\startxmlsetups xml:test
\xmlsetsetup{#1}{*}{-}
\xmlsetsetup{#1}{article|p|italic|underline}{xml:*}
\stopxmlsetups

\xmlregistersetup{xml:test}

\startxmlsetups xml:article
\starttext
\xmlflush{#1}
\stoptext
\stopxmlsetups

\startxmlsetups xml:p
\xmlflush{#1}\par
\stopxmlsetups

\startxmlsetups xml:italic
\emph{\xmlflush{#1}}
\stopxmlsetups

\startxmlsetups xml:underline
\underbar{\xmlflush{#1}}
\stopxmlsetups

\startbuffer[test]


Bla Bla Bla


Bla
, Bla Bla.

\stopbuffer

\starttext
\xmlprocessbuffer{test}{test}{}
\stoptext
___
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] Odd Font Behavior in startstop Group

2022-02-06 Thread Wolfgang Schuster via ntg-context

Michael Urban via ntg-context schrieb am 05.02.2022 um 20:28:

I am experiencing an odd behavior switching text styles in a defined startstop group 
("blockquote").   I get different behavior depending on whether the 
switchtobodyfont in the startstop definition includes the dummy {\it } and {\bf } text.   
If they are not there, the italic and boldface switches in the second blockquote revert 
to the gyreschola body font of the main text; but this only happens if there is an 
earlier blockquote with no style changes.  This is with:

[...]

Do I need a newer version of ConTeXt, or am I doing something wrong?
Fonts in ConTeXt are always perilous, alas.  For me, anyway.


\definefallbackfamily[story][serif][notoserif][range={greekandcoptic,greekextended},force=yes]
\definefontfamily[story][serif][TeX Gyre Schola]


The following two font settings are wrong, you're passing the name of a 
typescript for the third argument while \definefontfamily expects the 
family name of a font.


Even though the usage of the command is wrong you didn't notice it 
because as a fallback \definefontfamily uses the Latin Modern version of 
the requested style when no font was found.



\definefontfamily[story][sans][modern]
\definefontfamily[story][mono][modern]


The correct settings for both settings are

    \definefontfamily [story] [sans] [Latin Modern Sans]
    \definefontfamily [story] [mono] [Latin Modern Mono] [features=none]

with the "features=none" for the mono font to ensure no ligatures are 
formed.


An alternative for \definefontfamily is to use \definetypeface and 
choose a predefined typescript for the Latin Modern family. You can 
either use


    \definetypeface [story] [ss] [sans] [modern] [default]
    \definetypeface [story] [ss] [mono] [modern] [default]

which uses the 10pt optical size even for smaller and bigger sizes or 
you enable optical sizes with the following typescript


    \definetypeface [story] [ss] [sans] [modern-designsize] [default]
    \definetypeface [story] [ss] [mono] [modern-designsize] [default]



\definefontfamily[story][mm][TeX Gyre Pagella Math]


I recommend to load the math font with the provided typescript because 
they ensure existing patches (e.g. spacing corrections) for the selected 
font are applied.


    \definetypeface [story] [mm] [math] [pagella] [default]


\setupbodyfont[story,11pt]

\definestartstop[blockquote]
  [
   before={ \blank \startnarrower \setupwhitespace[2pt] \setupindenting[none]
\switchtobodyfont[termes]{\it }{\bf }% This is so weird.  Put a 
comment marker after [termes] for a different result
   },
   after={ \stopnarrower \blank \indenting[next]},
  ]%


ConTeXt already provides a blockquote-environment which can be 
configured to have the same style as your custom environment.


\startsetups [blockquote:style]
    \switchtobodyfont[termes]
    \setupwhitespace[2pt]
\stopsetups

\setupdelimitedtext
  [blockquote]
  [spacebefore=big,
 style=\directsetup{blockquote:style},
 indenting=none,
    indentnext=yes]

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] Odd Font Behavior in startstop Group

2022-02-05 Thread Michael Urban via ntg-context
I am experiencing an odd behavior switching text styles in a defined startstop 
group ("blockquote").   I get different behavior depending on whether the 
switchtobodyfont in the startstop definition includes the dummy {\it } and {\bf 
} text.   If they are not there, the italic and boldface switches in the second 
blockquote revert to the gyreschola body font of the main text; but this only 
happens if there is an earlier blockquote with no style changes.  This is with:

$  context --version
mtx-context | ConTeXt Process Management 1.03
mtx-context |
mtx-context | main context file: 
/usr/local/texlive/texmf-local/tex/context/base/mkiv/context.mkiv
mtx-context | current version: 2020.03.10 14:44
mtx-context | main context file: 
/usr/local/texlive/texmf-local/tex/context/base/mkiv/context.mkxl
mtx-context | current version: 2020.03.10 14:44

Do I need a newer version of ConTeXt, or am I doing something wrong?
Fonts in ConTeXt are always perilous, alas.  For me, anyway.





\definefallbackfamily[story][serif][notoserif][range={greekandcoptic,greekextended},force=yes]
\definefontfamily[story][serif][TeX Gyre Schola]
\definefontfamily[story][sans][modern]
\definefontfamily[story][mono][modern]
\definefontfamily[story][mm][TeX Gyre Pagella Math]
\setupbodyfont[story,11pt]

\definestartstop[blockquote]
 [
  before={ \blank \startnarrower \setupwhitespace[2pt] \setupindenting[none]
   \switchtobodyfont[termes]{\it }{\bf }% This is so weird.  Put a 
comment marker after [termes] for a different result
  },
  after={ \stopnarrower \blank \indenting[next]},
 ]%
\starttext
\chapter{Testing}
\input ward

\startblockquote
\input knuth

\stopblockquote

\input zapf

{\it This is what Italic letters look like.} {\bf And these are bold.}


\startblockquote
This is what it said, in {\it Italic} and {\bf bold} letters:

\bgroup
\it\noindent This is what Italic letters look like here.
\egroup

\bgroup
\bf\noindent This is what Bold letters look like here.
\egroup
\stopblockquote
\stoptext

___
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] Why isn't bold + italics working together?

2022-01-29 Thread Otared Kavian via ntg-context


> On 29 Jan 2022, at 18:03, Denis Maier via ntg-context  
> wrote:
> 
> IDK, but then it's probably a font issue?
> […]
> This thread is outdated, you can now stack styles.
> 
> \starttext
> 
> text {\italicface text {\boldface text} text} text
> 
> \stoptext
> 
> Wolfgang

However there seems to be an inconsistency, as in the example below: in this 
particular example it is better to use explicitely \bi to have bold italic.

\starttext

text {\italicface text {\boldface text} text} text

text {\it text {\bf text} text} text: here the third instance of text is in 
boldface, but not in italic boldface.

text {\it text {\bi text} text} text

\stoptext

Best regards: Otared
___
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] Why isn't bold + italics working together?

2022-01-29 Thread Denis Maier via ntg-context
IDK, but then it's probably a font issue?

Denis

Von: ntg-context  im Auftrag von Wolfgang Schuster 
via ntg-context 
Gesendet: Samstag, 29. Januar 2022 17:57:17
An: mailing list for ConTeXt users; Adam Reviczky via ntg-context
Cc: Wolfgang Schuster; Adam Reviczky
Betreff: Re: [NTG-context] Why isn't bold + italics working together?

Adam Reviczky via ntg-context schrieb am 29.01.2022 um 17:19:
> Hi Joel,
>
> I don't think you can stack those, just use \bi (see:
> https://wiki.contextgarden.net/Font_Switching)
>
> \starttext
> \startitemize
> \item This text has {\bf bold} in it.
> \item This text has {\it italics} in it.
> \item Why doesn't this have {\bi bold and italics} in it?
> \stopitemize
>
> See also: https://www.mail-archive.com/ntg-context@ntg.nl/msg4.html

This thread is outdated, you can now stack styles.

\starttext

text {\italicface text {\boldface text} text} text

\stoptext

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
___
___
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] Why isn't bold + italics working together?

2022-01-29 Thread Wolfgang Schuster via ntg-context

Adam Reviczky via ntg-context schrieb am 29.01.2022 um 17:19:

Hi Joel,

I don't think you can stack those, just use \bi (see: 
https://wiki.contextgarden.net/Font_Switching)


\starttext
\startitemize
\item This text has {\bf bold} in it.
\item This text has {\it italics} in it.
\item Why doesn't this have {\bi bold and italics} in it?
\stopitemize

See also: https://www.mail-archive.com/ntg-context@ntg.nl/msg4.html


This thread is outdated, you can now stack styles.

\starttext

text {\italicface text {\boldface text} text} text

\stoptext

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] Question on style-italic vs style=italicface

2021-10-24 Thread Wolfgang Schuster via ntg-context

Henning Hraban Ramm via ntg-context schrieb am 02.10.2021 um 11:46:

Am 02.10.2021 um 10:34 schrieb Wolfgang Schuster via ntg-context 
:

Rik Kabel via ntg-context schrieb am 27.09.2021 um 00:49:

Wolfgang (off-list),

It is simply wrong to say that \italicface as defined gives only \it or \bi as 
a result. Look at the definition. If the current fontalternative is it \it it 
will give a \tf result. It is sensitive to the current state in a similar way 
that \em and \emph are, but it will always give an italic or roman result.


If we leave the comparisons between \em and \italicface aside and talk only 
about the results from \italicface we have a common ground.

You're right the results from \italicface aren't predictable and a fix is 
needed but the same applies also to \boldface, \slantedface and \typeface.

Attached is the output from a modified version of the styling command (the \sc 
column is the fallback style). \swapface is unchanged and I'm not sure about 
its output because it uses the \em code for italic and slanted which means 
\setupbodyfontenvironment[default][em=blue] affects also the \swapface results.

Thank you very much for attacking and clarifying this! It confused me from the 
beginning...


Just a short update on the topic. The following four font switches 
result now in predictable output (e.g. \typeface produces always upright 
text which is either \tf or \bf):


    - \typeface
    - \italicface
    - \slantedface
    - \boldface

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] Question on style-italic vs style=italicface

2021-10-02 Thread Henning Hraban Ramm via ntg-context

> Am 02.10.2021 um 10:34 schrieb Wolfgang Schuster via ntg-context 
> :
> 
> Rik Kabel via ntg-context schrieb am 27.09.2021 um 00:49:
>> 
>> Wolfgang (off-list),
>> 
>> It is simply wrong to say that \italicface as defined gives only \it or \bi 
>> as a result. Look at the definition. If the current fontalternative is it 
>> \it it will give a \tf result. It is sensitive to the current state in a 
>> similar way that \em and \emph are, but it will always give an italic or 
>> roman result.
>> 
> 
> If we leave the comparisons between \em and \italicface aside and talk only 
> about the results from \italicface we have a common ground.
> 
> You're right the results from \italicface aren't predictable and a fix is 
> needed but the same applies also to \boldface, \slantedface and \typeface.
> 
> Attached is the output from a modified version of the styling command (the 
> \sc column is the fallback style). \swapface is unchanged and I'm not sure 
> about its output because it uses the \em code for italic and slanted which 
> means \setupbodyfontenvironment[default][em=blue] affects also the \swapface 
> results.

Thank you very much for attacking and clarifying this! It confused me from the 
beginning...

Hraban
___
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] Question on style-italic vs style=italicface

2021-10-02 Thread Wolfgang Schuster via ntg-context

Rik Kabel via ntg-context schrieb am 27.09.2021 um 00:49:


Wolfgang (off-list),

It is simply wrong to say that \italicface as defined gives only \it 
or \bi as a result. Look at the definition. If the current 
fontalternative is it \it it will give a \tf result. It is sensitive 
to the current state in a similar way that \em and \emph are, but it 
will always give an italic or roman result.




If we leave the comparisons between \em and \italicface aside and talk 
only about the results from \italicface we have a common ground.


You're right the results from \italicface aren't predictable and a fix 
is needed but the same applies also to \boldface, \slantedface and 
\typeface.


Attached is the output from a modified version of the styling command 
(the \sc column is the fallback style). \swapface is unchanged and I'm 
not sure about its output because it uses the \em code for italic and 
slanted which means \setupbodyfontenvironment[default][em=blue] affects 
also the \swapface results.


Wolfgang



emphasis.pdf
Description: Adobe PDF document
___
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] Question on style-italic vs style=italicface

2021-09-26 Thread Rik Kabel via ntg-context

Wolfgang (off-list),

It is simply wrong to say that \italicface as defined gives only \it or 
\bi as a result. Look at the definition. If the current fontalternative 
is it \it it will give a \tf result. It is sensitive to the current 
state in a similar way that \em and \emph are, but it will always give 
an italic or roman result.


--
Rik

On 9/26/2021 18:37, Wolfgang Schuster via ntg-context wrote:

Rik Kabel via ntg-context schrieb am 27.09.2021 um 00:20:


So, I am asking whether, in places where folks often use 
style=italic, it might be better to consider style=italicface.


Bug report: \meaning\italicface gives:

protected macro:\relax \ifx \fontalternative \s!tf \it \orelse
\ifx \fontalternative
\s!bf \bi \else \tf \fi

This leaves out the transition from bi to bf. That transition is done 
by \emph, but \emph may give slanted while \italicface is always italic.




The \italicface command uses either \it or \bi as result but it never 
result in upright text and the "italic" in the name tells you this, 
there are commands (e.g. \boldface) with similar results. To get a 
slanted style you have to use the \slantedface command.


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
__
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] Question on style-italic vs style=italicface

2021-09-26 Thread Wolfgang Schuster via ntg-context

Rik Kabel via ntg-context schrieb am 27.09.2021 um 00:20:

On 9/26/2021 16:29, Wolfgang Schuster via ntg-context wrote:

Rik Kabel via ntg-context schrieb am 26.09.2021 um 22:13:


Hello list mavens,

What are the circumstances under which style=italicface should be 
used instead of style=italic. I note a difference when I define 
highlighting. I expected to see no difference in the line before and 
line after the hairline the example below, but see that italicface 
adapts to nesting, while italic does not:


Are there other places where this makes a difference?

\setupbodyfontenvironment
        [default]
    [em=italicface] %same with italic for this example
\definehighlight
    [emIt]
    [style=italic]
\definehighlight
    [emIf]
    [style=italicface]
\definehighlight
    [emEm]
    [style=\em]

\starttext

{\em abc {\em def} ghi}: \type{\em}

\emph{abc {\emph def} ghi}: \type{\emph}

\emEm{abc {\emEm def} ghi}: \type{\emEm \definehighlight[style=\em]}

\emIf{abc {\emIf def} ghi}: \type{\emIf
\definehighlight[style=italicface]}

\hairline

\emIt{abc {\emIt def} ghi}: \type{\emIt
\definehighlight[style=italic]}

\stoptext



The \em command has two special values which are allowed when you 
change the style with


    \setupbodyfontenvironment[default][em=...]

with the value "slanted" and "italic". When you choose one of them 
the result depends on the current weight (\tf or \bf) but with every 
other value you're just using whatever the style command/name provides.



When you pass "italicface" you're using a style which uses either \it 
or \bi dependant on the current weight. The result from the "italic" 
value doesn't depend on the behavior or the normal italic style (\it) 
which is the reason why you get different result when you use \em 
compared with \it.



Example:

\starttext

\tex{it}: normal {\it italic} {\bf bold {\it italic}}

\tex{italicface}: normal {\italicface italic} {\bf bold {\italicface 
italic}}


\tex{em}: normal {\em italic} {\bf bold {\em italic}}

\stoptext


Wolfgang 



Wolfgang,

I understand that mechanism, but I am asking a different question, I 
think.


When we specify style=\em or style=italic (and most examples I see use 
the later) in a setup of some sort, I think most folks expect similar 
behavior, but clearly it is not because italic does not track changes 
in emphasis. However, style=italicface does seem to match the behavior 
of style=\em (mostly, see the bug report below).




The basic font commands are \tf, \it, \sl, \bf, \bs and \bi and when you 
want for example bold italic text you always have to use \bi even the 
current text is already bold because \it produces normal italic text.


\em is a special case because it affects also italic text:

\starttext

\startlines
\tf normal {\em emphasized}
\sl slanted {\em emphasized}
\it italic {\em emphasized}
\bf bold {\em emphasized}
\bs bold slanted {\em emphasized}
\bi bold italic {\em emphasized}
\stoplines

\stoptext

So, I am asking whether, in places where folks often use style=italic, 
it might be better to consider style=italicface.


Bug report: \meaning\italicface gives:

protected macro:\relax \ifx \fontalternative \s!tf \it \orelse
\ifx \fontalternative
\s!bf \bi \else \tf \fi

This leaves out the transition from bi to bf. That transition is done 
by \emph, but \emph may give slanted while \italicface is always italic.




The \italicface command uses either \it or \bi as result but it never 
result in upright text and the "italic" in the name tells you this, 
there are commands (e.g. \boldface) with similar results. To get a 
slanted style you have to use the \slantedface command.


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] Additional font variants

2021-08-01 Thread Henning Hraban Ramm via ntg-context
Hi, I’m trying to set up a “handwriting” font.

In the example below I’m using Comic Sans, because probably everyone has it 
available, IRL I’m using the commercial “Supernett Cn” that has more styles. 
(Also, I’m using Alegreya Serif + Sans.)

If I name it "ss/sans/Sans", it works as expected, but with 
"hw/handwriting/Handwriting" it only uses the regular font, never other styles.

"mtxrun --script fonts ..." shows that the configured files are found.

Is this a limitation in ConTeXt, or what did I wrong?

Hraban


\starttypescript [handwriting] [comicsans]
  %\setups[font:fallback:serif]
  \definefontsynonym[ComicSans-Regular]  [file:comic.ttf]
  \definefontsynonym[ComicSans-Italic]   [file:comicbd.ttf]
  \definefontsynonym[ComicSans-Bold] [file:comicbd.ttf]
  \definefontsynonym[ComicSans-BoldItalic]   [file:comicbd.ttf]
\stoptypescript

\starttypescript [handwriting] [comicsans] [name]
  %\setups[font:fallback:handwriting]
  \definefontsynonym [Handwriting]   [ComicSans-Regular]  
[features=default]
  \definefontsynonym [HandwritingItalic] [ComicSans-Italic]   
[features=default]
  \definefontsynonym [HandwritingBold]   [ComicSans-Bold] 
[features=default]
  \definefontsynonym [HandwritingBoldItalic] [ComicSans-BoldItalic]   
[features=default]
\stoptypescript

\starttypescript [ka]
  \definetypeface [ka] [rm] [serif] [modern] [default]
  \definetypeface [ka] [ss] [sans]  [modern]  [default]
  \definetypeface [ka] [tt] [mono]  [modern]   [default]
  \definetypeface [ka] [mm] [math]  [modern]   [default]
  \definetypeface [ka] [hw] [handwriting]  [comicsans]   [default]
\stoptypescript

\setupbodyfont[ka,rm,18pt]
\setupbodyfontenvironment[default][em=italicface]
\definehighlight[emph][style={\em}]
\definehighlight[strong][style=boldface]

\starttext

\startbuffer
Some Text \emph{emphasized} normal \strong{strong} \emph{emph \emph{inner emph} 
end}.
\stopbuffer

\getbuffer

{\switchtobodyfont[ss]\getbuffer}

{\hw\getbuffer}

{\switchtobodyfont[hw]\getbuffer}

\stoptext

___
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] styling individual parts of ToC entry

2020-09-05 Thread Henning Hraban Ramm

> Am 05.09.2020 um 03:35 schrieb jbf :
> 
> (1) the author's names lined up vertically throughout the ToC, and 

That would require to typeset the ToC as a table/tabulate; I remember that was 
hard to do, and I can’t remember in which product I used it, so I can’t look it 
up.

Maybe an \inframed of your desired width would be a solution?

e.g.
\inframed[width=5cm,frame=off,style=boldface,align=flushleft]{#1}%
\hskip 1cm%
\inframed[width=5cm,frame=off,align=flushleft]{\structurelistuservariable{author}}

(Untested)

> (2) the first part of the entry (e.g. Foreword) to be bold, but the author 
> name to be regular text.

If you need different styles within your textcommand (\TitleTocEntry), just set 
them there, i.e. \bold{#1} or {\bf #1}. Or as options of \inframed, as above.


Hraban
___
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] STIX vs XITS

2017-06-17 Thread Hans Åberg

> On 17 Jun 2017, at 13:03, Hans Hagen <pra...@wxs.nl> wrote:
> 
> On 6/17/2017 10:30 AM, Hans Åberg wrote:
>> It says that XITS is an OpenType version of STIX on [1], but the latter now 
>> supports it. Does that mean that one can now use the latter directly?
>> 1. http://wiki.contextgarden.net/Math_fonts
> i don't know as i never use those fonts in documents; maybe the design is 
> different; is xits maintained, that is the question ...

The glyphs should be the same.

> \usemodule[math-repertoire]
> 
> \showmathcharacterssetbodyfonts{xits,stixtwo,modern,pagella,termes,bonum,schola,dejavu}
> 
> \starttext
>\showmathfontrepertoire
> \stoptext
> 
> some chars in stixtwo are smaller, some larger, so not compatible

It is different font, so not compatible. Of the other fonts, STIX has very tall 
and narrow integral signs. There, Pagella looks better, but has strange looking 
Greek italic. There, Termes is even better, and nice weight on the sums, but 
has very narrow universal quantifiers. It has otherwise a nice weight in text 
boldface. Bonum has strange open Greek letters, and very thin, weird looking 
summation sign. I looked for serif DejaVu monospace, but could not find it: 
sans-serif thought to aid low resolution screens, but one is switching now.


___
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] overrule italics

2017-06-04 Thread Hans Hagen

On 6/2/2017 2:45 PM, Florian Grammel wrote:


I have a long text with section headers partly in italics and/or 
emphasis. I'd like to setup the formatting in a way that overrules these.


\setuphead[section][style=\tfb\up]

In LaTeX there would be \upshape/\textup -- is there an equivalent in 
ConTeXt?


Did you try \tf ?



yes I did, unfortunately it doesn't work


Otherwise \emph{italics \emph{upright} italics} should work (didn’t try).


Nested emph to invert works. But my text has both italicised and regular 
headers -- both should be printed upright with the modified style.


Even though I can modify them manually in this present case, something 
like \upshape would be good to have.
I uploaded a beta with a new option (in addition to an old one). I need 
to discuss with Wolfgang etc what default makes sense (topic for 
upcoming context meeting).


\usemodule[art-01]

\starttext

\startbuffer
\startbuffer[demo]
\start
\getbuffer[setup]
\subject{[ {\myslanted myslanted} ] [ {\it it} ] [ {\slanted 
slanted} ] [ $x=1$ ]}
[ {\myslanted myslanted} ] [ {\it it} ] [ {\slanted slanted} ] 
[ $x=1$ ]

\typebuffer[setup]
\blackrule[width=\textwidth,height=1pt,depth=0pt]
\stop
\stopbuffer

\startbuffer[setup]
\setuphead[subject][style=\tfb,before=,after=]
\definealternativestyle [myslanted] [\it] []
\stopbuffer

\getbuffer[demo]

\startbuffer[setup]
\setuphead[subject][style=\tfb,before=,after=]
\definealternativestyle [myslanted] [\it] [\bi]
\stopbuffer

\getbuffer[demo]

\startbuffer[setup]
\setuphead[subject][style=\tfb,before=,after=]
\definealternativestyle [myslanted] [\it] [\tf]
\stopbuffer

\getbuffer[demo]

\startbuffer[setup]
\definealternativestyle [myslanted] [\normalitalicface]
\setuphead[subject][style=bold,before=,after=]
\stopbuffer

\getbuffer[demo]

\startbuffer[setup]
\definealternativestyle [myslanted] [\normalitalicface]
\setuphead[subject][style=\bfd,before=,after=]
\stopbuffer

\getbuffer[demo]

\startbuffer[setup]
\definealternativestyle [myslanted] [\slantedface]
\setuphead[subject][style=boldface,before=,after=]
\stopbuffer

\getbuffer[demo]

\stopbuffer

\unprotect

\setupalternativestyles[method=normal] \getbuffer \page
\setupalternativestyles[method=auto]   \getbuffer \page

\starttyping
\emphasistypeface
\emphasisboldface

\normaltypeface== \typeface
\normalboldface== \boldface
\normalslantedface == \slantedface
\normalitalicface  == \italicface
\swaptypeface  == \swapface
\stoptyping

\stoptext





-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] Chapter-head: number, title and subtitle

2017-01-25 Thread Robert Blackstone
Dear all, 

This is  the upper half of a post I submitted on jan 7 with two questions 
(which was rather foolish of me), of which the second has already been answered 
by Aditya Mahajan. 
The first, still open, question was: 

Presently I’m restyling a PhD-dissertation to make it conform to the 
requirements of an external publisher.
One of the items is the content and layout of the chapter-heads.
What would be needed as a chapter-head, of Chapter 1 for instance, is, on two 
or, occasionally three, lines:

- Chapter 1  (midaligned, boldface, smallish size (\tfa))
- some vertical space
- Chapter title (midaligned, SmallCaps, slanted, \tfc)
- some vertical space
- (for some chapters) Chapter subtitle, (midaligned, SmallCaps, slanted, \tfb 
or smaller)

Can ConTeXt be tweaked to yield such a chapter-head?

Thanks in advance for any advice. 
Best regards,

Robert Blackstone
___
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] Chapter-subtitle and a short version of a( long) chapter title to fit in the header

2017-01-10 Thread Robert Blackstone
Dear all, 

Presently I’m restyling a PhD-dissertation to make it conform to the 
requirements of an external publisher.

One of the items is the form of the chapter-heads.
What would be needed on the first page of a chapter, Chapter 1 for instance, is:
 
- Chapter 1  (midaligned, boldface, smallish size (\tfa))
- some vertical space
- Chapter title (midaligned, SmallCaps, slanted, \tfc)
- some vertical space
- (for some chapters) Chapter subtitle, (midaligned, SmallCaps, slanted, \tfb 
or smaller)

Furthermore I would need a header with the chapter-title on the even-numbered 
pages and the section-title on the odd-numbered pages.
The problem here is that some of the chapter titles are too long for this and 
they overlap the pagenumbers in the header. 
That is why I would need a shorter form of the chapter title and in some cases 
a main title and a subtitle.

As far as I know, in the command to start a chapter there is no possibility to 
introduce, in addition to the special version of the title for the ToC, another 
special, shorter, version of the title for the header.   nor a subtitle. 

I use:

\startchapter[bookmark=,list={Accompaniment in the 16th and 17th century and 
the development of BC},marking=,reference=ch:HistDevel,title={Accompaniment in 
the sixteenth and seventeenth century and the development of basso 
continuo}]%[a=a,b=b]

For the headertexts I use what I found on  
http://wiki.contextgarden.net/Headers_and_Footers and it works quite well:

 %%%
\setupheadertexts[]
\setupheadertexts[\setups{text a}][][][\setups{text b}]

\startsetups[text a]
  \rlap{\sc \getmarking[section]}
  \hfill
  \llap{\pagenumber}
\stopsetups

\startsetups[text b]
  \rlap{\pagenumber}
  \hfill
  \llap{\sc \getmarking[chapter]}
\stopsetups
%%%

So my main problem is that I need, in the command \startchapter, a third form 
for the chapter title to fit in the header and a compatible version of the 
setup for the headertexts.

I did try to extract that from the ConTeXt wiki but I soon got lost.

Thanks  in advance for any help.

Best regards,

Robert Blackstone

___
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] font switches: bold, slanted, etc.

2016-02-13 Thread Wolfgang Schuster

Alan BRASLAU <mailto:alan.bras...@cea.fr>
13. Februar 2016 um 00:23
Hi,

Basic font switches are bold (\bf), italic (\it), slanted (\sl), ...
and one can have bolditalic (\bi), boldslated (\bs), etc.
We also have style=bold, style=slanted, etc.

Is there some way to manipulate font switches so that
\bold{This text is \slated{bold}}
for example, would put the word "bold" into boldslanted?

A natural use of this is, e.g. headers that get typeset in bold. What
if the title contains a word, say, in slanted (or, worse, some
mathematics)?


There are a few font switches which change the style dependant on the 
current style



\starttext

\starttabulate[|l|f{\tf}l|f{\it}l|f{\sl}l|f{\bf}l|f{\bi}l|f{\bs}l|]
\NC\NC \tttf \tex{tf} \NC \tttf \tex{it} \NC \tttf 
\tex{sl} \NC \tttf \tex{bf} \NC \tttf \tex{bi} \NC \tttf \tex{bs} \NC\NR
\NC\NC   Text \NC   Text \NC   
Text \NC   Text \NC   Text \NC   Text \NC\NR
\NC \tex{em}   \NC \em   Text \NC \em   Text \NC \em   
Text \NC \em   Text \NC \em   Text \NC \em   Text \NC\NR
\NC \tex{boldface} \NC \boldface Text \NC \boldface Text \NC \boldface 
Text \NC \boldface Text \NC \boldface Text \NC \boldface Text \NC\NR
\NC \tex{typeface} \NC \typeface Text \NC \typeface Text \NC \typeface 
Text \NC \typeface Text \NC \typeface Text \NC \typeface Text \NC\NR
\NC \tex{swapface} \NC \swapface Text \NC \swapface Text \NC \swapface 
Text \NC \swapface Text \NC \swapface Text \NC \swapface Text \NC\NR

\stoptabulate

\stoptext


but I guess you’re looking for something like this (similar to the LaTeX 
font system):



\unprotect

\def\texttf_direct
  {\ifx\fontalternative\s!it \tf \else
   \ifx\fontalternative\s!sl \tf \else
   \ifx\fontalternative\s!bi \bf \else
   \ifx\fontalternative\s!bs \bf \fi\fi\fi\fi}

\def\textbf_direct
  {\ifx\fontalternative\s!tf \bf \else
   \ifx\fontalternative\s!it \bi \else
   \ifx\fontalternative\s!sl \bs \fi\fi\fi}

\def\textit_direct
  {\ifx\fontalternative\s!tf \it \else
   \ifx\fontalternative\s!sl \it \else
   \ifx\fontalternative\s!bf \bi \else
   \ifx\fontalternative\s!bs \bi \fi\fi\fi\fi}

\def\textsl_direct
  {\ifx\fontalternative\s!tf \sl \else
   \ifx\fontalternative\s!it \it \else
   \ifx\fontalternative\s!bf \bs \else
   \ifx\fontalternative\s!bi \bs \fi\fi\fi\fi}

\def\textem_direct
  {\ifx\fontalternative\s!tf \it \else
   \ifx\fontalternative\s!it \tf \else
   \ifx\fontalternative\s!sl \tf \else
   \ifx\fontalternative\s!bf \bi \else
   \ifx\fontalternative\s!bi \bf \else
   \ifx\fontalternative\s!bs \bf \fi\fi\fi\fi\fi\fi}

\def\texttf_indeed{\bgroup\texttf_direct\let\nexttoken}
\def\textbf_indeed{\bgroup\textbf_direct\let\nexttoken}
\def\textit_indeed{\bgroup\textit_direct\let\nexttoken}
\def\textsl_indeed{\bgroup\textsl_direct\let\nexttoken}
\def\textem_indeed{\bgroup\textem_direct\let\nexttoken}

\unexpanded\def\texttf{\doifelsenextbgroup\texttf_indeed\texttf_direct}
\unexpanded\def\textbf{\doifelsenextbgroup\textbf_indeed\textbf_direct}
\unexpanded\def\textit{\doifelsenextbgroup\textit_indeed\textit_direct}
\unexpanded\def\textsl{\doifelsenextbgroup\textsl_indeed\textsl_direct}
\unexpanded\def\textem{\doifelsenextbgroup\textem_indeed\textem_direct}

\protect

\starttext

text {\textbf text \textit text \texttf text \textsl text}

text {\textit text \textbf text \textsl text \texttf text}

text \textbf{text \textit{text} \textsl{text \texttf{text} text}}

text {\textem text \textem text} {\bf text \textem text \textem text}

\stoptext


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

Re: [NTG-context] font switches: bold, slanted, etc.

2016-02-13 Thread Alan BRASLAU
On Sat, 13 Feb 2016 10:53:22 +0100
Wolfgang Schuster <schuster.wolfg...@gmail.com> wrote:

> There are a few font switches which change the style dependant on the
> current style

Thanks for this table; I wikified it (under Font Switches, of course).
It mysteriously introduces \typeface, \swapface and \boldface.

I wonder, though, is there anything similar to boldsmallcapitals?
Does this even exist in any fonts?


> but I guess you’re looking for something like this (similar to the
> LaTeX font system):

I wouldn't dream of something similar to LaTeX...

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

Re: [NTG-context] font switches: bold, slanted, etc.

2016-02-13 Thread Wolfgang Schuster

Alan BRASLAU <mailto:alan.bras...@cea.fr>
13. Februar 2016 um 11:30
On Sat, 13 Feb 2016 10:53:22 +0100
Wolfgang Schuster<schuster.wolfg...@gmail.com>  wrote:


There are a few font switches which change the style dependant on the
current style


Thanks for this table; I wikified it (under Font Switches, of course).
It mysteriously introduces \typeface, \swapface and \boldface.

I wonder, though, is there anything similar to boldsmallcapitals?
Does this even exist in any fonts?
It depends on the font, with Latin Modern this isn’t possible because it 
uses

a separate font for smallcaps but with TeX Gyre you can do this:

\setupbodyfont[pagella]

\starttext

Text {\feature[+][smallcaps]Text} {\bf Text \feature[+][smallcaps]Text}

Text {\feature[+][smallcaps]Text \bf Text}

\stoptext


but I guess you’re looking for something like this (similar to the
LaTeX font system):


I wouldn't dream of something similar to LaTeX...

The font switches aren't that bad but as I have shown there is no need
to have different commands for \XXX{} and {\XXX ...}.

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

Re: [NTG-context] How to use Helvetica Neue Light (OS X)?

2016-02-11 Thread Nicola

On 2016-02-11 08:36:12 +, Taco Hoekwater said:




On 10 Feb 2016, at 21:04, Hans Hagen <pra...@wxs.nl> wrote:

On 2/10/2016 5:44 PM, Nicola wrote:

On 2016-02-10 15:19:01 +, Pablo Rodriguez said:


I’m not OS user, but the following works with Junction
(https://www.theleagueofmoveabletype.com/junction):

\definefontfamily[mainface][ss][Junction][tf=style:light]


Thanks, that indeed does the trick (modulo Taco's comment in another post).


mtxrun --script font --reload —force


That fixed the issue for me.


Not for me. After that command, I do see all the entries again, but when I
typeset my document the font is not found. I paste the log below.

Hans has suggested:


can you delete the fonts path in the texmf-cache


Do you mean texmf-var/fonts? Here is what I done, step by step:

0) `sudo mv /usr/local/texlive/2015/texmf-var/fonts ~/.Trash`.

1) delete all the cache files in 
/usr/local/texlive/2015/texmf-var/luatex-cache and

  in ~/Library/texlive/texmf-var/luatex-cache;

2) At this point, running context or 'luatools --generate' results in:

resolvers   | trees | analyzing '/Users/nicola/Library/texmf'
mtxrun  | unknown script 'context.lua' or 'mtx-context.lua'

3) Run `mtxrun --generate` (without sudo). This creates
  ~/Library/texlive/texmf-var/luatex-cache/context;

4) run `mtxrun --script fonts --list --all --pattern=avenirnextcondensed*`:
  this runs for a while and at the end I get:

fonts   | names | accessing the data table failed
avenirnextcondensed   
avenirnextcondensedultralightitalic   /System/Library/Fonts/Avenir Next 
Condensed.ttc   index:  0
avenirnextcondensedblack  avenirnextcondensedheavyitalic
   /System/Library/Fonts/Avenir Next Condensed.ttc   index:  2
avenirnextcondensedbold   avenirnextcondensedbold   
   /System/Library/Fonts/Avenir Next Condensed.ttc   index: 11
avenirnextcondensedbolditalic avenirnextcondensedbolditalic 
   /System/Library/Fonts/Avenir Next Condensed.ttc   index: 10
avenirnextcondenseddemi   avenirnextcondenseddemibolditalic 
   /System/Library/Fonts/Avenir Next Condensed.ttc   index:  8
avenirnextcondenseddemibold   avenirnextcondenseddemibold   
   /System/Library/Fonts/Avenir Next Condensed.ttc   index:  9
avenirnextcondenseddemibolditalic avenirnextcondenseddemibolditalic 
   /System/Library/Fonts/Avenir Next Condensed.ttc   index:  8
avenirnextcondensedheavy  avenirnextcondensedheavy  
   /System/Library/Fonts/Avenir Next Condensed.ttc   index:  3
avenirnextcondensedheavyitalicavenirnextcondensedheavyitalic
   /System/Library/Fonts/Avenir Next Condensed.ttc   index:  2
avenirnextcondenseditalic avenirnextcondenseditalic 
   /System/Library/Fonts/Avenir Next Condensed.ttc   index:  7
avenirnextcondensedlight  
avenirnextcondensedultralightitalic   /System/Library/Fonts/Avenir Next 
Condensed.ttc   index:  0
avenirnextcondensedmedium avenirnextcondensedmedium 
   /System/Library/Fonts/Avenir Next Condensed.ttc   index:  6
avenirnextcondensedmediumitalic   avenirnextcondensedmediumitalic   
   /System/Library/Fonts/Avenir Next Condensed.ttc   index:  5
avenirnextcondensednormal avenirnextcondensedregular
   /System/Library/Fonts/Avenir Next Condensed.ttc   index:  4
avenirnextcondensedregularavenirnextcondensedregular
   /System/Library/Fonts/Avenir Next Condensed.ttc   index:  4
avenirnextcondensedultralight avenirnextcondensedultralight 
   /System/Library/Fonts/Avenir Next Condensed.ttc   index:  1
avenirnextcondensedultralightitalic   
avenirnextcondensedultralightitalic   /System/Library/Fonts/Avenir Next 
Condensed.ttc   index:  0


I don't know whether the first line of this output indicates a problem.

5) Typeset the document. This takes ~10s and the result is an empty
  document (font not found).

6) Run `mtxrun --script fonts --list --all --pattern=avenirnextcondensed*`:

resolvers   | trees | analyzing '/Users/nicola/Library/texmf'
avenirnextcondensed   avenirnextcondensedbold   
/System/Library/Fonts/Avenir Next Condensed.ttc   index: 11
avenirnextcondensedbold   avenirnextcondensedbold   
/System/Library/Fonts/Avenir Next Condensed.ttc   index: 11


7) Typeset again. Result: font found, document typeset in boldface.

8) Run `mtxrun --script font --reload --force`. After that, mtxrun
  shows me the same output as in step 4. Typesetting the document
  several times always results in `unknown font`. Document and log
  below.

Nicola

\definefontfamily [myfamily] [serif] [Avenir Next Condensed]
\setupbodyfont[myfamily]
\starttext
\tf Regular, \it Italic \bf Bold and \bi BoldItalic
\stoptext


resolvers   | trees | analyzing '/Users/nicola/Library/texmf'
mtx-context | run 1: luatex 
--fmt="/Users/nicola/Library/texlive/2015/texmf-var/luatex-ca

Re: [NTG-context] How to use Helvetica Neue Light (OS X)?

2016-02-11 Thread Nicola

On 2016-02-11 11:03:41 +, Wolfgang Schuster said:


Nicola 11. Februar 2016 um 11:49
On 2016-02-11 10:32:14 +, Wolfgang Schuster said:


Thanks! The typescript works for me, at least with the beta.
This is no surprise because typescripts are contexts native way to load fonts
and even the \definefontfamily command creates a typescript for your fonts.


Does the typescript rely on some features present in the beta but not in
TeX Live 2015? I ask because with ConTeXt from TeX Live the first two \input
blocks are typeset with the default font (Latin Modern, I think) and the last
two blocks in Avenir Next Light (no boldface). The log has:

fonts   > otf loading > loading '/System/Library/Fonts/Avenir 
Next.ttc', hash 'avenir-next-avenirnext-regular'

fonts   > otf loading > loading done
fonts   > otf loading > loading failed due to read error
fonts   > defining > font with asked name 'Avenir Next' is not 
found using lookup 'file'

fonts   > defining > unknown font 'Avenir Next', loading aborted
fonts   > defining > unable to define 'Avenir Next' as 
'avenir-12pt-ss-tf-0--0'

[...]
fonts   > otf loading > loading '/System/Library/Fonts/Avenir 
Next.ttc', hash 'avenir-next-avenirnext-bold'

fonts   > otf loading > loading done
fonts   > otf loading > loading failed due to read error
fonts   > defining > font with asked name 'Avenir Next' is not 
found using lookup 'file'

fonts   > defining > unknown font 'Avenir Next', loading aborted
fonts   > defining > unable to define 'Avenir Next' as 
'avenir-12pt-ss-bf-0--0'

[...]
fonts   > otf loading > loading '/System/Library/Fonts/Avenir 
Next.ttc', hash 'avenir-next-avenirnext-medium'

fonts   > otf loading > loading done
fonts   > otf loading > loading failed due to read error
fonts   > defining > font with asked name 'Avenir Next' is not 
found using lookup 'file'

fonts   > defining > unknown font 'Avenir Next', loading aborted
fonts   > defining > unable to define 'Avenir Next' as 
'avenir-light-12pt-ss-bf-0--0'


Nicola


___
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] How to use Helvetica Neue Light (OS X)?

2016-02-10 Thread Nicola

On 2016-02-10 15:49:37 +, Taco Hoekwater said:


It seems the ttc extractor fails in the current beta, at least on osx.

After a —reload of the fonts, I get similar results to Nicola: only one
indexed font is found for each of the .ttc files (always the last index).


I have exactly the same for the beta. Let me add that things do not look
right with ConTeXt from TeX Live either. Try this:

1) remove the cache from ~/Library/texlive/2015/texmf-var
2) luatools --generate
3) mtxrun --script fonts --list --all --pattern=avenirnextcondensed*
4) Typeset my test document using Avenir Next Condensed.
5) mtxrun --script fonts --reload
6) mtxrun --script fonts --list --all --pattern=avenirnextcondensed*
7) Typeset again.

My results:

3) I see all the entries, plus some spurious ones, which are probably
  synthesized by the script (e.g., avenirnextcondensedblack).
4) The PDF is an empty document (`unknown font` in the console).
6) I see only avenirnextcondensed and avenirnextcondensedbold: the rest
  is gone.
7) The document is typeset in boldface (at least the font is found).

Nicola


___
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] How to use Helvetica Neue Light (OS X)?

2016-02-10 Thread Hans Hagen

On 2/10/2016 6:06 PM, Nicola wrote:

On 2016-02-10 15:49:37 +, Taco Hoekwater said:


It seems the ttc extractor fails in the current beta, at least on osx.

After a —reload of the fonts, I get similar results to Nicola: only one
indexed font is found for each of the .ttc files (always the last index).


I have exactly the same for the beta. Let me add that things do not look
right with ConTeXt from TeX Live either. Try this:

1) remove the cache from ~/Library/texlive/2015/texmf-var
2) luatools --generate
3) mtxrun --script fonts --list --all --pattern=avenirnextcondensed*
4) Typeset my test document using Avenir Next Condensed.
5) mtxrun --script fonts --reload
6) mtxrun --script fonts --list --all --pattern=avenirnextcondensed*
7) Typeset again.

My results:

3) I see all the entries, plus some spurious ones, which are probably
   synthesized by the script (e.g., avenirnextcondensedblack).
4) The PDF is an empty document (`unknown font` in the console).
6) I see only avenirnextcondensed and avenirnextcondensedbold: the rest
   is gone.
7) The document is typeset in boldface (at least the font is found).


can you delete the fonts path in the texmf-cache

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | 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
___

[NTG-context] How to use Helvetica Neue Light (OS X)?

2016-02-09 Thread Nicola

I am coming back to using ConTeXt after a relatively long hiatus,
so I am trying to re-learn old things and learn the new stuff.
Please bear with me.

I want to use OS X's Helvetica Neue Light in a document. How may
I do that?

I have tried:

\definefontfamily [myfamily] [serif] [Helvetica Neue Light]

but, fair enough, that results in `font with asked name 'unknown'
is not found`. If I use

\definefontfamily [myfamily] [serif] [Helvetica Neue]

then the document is typeset in Helvetica Neue, but in boldface.
Why? Using mtxrun, all the relevant files are found:

mtxrun --script fonts --list --all --pattern=neue*

helveticaneue   helveticaneuebold   
/System/Library/Fonts/HelveticaNeue.dfont  index: 13
helveticaneuebold   helveticaneuebold   
/System/Library/Fonts/HelveticaNeue.dfont  index: 13
helveticaneuedeskinterface  helveticaneuedeskinterfaceregular   
/System/Library/Fonts/HelveticaNeueDeskInterface.ttc   index:  9
helveticaneuedeskinterfacenormalhelveticaneuedeskinterfaceregular   
/System/Library/Fonts/HelveticaNeueDeskInterface.ttc   index:  9
helveticaneuedeskinterfaceregular   helveticaneuedeskinterfaceregular   
/System/Library/Fonts/HelveticaNeueDeskInterface.ttc   index:  9


How do I specify the font's weight?

Nicola


___
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] how to include sans, bold and size in \setuptab[headstyle=???]

2013-11-11 Thread Lars Huttar
Hello, I have the following MWE:
\starttext

\setuptab[headstyle=ssbfb]

\tab{foo} \input knuth \par

\stoptext


Here, the headstyle specifies a sans font with boldface style, at 1.44
times the current bodyfont size.


However, I want to be able to specify an absolute point size, instead of
a relative size.

I tried variations like

  \setuptab[headstyle=18pt]

but that has no effect: the size remains 12pt, or whatever the default is.

If I use
  \setuptab[headstyle={\switchtobodyfont[18pt]}]

then the size takes effect (for the key only, which is what I want).
I can combine that with sans:
  \setuptab[headstyle={\switchtobodyfont[ss, 18pt]}]

and that works.


But how to mix in boldface?
  \setuptab[headstyle={\switchtobodyfont[ssbf, 18pt]}]

doesn't give sans boldface, but reverts to a serif, non-bold style (at
18pt size).

  \setuptab[headstyle={\switchtobodyfont[ss, bf, 18pt]}]

gives the same results.


I finally tried

  \setuptab[headstyle={\ssbf \switchtobodyfont[18pt]}]

and that works! But it seems clunky: it looks like it requires two font
switches, which I'm told makes things slower.

And I can't help wondering if I'm missing some simpler way.
Is there a more efficient or elegant way to do this?


Thanks,
Lars

___
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] how to include sans, bold and size in \setuptab[headstyle=???]

2013-11-11 Thread Wolfgang Schuster


   	   
   	Lars Huttar  
  11. November 2013
 18:00
  Hello,
 I have the following MWE:\starttext\setuptab[headstyle=ssbfb]



\setuptab[headstyle=\ssbfb]


  
\tab{foo} \input knuth \par\stoptextHere, 
the headstyle specifies a sans font with boldface style, at 1.44times
 the current bodyfont size.However, I want to be able to 
specify an absolute point size, instead ofa relative size.I 
tried variations like  \setuptab[headstyle=18pt]but that
 has no effect: the size remains 12pt, or whatever the default is.If
 I use  \setuptab[headstyle={\switchtobodyfont[18pt]}]then 
the size takes effect (for the key only, which is what I want).I can
 combine that with sans:  \setuptab[headstyle={\switchtobodyfont[ss,
 18pt]}]and that works.But how to mix in boldface?
  \setuptab[headstyle={\switchtobodyfont[ssbf, 18pt]}]doesn't 
give sans boldface, but reverts to a serif, non-bold style (at18pt 
size).  \setuptab[headstyle={\switchtobodyfont[ss, bf, 18pt]}]gives
 the same results.I finally tried  
\setuptab[headstyle={\ssbf \switchtobodyfont[18pt]}]and that 
works! But it seems clunky: it looks like it requires two fontswitches,
 which I'm told makes things slower.And I can't help wondering 
if I'm missing some simpler way.Is there a more efficient or elegant
 way to do this?

  

\definefont[BigBoldSans][SansBold at 18pt]

\setuptab[headstyle=BigBoldSans]

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

Re: [NTG-context] Simplefonts

2013-10-13 Thread Zhichu Chen

On 10/13/2013 01:39 AM, Wolfgang Schuster wrote:


Am 12.10.2013 um 15:04 schrieb Zhichu Chen zhichu.c...@gmail.com 
mailto:zhichu.c...@gmail.com:



Hi Wolfgang,

Good to know that, but I might have some questions.


On Fri, Oct 11, 2013 at 2:02 AM, Wolfgang Schuster 
wolfgang.schus...@gmail.com mailto:wolfgang.schus...@gmail.com wrote:


Hi all,

\definefallbackfamily [mainface] [serif] [DejaVu Serif]
[range=cyrillic,force=yes]

What if I want to use the CJK font? The code in font-sel.mkvi hints 
I could use range=chinese but it didn't work. I have to use interval 
{0x00400-0x2FA1F} explicitly.


When you take a look into char-def.lua you can see names certain 
character ranges and “range=cyrillic”

used such a name.

For a chinese font you need 
“range={cjkunifiedideographs,cjkunifiedideographsextensiona,…}.
Because the list with names is very long you do this setup only once 
with the \definefontfamilypreset

command, e.g.

\definefontfamilypreset[chinese][range={cjkunifiedideographs,cjkunifiedideographsextensiona,…}]

and load this setup when you set the font with 
\definefontfamilyfallback, e.g.


  \definefontfamilyfallback[typeface][style][font][preset=chinese]

For the moment I added three presets “chinese”, “japanese” and 
“korean” but they need better
names, e.g. “range:chinese” because there could be also 
“features:chinese” etc.
I get it now. I can put range and features of the fallback fonts in the 
preset.


And how can I assign the boldfont, italicfont and bolditalicfont? I'm 
currently using the Adobe Song Std as the regular font but it didn't 
come with a bold version or else, hence I might need this feature.


The module provides keys to apply a certain font and feature for each 
alternative (upright, italic etc.)

of a font, a complete list with all keys is shown in the table below.

---
| Alternative | Font| Feature |
|-|
| tf  | regularfont | regularfeatures |
| it  | italicfont  | italicfeatures  |
| sl  | slantedfont | slantedfeatures |
| bf  | boldfont| boldfeatures|
| bi  | bolditalicfont  | bolditalicfeatures  |
| bs  | boldslantedfont | boldslantedfeatures |
| sc  | smallcapsfont   | smallcapsfeatures   |
---

The feature-keys expect the name from the \definefontfeature command, 
when you don’t
specify a feature to a certain alternative the value from the 
“features” key is used.


When you want to set a certain font for a alternative there are 
different ways, I’m going
to show the different ways with a few examples where I change the font 
for italic.
Thanks for the descriptions. I have made a small test and turns out the 
regularfont has to be assigned to something or the other xxxfonts 
won't have any effects.


Here's my code:
=
\definefallbackfamily [mainface] [serif] [adobesongstd]
  [range={0x00400-0x2FA1F}%
  ,regularfont=name:adobesongstdlight%
  ,italicfont=name:adobefangsongstdregular%
  ,boldfont=name:adobeheitistdregular%
  ,bolditalicfont=name:adobekaitistdregular%
  ,force=yes%
  ,features=song%
  ]
=
and if I remove the regularfont=... line, the boldface Chinese 
characters will use the Adobe Song Std font as well. Same thing happened 
when I used the preset=xxx option which I don't know if it is intended 
to behave like that, by the way.


Oh, and off the topic, can I use effect to assign the fonts? Like if I 
have defined

=
\defineeffect[mybold][alternative=both,rulethickness=\dimexpr\bodyfontsize/10\relax]
=
I would like to use this effect to apply to my bold fonts, maybe:
=
\setupfontfamily [serif] [DejaVu Serif] [boldfont=effect:mybold]
=
I know this has nothing to do with this module. I just thought this 
might be interesting.


1. Use the filename of a font. With the “file:” prefix you can the 
tell the module
to look for a file with the given name, when the file isn’t found the 
font from
the tf-alternative is used. The file-method is also used when you omit 
the prefix.


\setupfontfamily [serif] [DejaVu Serif] [italicfont=file:dejavuserifbold]

\starttext
Regular and \it Italic
\stoptext

2. Use a certain style. When you use the “style: ”prefix the module 
looks for a certain

style of the requested font.

\setupfontfamily [serif] [DejaVu Serif] [italicfont=style:bolditalic]

\starttext
Regular and \it Italic
\stoptext

3. Search for a font with a certain name. When you use the “name:” 
prefix the module
looks for a font with the requested name. Names are internal values of 
a font

Re: [NTG-context] Simplefonts

2013-10-13 Thread Wolfgang Schuster

Am 13.10.2013 um 11:56 schrieb Zhichu Chen zhichu.c...@gmail.com:

 Thanks for the descriptions. I have made a small test and turns out the 
 regularfont has to be assigned to something or the other xxxfonts won't 
 have any effects.
 
 Here's my code:
 =
 \definefallbackfamily [mainface] [serif] [adobesongstd]
   [range={0x00400-0x2FA1F}%
   ,regularfont=name:adobesongstdlight%
   ,italicfont=name:adobefangsongstdregular%
   ,boldfont=name:adobeheitistdregular%
   ,bolditalicfont=name:adobekaitistdregular%
   ,force=yes%
   ,features=song%
   ]
 =
 and if I remove the regularfont=... line, the boldface Chinese characters 
 will use the Adobe Song Std font as well. Same thing happened when I used the 
 preset=xxx option which I don't know if it is intended to behave like that, 
 by the way. 

I can fit this, it’s a side effect for font families with a single font, e.g. 
Adobe Song Std which has only the Light font but no files for regular, bold etc.

 Oh, and off the topic, can I use effect to assign the fonts? Like if I have 
 defined
 =
 \defineeffect[mybold][alternative=both,rulethickness=\dimexpr\bodyfontsize/10\relax]
 =
 I would like to use this effect to apply to my bold fonts, maybe:
 =
 \setupfontfamily [serif] [DejaVu Serif] [boldfont=effect:mybold]
 =
 I know this has nothing to do with this module. I just thought this might be 
 interesting.

That’s not possible but you can the slant and extend options from 
\definefontfeature.

http://wiki.contextgarden.net/Simplefonts#Faking_italics_and_bold_fonts

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

[NTG-context] bold in math-mode

2013-05-20 Thread Wim W. Wilhelm
Hi all,

How can I get boldface characters and symbols  (\bf)  in mathmode.
I'm using mkiv from TexLive 2012.
I use palatino, but also would like to use palatino with euler.
Hope somebody can help me out.

I us the follwing definitions:

\starttypescript[palatino] [texnansi,ec,qx,t5,default]
\definetypeface [palatino] [rm]  [serif] [palatino] [default]
\definetypeface [palatino] [mm]  [math]  [palatino] [default]
\definetypeface [palatino] [ss]  [sans]  [modern]   [default] 
\definetypeface [palatino] [tt]  [mono]  [modern]   [default] 
\stoptypescript

Regards,
Wim W. Wilhelm___
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] bold in math-mode

2013-05-20 Thread Marco Patzer
On 2013–05–20 Wim W. Wilhelm wrote:

 How can I get boldface characters and symbols  (\bf)  in mathmode.
 I'm using mkiv from TexLive 2012.

The following works with the current beta:

\starttypescript [palatino]
  \definetypeface [palatino] [rm]  [serif] [palatino] [default]
  \definetypeface [palatino] [mm]  [math]  [euler][default]
  \definetypeface [palatino] [ss]  [sans]  [modern]   [default]
  \definetypeface [palatino] [tt]  [mono]  [modern]   [default]
\stoptypescript

\setupbodyfont [palatino]

\starttext
   \startformula
a^2 + b^2 = c^2
  \stopformula
  \startformula
\bf a^2 + b^2 = c^2
  \stopformula
\stoptext

Marco


signature.asc
Description: Digital signature
___
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] bold in math-mode

2013-05-20 Thread Wolfgang Schuster

Am 20.05.2013 um 14:48 schrieb Wim W. Wilhelm ww.wilh...@kpnmail.nl:

 Hi all,
  
 How can I get boldface characters and symbols  (\bf)  in mathmode.
 I'm using mkiv from TexLive 2012.
 I use palatino, but also would like to use palatino with euler.
 Hope somebody can help me out.
  
 I us the follwing definitions:
  
 \starttypescript[palatino] [texnansi,ec,qx,t5,default]
 \definetypeface [palatino] [rm]  [serif] [palatino] [default]
 \definetypeface [palatino] [mm]  [math]  [palatino] [default]
 \definetypeface [palatino] [ss]  [sans]  [modern]   [default] 
 \definetypeface [palatino] [tt]  [mono]  [modern]   [default] 
 \stoptypescript

1. MkIV doesn’t need a font encoding.

2. ConTeXt already provides typescripts for Palatino (or to be true Pagella).

3. You can enable bold characters with the \bf command.

\setupbodyfont[palatino]

\starttext
\startformula
A \Delta : {\bf A \Delta} : A \Delta
\stopformula
\stoptext

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

Re: [NTG-context] index: distinguish entries by pagestyle

2013-01-15 Thread Andreas Mang

Am Jan 14, 2013 um 5:36 PM schrieb Philipp Gesang 
philipp.ges...@alumni.uni-heidelberg.de:

 ···date: 2013-01-14, Monday···from: Schmitz Thomas A.···
 
 
 On Jan 14, 2013, at 2:54 PM, Andreas Mang m...@imt.uni-luebeck.de wrote:
 
 Hi there,
 
 I got a question considering the registers. I'd like to distinguish between 
 the definition of some term and its appearance/use somewhere else (boldface 
 vs. normal font of page number for instance). The garden provides a 
 solution, which does not seem to work for me:
 
 %%%
 \setupregister[index][nb][pagestyle=bold]
 
 \starttext
 
 My \index[nb::dog]{dog}dog is a cat\index{cat}.
 
 \placeindex
 \stoptext
 %%%
 
 (modified from http://wiki.contextgarden.net/Registers).
 
 What I'd like to have is, that dog appears with a bold page number and that 
 cat doesn't.
 
 Your example produces the expected output with Mkii, and your code is OK, so 
 i assume this must be a bug in Mkiv. Hans?
 
 Hi Andreas and Thomas,
 
 this was reported a while back [0] but is still a “todo” in the
 source [1].
 
 [0] http://www.ntg.nl/pipermail/ntg-context/2011/059544.html
 [1] 
 http://repo.or.cz/w/context.git/blob/refs/heads/origin:/tex/context/base/strc-reg.mkiv

Hi there,

Thomas  Philipp: Thanks a lot for looking into this.

In my opinion this is a very helpful feature, as it allows to differentiate 
between definition and use.

@Hans: May I humbly ask, if it is possible to fix this?! (it doesn't hurt to 
ask, I suppose ;) )

Cheers,
Andreas



___
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] index: distinguish entries by pagestyle

2013-01-14 Thread Andreas Mang
Hi there,

I got a question considering the registers. I'd like to distinguish between the 
definition of some term and its appearance/use somewhere else (boldface vs. 
normal font of page number for instance). The garden provides a solution, which 
does not seem to work for me:

%%%
\setupregister[index][nb][pagestyle=bold]

\starttext

My \index[nb::dog]{dog}dog is a cat\index{cat}.

\placeindex
\stoptext
%%%

(modified from http://wiki.contextgarden.net/Registers).

What I'd like to have is, that dog appears with a bold page number and that cat 
doesn't.

ConTeXt  ver: 2013.01.10 01:04 MKIV  fmt: 2013.1.11

Cheers,
Andreas
___
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] index: distinguish entries by pagestyle

2013-01-14 Thread Schmitz Thomas A.

On Jan 14, 2013, at 2:54 PM, Andreas Mang m...@imt.uni-luebeck.de wrote:

 Hi there,
 
 I got a question considering the registers. I'd like to distinguish between 
 the definition of some term and its appearance/use somewhere else (boldface 
 vs. normal font of page number for instance). The garden provides a solution, 
 which does not seem to work for me:
 
 %%%
 \setupregister[index][nb][pagestyle=bold]
 
 \starttext
 
 My \index[nb::dog]{dog}dog is a cat\index{cat}.
 
 \placeindex
 \stoptext
 %%%
 
 (modified from http://wiki.contextgarden.net/Registers).
 
 What I'd like to have is, that dog appears with a bold page number and that 
 cat doesn't.

Your example produces the expected output with Mkii, and your code is OK, so i 
assume this must be a bug in Mkiv. Hans?

Thomas
___
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] index: distinguish entries by pagestyle

2013-01-14 Thread Philipp Gesang
···date: 2013-01-14, Monday···from: Schmitz Thomas A.···

 
 On Jan 14, 2013, at 2:54 PM, Andreas Mang m...@imt.uni-luebeck.de wrote:
 
  Hi there,
  
  I got a question considering the registers. I'd like to distinguish between 
  the definition of some term and its appearance/use somewhere else (boldface 
  vs. normal font of page number for instance). The garden provides a 
  solution, which does not seem to work for me:
  
  %%%
  \setupregister[index][nb][pagestyle=bold]
  
  \starttext
  
  My \index[nb::dog]{dog}dog is a cat\index{cat}.
  
  \placeindex
  \stoptext
  %%%
  
  (modified from http://wiki.contextgarden.net/Registers).
  
  What I'd like to have is, that dog appears with a bold page number and that 
  cat doesn't.
 
 Your example produces the expected output with Mkii, and your code is OK, so 
 i assume this must be a bug in Mkiv. Hans?

Hi Andreas and Thomas,

this was reported a while back [0] but is still a “todo” in the
source [1].

Regards
Philipp


[0] http://www.ntg.nl/pipermail/ntg-context/2011/059544.html
[1] 
http://repo.or.cz/w/context.git/blob/refs/heads/origin:/tex/context/base/strc-reg.mkiv


pgpeER2DKNSjO.pgp
Description: PGP signature
___
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] How to get bolder and larger item symbol?

2012-10-15 Thread Marcin Borkowski
I'd like to have the number (and dot) in an itemize in boldface and
larger (say, \bf\tfa).  What do I do?

\startitemize[n][symstyle=bold]

didn't work.  Why?

TIA

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University
___
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] How to get bolder and larger item symbol?

2012-10-15 Thread Aditya Mahajan

On Mon, 15 Oct 2012, Marcin Borkowski wrote:


I'd like to have the number (and dot) in an itemize in boldface and
larger (say, \bf\tfa).  What do I do?

\startitemize[n][symstyle=bold]

didn't work.  Why?


\symstyle is for enteries defined using \sym. For the item symbol use the 
style key.


\startitemize[n][style={\bfa}]

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
___


Re: [NTG-context] fonts

2011-08-26 Thread Hans van der Meer

On 26 aug. 2011, at 17:09, Wolfgang Schuster wrote:

 Am 26.08.2011 um 16:57 schrieb Hans van der Meer:
 
 On 26 aug. 2011, at 16:34, Taco Hoekwater wrote:
 
 Sure. As I wrote above, there should not *be* any typescript file, and the 
 actual fonts are named *antt*, not '*antykwa*'
 
 changing to \setupbodyfont[antt] now produces:
 filesreadfile  asked name: 'antt', not found
 
 \setupbodyfont expects the name of a typeface.
 
 I saw from your terminal output that your context version is from july and a 
 while ago you needed \usetypescript to use “Antykwa Torunska”.
 
 \usetypescript[antykwa-torunska]
 \setupbodyfont[antykwa]

O, how wonderful is the internet-community. Indeed, that \usetypescript does 
the trick. Thanks, one problem less here!
I guess from Wolfgang's comment that newer vrsions of ConTeXt can do without 
the \usetypescript?

As for the cambria, I now see its name is has been typeset in boldface in the 
font book. And that solves that problem also, because the font is not here.

Hans van der Meer



___
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] Font sizes, vertical spacing, footnote symbols

2010-12-06 Thread Nicola
Hi,
I have a set of specifications for a document and I am having some 
problems implementing it. I am using MKIV from TeX Live 2010. I have 
some difficulty with these requirements in particular:

1) title: 17pt, boldface, capital letters; 12pt spacing before and 3pt 
spacing after the title;

Now I use

\setuphead[title][align=middle,style={\bfd\cap},before={},after={}]

How can I ensure that the font size is exactly 17pt?
How to I specify precise vertical spacing?

3) All § must be indented 1.25cm;

\setupindenting[1.25cm,yes,first]

But the first § of each Section is not indented.

4) footnote symbol: *

I use

\setupnote[footnote][numberconversion=set 3]

but I get stars instead of asterisks.

Can you please help me with these?
Nicola

___
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] Font sizes, vertical spacing, footnote symbols

2010-12-06 Thread Wolfgang Schuster

Am 06.12.2010 um 13:46 schrieb Nicola:

 Hi,
 I have a set of specifications for a document and I am having some 
 problems implementing it. I am using MKIV from TeX Live 2010. I have 
 some difficulty with these requirements in particular:
 
 1) title: 17pt, boldface, capital letters; 12pt spacing before and 3pt 
 spacing after the title;
 
 Now I use
 
 \setuphead[title][align=middle,style={\bfd\cap},before={},after={}]
 
 How can I ensure that the font size is exactly 17pt?
 How to I specify precise vertical spacing?

\definefont[TitleStyle][SerifBold at 17pt]

\setuphead
 [title]
 [style=TitleStyle,
  textstyle=WORD,
  before={\blank[12pt]},
  after={\blank[3pt]},
  align=middle]

 3) All § must be indented 1.25cm;
 
 \setupindenting[1.25cm,yes,first]
 
 But the first § of each Section is not indented.

\setuphead
 [section]
 [indentnext=yes]

 4) footnote symbol: *
 
 I use
 
 \setupnote[footnote][numberconversion=set 3]
 
 but I get stars instead of asterisks.

How about „set 1“ or „set 2“? If none of them fits you can
create your own conversionset with

\defineconversion[nicola][*,**,***,,*,...]

\setupnote[footnote][numberconversion=nicola]

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


Re: [NTG-context] Font sizes, vertical spacing, footnote symbols

2010-12-06 Thread Nicola
In article e4503573-6803-4484-baed-7a816726e...@gmail.com,
 Wolfgang Schuster schuster.wolfg...@googlemail.com wrote:

 Am 06.12.2010 um 13:46 schrieb Nicola:
 
  Hi,
  I have a set of specifications for a document and I am having some 
  problems implementing it. I am using MKIV from TeX Live 2010. I have 
  some difficulty with these requirements in particular:
  
  1) title: 17pt, boldface, capital letters; 12pt spacing before and 3pt 
  spacing after the title;
  
  Now I use
  
  \setuphead[title][align=middle,style={\bfd\cap},before={},after={}]
  
  How can I ensure that the font size is exactly 17pt?
  How to I specify precise vertical spacing?
 
 \definefont[TitleStyle][SerifBold at 17pt]

Oh, I see... I should have read co-fonts.pdf more carefully!

   textstyle=WORD,

That's new to me.

   before={\blank[12pt]},
   after={\blank[3pt]},

Too easy :) Somehow, I had come to believe that only predefined values 
could be used (medium, big, ...)
 
  But the first § of each Section is not indented.
 
 \setuphead
  [section]
  [indentnext=yes]

That's also pretty obvious now that I see it.
 
  4) footnote symbol: *
  
  I use
  
  \setupnote[footnote][numberconversion=set 3]
  
  but I get stars instead of asterisks.
 
 How about „set 1“ or „set 2“? If none of them fits you can
 create your own conversionset with
 
 \defineconversion[nicola][*,**,***,,*,...]

Yes, this is what I need.

I must confess that I have learned more from your examples than after a 
whole afternoon browsing through the various docs :)

Thanks,
Nicola

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

2010-03-05 Thread Aditya Mahajan

On Fri, 5 Mar 2010, Wolfgang Schuster wrote:


Am 05.03.10 19:40, schrieb Mehdi Omidali:

Hi,
I use tikz with MKIV and need to switch to \scriptsize in math font. 
\scriptsize doesn't work. What is its equivalent in MKIV?

\starttext

$a$ $\tx a$ $\txx a$

$a$ $\scriptstyle a$ $\scriptscriptstyle a$

\stoptext


Also see the documentation in font-ini

%D This leaves us two more commands: \type{\tx} and
%D \type{\txx}. These activate a smaller and even more smaller
%D font than the current one and adapt themselves to the
%D current alternative, so when \type{\bf} is active,
%D \type{\tx} gives a smaller boldface, which in turn can be
%D called directly by \type{\bfx}.
%D
%D These two smaller alternatives are specified by the bodyfont
%D environment and therefore not necessarily have similar sizes
%D as \type{\scriptsize} and \type{\scriptscriptsize}. The main
%D reason for this incompatibility (which can easily be undone)
%D lays in the fact that we often want a bit bigger characters
%D than in math mode. In \CONTEXT\ for instance the \type{\tx}
%D and \type{\txx} commands are used for surrogate
%D \cap{smallcaps} which support both nesting and alternatives,
%D like in {\bf\cap{a \cap{small} world}}, which was typeset by
%D
%D \starttyping
%D \bf\cap{a \cap{small} world}
%D \stoptyping
%D
%D And compare $\rm \scriptstyle THIS$ with the slightly larger
%D \cap{THIS}: \ruledhbox{$\rm \scriptstyle scriptstyle: THIS$}
%D or \ruledhbox{\cap{x style: THIS}} makes a big difference.

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
___


Re: [NTG-context] Paragraphs that start with formatting fail to wrap around floats

2009-09-08 Thread Hans Hagen

Brian Wedde wrote:

I found what appears to be a bug. I can't find any documentation on it. If i'm 
doing something wrong, i would really appreciate it if someone would tell me 
so. Otherwise, please tell me it is a bug so i can stop pulling my hair out. If 
a paragraph starts with anything but plain text, it will not honor floating 
objects and will run over them.

Here is an example:

\starttext

\placefigure[right,here]{none}{\framed[width=0.3\textwidth,height=0.3\textwidth]{Floating
 Thingoid}}

{\bf T}his simple paragraph does not wrap around the floated figure. You can 
see it starts with a single boldface command.x xxx  xxx x  x xx 
 x  xx

\bf{T}his paragraph will also not honor the float. It has an alternate form of 
the boldface command

And yet this paragraph will. It starts with just plain text.  xxx  xxx x  x xx  x.   xxx  xxx x  x xx  x   xxx  xxx x  x xx  x   xxx  xxx x  x xx  x. 


\stoptext


Any feedback or advice would be greatly appreciated.


when starting with a \bgroup or {, precede it with \dontleavehmode or 
\strut


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Paragraphs that start with formatting fail to wrap around floats

2009-09-02 Thread Brian Wedde
I found what appears to be a bug. I can't find any documentation on it. If i'm 
doing something wrong, i would really appreciate it if someone would tell me 
so. Otherwise, please tell me it is a bug so i can stop pulling my hair out. If 
a paragraph starts with anything but plain text, it will not honor floating 
objects and will run over them.

Here is an example:

\starttext

\placefigure[right,here]{none}{\framed[width=0.3\textwidth,height=0.3\textwidth]{Floating
 Thingoid}}

{\bf T}his simple paragraph does not wrap around the floated figure. You can 
see it starts with a single boldface command.x xxx  xxx x  x xx 
 x  xx

\bf{T}his paragraph will also not honor the float. It has an alternate form of 
the boldface command

And yet this paragraph will. It starts with just plain text.  xxx  xxx 
x  x xx  x.   xxx  xxx x  x xx  x   
xxx  xxx x  x xx  x   xxx  xxx x  x xx 
 x. 

\stoptext


Any feedback or advice would be greatly appreciated.

[and if i'm posting this in the wrong place, please advise. I could not find 
any info on submitting or reviewing bug reports. ]

Thanks!

- lev
___
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] Font problem and font question

2008-09-14 Thread Eric DÉTREZ
Hello again

In Context Manual it is said that we can define new fonts.
There is an example : \definebodyfont[10pt,11pt,12pt][rm][tfe =  
Regular at 48pt]
I tried the text :
***
\definebodyfont[10pt,11pt,12pt][rm][tfe = Regular at 48pt]

\starttext

\tfe gros texte

\stoptext
***

and the compiler answers
***
! Undefined control sequence
I.5 \tfe
   gros texte
***

I don't understand .



Now a font question :

is it a way to define casual (or cs) as italic, boldface or  
handwriting ?

I wish to type {\cs casual} to get the world casual written with my  
LucideCasual font.

Thank's for any enlightment
___
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] \sf and bigggg fonts

2007-03-08 Thread Wolfgang Schuster

2007/3/7, Xan [EMAIL PROTECTED]:


En/na Aditya Mahajan ha escrit:
 On Wed, 7 Mar 2007, Xan wrote:

 En/na Wolfgang Schuster ha escrit:
 2007/3/7, Aditya Mahajan [EMAIL PROTECTED]:
 On Wed, 7 Mar 2007, Xan wrote:

 En/na Aditya Mahajan ha escrit:
 On Wed, 7 Mar 2007, Xan wrote:

 Is it possible to have the equivalent in \sf in context?. I tried
\sf
 and I get an error. Strange because \sl, \bf, etc exist
 \ss? (I am not sure what \sf is supposed to be, so just guessing)

 \sf is Sans Serif (latex)
 [\rm roman, \tt typewriter, \sl slanted, \emph empasized, \it italic
 \bf
 boldface; see a not so short intro to latex for example]
 \ss is plain tex's font command for sans serif, and works with
 context. I do not know why latex chose \sf (sffamily, textsf) instead
 of ss.

 You are wrong, \ss is in plain TeX the command to produce the german
ß.
 There has never been a predefined command to swith to a sans serif
font
 like
 the corresponding switches for bold and italic.


 So, is there any command for that?. How can I get \sf in latex in
context?

 In ConTeXt, \ss switches to sans serif. What Wolfgang meant (IIUC) was
 that there is no command in plain tex to switch to sans serif.

 More details are at
 http://wiki.contextgarden.net/Basic_Text_Formatting


Okay. Clarified.
But it does not appear in this wiki page. Maybe you could update it

For the other hand, can you inform me how to translate context interface
in catalan and spanish language?. Is there any .po file? I don't know
how context works in this aspect.

And another question: is there a context planet? Funny if I could see
the comments about developers and context users.

Thanks,
Xan.



Hi Xan,

you should look at the header in the 3rd column.

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


Re: [NTG-context] \sf and bigggg fonts

2007-03-07 Thread Wolfgang Schuster

2007/3/7, Aditya Mahajan [EMAIL PROTECTED]:


On Wed, 7 Mar 2007, Xan wrote:

 En/na Aditya Mahajan ha escrit:
 On Wed, 7 Mar 2007, Xan wrote:

 Is it possible to have the equivalent in \sf in context?. I tried \sf
 and I get an error. Strange because \sl, \bf, etc exist

 \ss? (I am not sure what \sf is supposed to be, so just guessing)


 \sf is Sans Serif (latex)
 [\rm roman, \tt typewriter, \sl slanted, \emph empasized, \it italic \bf
 boldface; see a not so short intro to latex for example]

\ss is plain tex's font command for sans serif, and works with
context. I do not know why latex chose \sf (sffamily, textsf) instead
of ss.



You are wrong, \ss is in plain TeX the command to produce the german ß.
There has never been a predefined command to swith to a sans serif font like
the corresponding switches for bold and italic.




 And another question: how to make very big fonts (for example: 60pt)
in
 text and mathematical mode? I just want to change the font temporally
 (and don't touch \setupbodyfont)

 \switchtobodyfont inside a group will change the font temporarily. For
 using very large fonts, you may have to define the font dimension in
 \definebodyfont or \definebodyfontenvironment.

 Okay.

 Thanks,
 Xan.

 PS: A couriosity: is there a roadmap of versions/features for context?.
 I see that context is continously improved

An old document http://pragma-ade.com/present/road/roadmap.pdf
and recent changes http://www.pragma-ade.com/general/manuals/mk.pdf

AFIAU, new features are based on user's requests and Hans' needs.

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

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


Re: [NTG-context] \sf and bigggg fonts

2007-03-07 Thread Aditya Mahajan
On Wed, 7 Mar 2007, Wolfgang Schuster wrote:

 2007/3/7, Aditya Mahajan [EMAIL PROTECTED]:
 
 On Wed, 7 Mar 2007, Xan wrote:
 
  En/na Aditya Mahajan ha escrit:
  On Wed, 7 Mar 2007, Xan wrote:
 
  Is it possible to have the equivalent in \sf in context?. I tried \sf
  and I get an error. Strange because \sl, \bf, etc exist
 
  \ss? (I am not sure what \sf is supposed to be, so just guessing)
 
 
  \sf is Sans Serif (latex)
  [\rm roman, \tt typewriter, \sl slanted, \emph empasized, \it italic \bf
  boldface; see a not so short intro to latex for example]
 
 \ss is plain tex's font command for sans serif, and works with
 context. I do not know why latex chose \sf (sffamily, textsf) instead
 of ss.


 You are wrong, \ss is in plain TeX the command to produce the german ß.
 There has never been a predefined command to swith to a sans serif font like
 the corresponding switches for bold and italic.

so much for the feeling that I was beginning to understand fonts :-(

Aditya

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


Re: [NTG-context] \sf and bigggg fonts

2007-03-07 Thread Aditya Mahajan
On Wed, 7 Mar 2007, Xan wrote:

 En/na Wolfgang Schuster ha escrit:
 2007/3/7, Aditya Mahajan [EMAIL PROTECTED]:

 On Wed, 7 Mar 2007, Xan wrote:

 En/na Aditya Mahajan ha escrit:
 On Wed, 7 Mar 2007, Xan wrote:

 Is it possible to have the equivalent in \sf in context?. I tried \sf
 and I get an error. Strange because \sl, \bf, etc exist

 \ss? (I am not sure what \sf is supposed to be, so just guessing)


 \sf is Sans Serif (latex)
 [\rm roman, \tt typewriter, \sl slanted, \emph empasized, \it italic
 \bf
 boldface; see a not so short intro to latex for example]

 \ss is plain tex's font command for sans serif, and works with
 context. I do not know why latex chose \sf (sffamily, textsf) instead
 of ss.


 You are wrong, \ss is in plain TeX the command to produce the german ß.
 There has never been a predefined command to swith to a sans serif font
 like
 the corresponding switches for bold and italic.



 So, is there any command for that?. How can I get \sf in latex in context?

In ConTeXt, \ss switches to sans serif. What Wolfgang meant (IIUC) was 
that there is no command in plain tex to switch to sans serif.

More details are at 
http://wiki.contextgarden.net/Basic_Text_Formatting

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


Re: [NTG-context] \sf and bigggg fonts

2007-03-07 Thread Xan
En/na Aditya Mahajan ha escrit:
 On Wed, 7 Mar 2007, Xan wrote:
 
 En/na Wolfgang Schuster ha escrit:
 2007/3/7, Aditya Mahajan [EMAIL PROTECTED]:
 On Wed, 7 Mar 2007, Xan wrote:

 En/na Aditya Mahajan ha escrit:
 On Wed, 7 Mar 2007, Xan wrote:

 Is it possible to have the equivalent in \sf in context?. I tried \sf
 and I get an error. Strange because \sl, \bf, etc exist
 \ss? (I am not sure what \sf is supposed to be, so just guessing)

 \sf is Sans Serif (latex)
 [\rm roman, \tt typewriter, \sl slanted, \emph empasized, \it italic
 \bf
 boldface; see a not so short intro to latex for example]
 \ss is plain tex's font command for sans serif, and works with
 context. I do not know why latex chose \sf (sffamily, textsf) instead
 of ss.

 You are wrong, \ss is in plain TeX the command to produce the german ß.
 There has never been a predefined command to swith to a sans serif font
 like
 the corresponding switches for bold and italic.


 So, is there any command for that?. How can I get \sf in latex in context?
 
 In ConTeXt, \ss switches to sans serif. What Wolfgang meant (IIUC) was 
 that there is no command in plain tex to switch to sans serif.
 
 More details are at 
 http://wiki.contextgarden.net/Basic_Text_Formatting
 

Okay. Clarified.
But it does not appear in this wiki page. Maybe you could update it

For the other hand, can you inform me how to translate context interface 
in catalan and spanish language?. Is there any .po file? I don't know 
how context works in this aspect.

And another question: is there a context planet? Funny if I could see 
the comments about developers and context users.

Thanks,
Xan.
 Aditya
 ___
 ntg-context mailing list
 ntg-context@ntg.nl
 http://www.ntg.nl/mailman/listinfo/ntg-context

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


Re: [NTG-context] \sf and bigggg fonts

2007-03-07 Thread Xan
En/na Wolfgang Schuster ha escrit:
 2007/3/7, Aditya Mahajan [EMAIL PROTECTED]:

 On Wed, 7 Mar 2007, Xan wrote:

  En/na Aditya Mahajan ha escrit:
  On Wed, 7 Mar 2007, Xan wrote:
 
  Is it possible to have the equivalent in \sf in context?. I tried \sf
  and I get an error. Strange because \sl, \bf, etc exist
 
  \ss? (I am not sure what \sf is supposed to be, so just guessing)
 
 
  \sf is Sans Serif (latex)
  [\rm roman, \tt typewriter, \sl slanted, \emph empasized, \it italic 
 \bf
  boldface; see a not so short intro to latex for example]

 \ss is plain tex's font command for sans serif, and works with
 context. I do not know why latex chose \sf (sffamily, textsf) instead
 of ss.
 
 
 You are wrong, \ss is in plain TeX the command to produce the german ß.
 There has never been a predefined command to swith to a sans serif font 
 like
 the corresponding switches for bold and italic.
 
 

So, is there any command for that?. How can I get \sf in latex in context?

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


Re: [NTG-context] header styles

2007-01-25 Thread Wolfgang Schuster
On Wed, 17 Jan 2007 22:55:00 +0100
Rolf Marvin Bøe Lindgren [EMAIL PROTECTED] wrote:

 I've sort of looked around, I believe, but not found a simple way to  
 change the size of headings.
 

\setuphead[subject][style={\switchtobodyfont[14pt,sans]},textstyle=\bf]

or

\setuphead[subject][style={\switchtobodyfont[14pt,sans]\bf}]


 \setuphead[subject][style=\ss\bfb] makes a nice medium sized heading,  
 but what is the canonical way to set up numbered headings, sans  
 serif, boldface, 14pt?
 -- 
 Rolf Lindgren
 [EMAIL PROTECTED]
 

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


[NTG-context] header styles

2007-01-17 Thread Rolf Marvin Bøe Lindgren
I've sort of looked around, I believe, but not found a simple way to  
change the size of headings.

\setuphead[subject][style=\ss\bfb] makes a nice medium sized heading,  
but what is the canonical way to set up numbered headings, sans  
serif, boldface, 14pt?
-- 
Rolf Lindgren
[EMAIL PROTECTED]


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


Re: [NTG-context] prodint typescripts remove style

2006-12-08 Thread M.J. Kallen
Through trial and error, I've been able to solve the problem mentioned below. I 
used \setupbodyfont[reset,modern,serif,10pt] instead of 
\setupbodyfont[reset,modern,10pt]. The additional serif option does the trick.

Maarten-Jan

- Original Message 
From: M.J. Kallen [EMAIL PROTECTED]
To: [NTG-context] maillist ntg-context@ntg.nl
Sent: Monday, December 4, 2006 10:13:11 AM
Subject: [NTG-context] prodint typescripts remove style

Hi Hans or Taco, or anyone else,

the typescripts which you (recently) suggested for the prodint symbol work, but 
it turns out that any font styles (for example \bf, \it, etc.) do not. In the 
following example, the boldface text remains normal:

%
% test document:

\definefontsynonym [MathGamma]  [prodint]

\definefamilysynonym [default]  [xop]   [mc]

\startmathcollection [default]

\definemathsymbol [prodi]  [op]  [xop] [80]  %80 prodinttext
\definemathsymbol [Prodi]  [op]  [xop] [82]  %82 prodintdisplay
\definemathsymbol [PRODI]  [op]  [xop] [84]  %84 prodintbig

\stopmathcollection

\loadmapfile[prodint]

\starttypescript [math] [modern,computer-modern,latin-modern,ams] [size]
   \definebodyfont [17.3pt,14.4pt,12pt,11pt,10pt,9pt,8pt,7pt,6pt,5pt,4pt] [mm] 
[mc=prodint]
\stoptypescript

\definetypeface [modern] [mm] [math]  [modern]
 [computer-modern][encoding=default]

\setupbodyfont[reset,modern,10pt]

\enablemathcollection[prodint]

\starttext

$\prodi,\Prodi,\PRODI$

This is {\bf boldface} text.

\stoptext
%

Do you have any suggestions to fix this?

Thanks,

Maarten-Jan





 

Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context





 

Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] How to use text Calligraphic font using \definefont

2006-12-05 Thread Aditya Mahajan
Hi,

  I have the following font definitions,

\usetypescriptfile
   [type-gyr]

\definetypeface  [mainface] [rm] [serif]   [palatino]  [default]
 [encoding=texnansi]
\definetypeface  [mainface] [cg] [calligraphy] [chancery]  [default]
 [encoding=texnansi]
\definetypeface  [mainface] [ss] [sans][kurier][default]
 [encoding=texnansi]
\definetypeface  [mainface] [mm] [math][euler] [euler]
 [encoding=texnansi,rscale=1.03]
\definetypeface  [mainface] [tt] [mono][modern][default]
 [encoding=texnansi]
\definetypeface  [boldface] [mm] [boldmath][euler] [euler]
  [encoding=texnansi,rscale=1.03]

\setupbodyfont[mainface,11pt]

I want to use the Calligraphic font font for headers etc, so I tried

\definefont[BigText]  [Calligarphic sa 2]

\BigText test

which gives me the math calligraphic fonts. How do I get the text 
calligraphic fonts, using \definefont?

Another question which is slightly OT: Is there a free handwriting 
font that matches with palatino? I am making a presentation and would 
like to write somethings in a informal font. Any suggestions?

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


[NTG-context] prodint typescripts remove style

2006-12-04 Thread M.J. Kallen
Hi Hans or Taco, or anyone else,

the typescripts which you (recently) suggested for the prodint symbol work, but 
it turns out that any font styles (for example \bf, \it, etc.) do not. In the 
following example, the boldface text remains normal:

%
% test document:

\definefontsynonym [MathGamma]  [prodint]

\definefamilysynonym [default]  [xop]   [mc]

\startmathcollection [default]

\definemathsymbol [prodi]  [op]  [xop] [80]  %80 prodinttext
\definemathsymbol [Prodi]  [op]  [xop] [82]  %82 prodintdisplay
\definemathsymbol [PRODI]  [op]  [xop] [84]  %84 prodintbig

\stopmathcollection

\loadmapfile[prodint]

\starttypescript [math] [modern,computer-modern,latin-modern,ams] [size]
   \definebodyfont [17.3pt,14.4pt,12pt,11pt,10pt,9pt,8pt,7pt,6pt,5pt,4pt] [mm] 
[mc=prodint]
\stoptypescript

\definetypeface [modern] [mm] [math]  [modern]
 [computer-modern][encoding=default]

\setupbodyfont[reset,modern,10pt]

\enablemathcollection[prodint]

\starttext

$\prodi,\Prodi,\PRODI$

This is {\bf boldface} text.

\stoptext
%

Do you have any suggestions to fix this?

Thanks,

Maarten-Jan





 

Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] bfrange block CMap error in pdf file

2006-10-01 Thread Sanjoy Mahajan
This file produces just a boldface 'a' via metafun:

= bf.tex ==
\setuppagenumbering[location=]
\starttext
\startreusableMPgraphic{fig}
  label (\sometxt{\bf a}, (0,0));
\stopreusableMPgraphic
\reuseMPgraphic{fig}
\stoptext
= bf.tex ==

'xpdf bf.pdf' produces tons of this error:

  Error: Illegal entry in bfrange block in ToUnicode CMap

The log file had complaints from pdfetex about not finding fonts:

Warning: pdfetex (file 
/home/sanjoy/texmf/fonts/map/dvipdfm/context/original-public-lm.map): invalid 
entry for `cmex9': font file missing

which I eventually fixed by getting it to use the pdftex map files
instead of the dvipdfm map files.  Though I don't understand fully why I
could fix it (but that's for another msg).

Even with the map files being found, the bfrange block error remained.
The test file worked fine on the context live, so I diffed its pdf file
with the one generated here, after uncompressing both (using pdftk:
pdftk bf.pdf output bb.pdf uncompress).

One difference is the following line in the broken pdf file:

/CIDInit /ProcSet findresource begin12 dict beginbegincmap/CIDSystemInfo 
/Registry (TeX)/Ordering (T1)/Supplement 0 def/CMapName /TeX-T1-0 
def/CMapType 2 def1 begincodespacerange00 FFendcodespacerange10 
beginbfrange0E 0F 203910 12 201C15 16 201321 26 
002128 5F 002861 7E 0061C0 D6 00C0D8 DE 00D8E0 F6 
00E0F8 FE 00F8endbfrange95 beginbfchar00 006001 00B402 
02C603 02DC04 00A805 02DD06 02DA07 02C708 02D809 
00AF0A 02D90B 00B80C 02DB0D 201A13 00AB14 00BB17 
200C19 01311B 006600661C 006600691D 0066006C1E 
0066006600691F 00660066006C20 242327 201960 20187F 
002D80 010281 010482 010683 010C84 010E85 011A86 
011887 011E88 013989 013D8A 01418B 01438C 01478D 
014A8E 01508F 015490 015891 015A92 016093 015E94 
016495 021A96 017097 
 016E98 017899 01799A 017D9B 017B9C 01329D 01309E 
01119F 00A7A0 0103A1 0105A2 0107A3 010DA4 010FA5 
011BA6 0119A7 011FA8 013AA9 013EAA 0142AB 0144AC 
0148AD 014BAE 0151AF 0155B0 0159B1 015BB2 0161B3 
015FB4 0165B5 021BB6 0171B7 016FB8 00FFB9 017ABA 
017EBB 017CBC 0133BD 00A1BE 00BFBF 00A3D7 0152DF 
00530053F7 0153FF 00DFendbfcharendcmapCMapName currentdict /CMap 
defineresource pop endend

If I remove the '\bf' from the test .tex file, 

= bf-rm.tex ==
\setuppagenumbering[location=]
\starttext
\startreusableMPgraphic{fig}
  label (\sometxt{\a}, (0,0));
\stopreusableMPgraphic
\reuseMPgraphic{fig}
\stoptext
= bf-rm.tex ==

the resulting pdf file views without any errors, and this is the
corresponding line in its uncompressed pdf file:

 /CIDInit /ProcSet findresource begin 12 dict begin begincmap /CIDSystemInfo  
/Registry (TeX) /Ordering (T1) /Supplement 0  def /CMapName /TeX-T1-0 def 
/CMapType 2 def 1 begincodespacerange 00 FF endcodespacerange 10 
beginbfrange 0E 0F 2039 10 12 201C 15 16 2013 21 26 
0021 28 5F 0028 61 7E 0061 C0 D6 00C0 D8 DE 00D8 E0 
F6 00E0 F8 FE 00F8 endbfrange 95 beginbfchar 00 0060 01 00B4 
02 02C6 03 02DC 04 00A8 05 02DD 06 02DA 07 02C7 08 
02D8 09 00AF 0A 02D9 0B 00B8 0C 02DB 0D 201A 13 00AB 
14 00BB 17 200C 19 0131 1B 00660066 1C 00660069 1D 
0066006C 1E 006600660069 1F 00660066006C 20 2423 27 2019 60 
2018 7F 002D 80 0102 81 0104 82 0106 83 010C 84 010E 
85 011A 86 0118 87 011E 88 0139 89 013D 8A 0141 8B 
0143 8C 0147 8D 014A 8E 0150 8F 0154 90 0158 
 91 015A 92 0160 93 015E 94 0164 95 021A 96 0170 97 
016E 98 0178 99 0179 9A 017D 9B 017B 9C 0132 9D 0130 
9E 0111 9F 00A7 A0 0103 A1 0105 A2 0107 A3 010D A4 
010F A5 011B A6 0119 A7 011F A8 013A A9 013E AA 0142 
AB 0144 AC 0148 AD 014B AE 0151 AF 0155 B0 0159 B1 
015B B2 0161 B3 015F B4 0165 B5 021B B6 0171 B7 016F 
B8 00FF B9 017A BA 017E BB 017C BC 0133 BD 00A1 BE 
00BF BF 00A3 D7 0152 DF 00530053 F7 0153 FF 00DF 
endbfchar endcmap CMapName currentdict /CMap defineresource pop end end 

One difference between the working and broken pdf file is the spacing in
that line.  The working pdf file has

  def /CMapType 2 def 1 begincodespacerange 00 ... beginbfrange 0E

The broken one has

  def/CMapType 2 def1 begincodespacerange00 ... beginbfrange0E

which may explain why xpdf is unhappy about the range entries.  

I'm not sure whether it's due to a further problem with my map files or
texmf.cnf paths, or is a bug in pdftex.  Any thoughts?

Distribution: Ubuntu 6.06 with tetex 3.0 plus lmodern from Debian pkg
pdfeTeX: Version 3.141592-1.30.6-2.2 (Web2C 7.5.5)
ConTeXt: ver: 2006.09.28 22:43 MK II  fmt: 2006.9.30  int: english/english

(the live context uses pdfeTeX-1.21a, and didn't produce a corresponding
CMap section, so it had no problem in xpdf).

-Sanjoy

`A society of sheep must in time beget a government of wolves.'
   -- Bertrand de Jouvenal
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Boldmath Lucida

2004-08-26 Thread Sytse Knypstra
Hi all,
When writing a mathematical text I encountered a few problems with bold 
symbols.
Under the line you will find three problems (dutch interface).
Are they due to my insufficient knowledge of installing fonts?
Thanks for any comment.

Sytse Knypstra
==
\definetypeface [mainface] [rm] [serif]   [lucida] [default] 
[encoding=texnansi]
\definetypeface [mainface] [tt] [mono][lucida] [default] 
[encoding=texnansi]
\definetypeface [mainface] [ss] [sans][lucida] [default] 
[encoding=texnansi]
\definetypeface [mainface] [mm] [math,bfmath] [lucida] [default] 
[encoding=texnansi]
\stelformulesin [methode=vet]
\gebruiktypescript [lucida] [texnansi]
\switchtotypeface  [lucida] [12pt]
\switchnaarkorps[mainface]
\usemathcollection[lbr]
\stelkorpsin[mainface]

\starttekst
Problem 1:
${\bfmath x}$   gives boldface standard  x.
${\bfmath x}{\bfm }$  gives boldface italic $x$ which is what I want.
${\bfmath \Gamma}$  gives a space;
only ${\bfmath \Gamma}{\bfm }$  gives the boldface italic $\Gamma$ that I want.
Problem 2:
${{\bfm \beta}}$  gives a wrong glyph (in fact the ligature 'fi').
Problem 3:
After $\bfm \beta$ the text is no longer  printed in the same Lucida Bright 
style as before.

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


Re: [NTG-context] bold math

2003-11-24 Thread Hans Hagen
At 10:48 21/11/2003, you wrote:
Ahoj,

On November 11 I asked the list how I could generate bold greek math 
symbols (I have the lucida family installed).
Until now I didn't get a response, so maybe I should be more specific.

Let me put it this way:
On page 12 of the `Fonts in ConTeXt' manual I find the footnote:
`Bold math is already prepared in the core modules, so normally one can do 
with less code.'

Can anybody tell me what code I have to add and where?
I would like to get the following line
$\theta = {\bfmath \alpha' x}$
with \theta in normal math and \alpha and x in math boldface?
First of all, the definition of \bfmath is broken (i probably never really 
tested it)

\def\bfmath{\bf\mf\synchronizesymb\mf}

i'll come back to more advanced mixed normal/bold switching later (playing 
a bit with that now);

a main switch to bold math is best done with a new typeface:

(i just found out that there's a typo in type-syn.tex and type-enc.tex: 
LucidaNewMath-Demibold - LucidaNewMath-DemiBold

\definetypeface [mainface] [rm] [serif]
  [lucida] [default] [encoding=texnansi]
\definetypeface [mainface] [tt] [mono]
  [lucida] [default] [encoding=texnansi]
\definetypeface [mainface] [ss] [sans]
  [lucida] [default] [encoding=texnansi]
\definetypeface [mainface] [mm] [math]
  [lucida] [default] [encoding=texnansi]
\definetypeface [boldmath] [rm] [serif]
  [lucida] [default] [encoding=texnansi]
\definetypeface [boldmath] [tt] [mono]
  [lucida] [default] [encoding=texnansi]
\definetypeface [boldmath] [ss] [sans]
  [lucida] [default] [encoding=texnansi]
\definetypeface [boldmath] [mm] [boldmath]
  [lucida] [default] [encoding=texnansi]
\switchtobodyfont[mainface] \usemathcollection[lbr]  \showmathtoken{Gamma}
\switchtobodyfont[boldmath] \usemathcollection[lbr]  \showmathtoken{Gamma}
\startlines
$x=10 \Gamma \Delta \alpha \delta \zeta$
{$x=10 \Gamma \Delta \alpha \delta \zeta$}
{$x=10 \Gamma \Delta \alpha \delta \zeta$}
$\mainface  x=10 \Gamma \Delta \alpha \delta \zeta$
$\boldmath  x=10 \Gamma \Delta \alpha \delta \zeta$
\stoplines

\startformula
  x=12=\fontbody  \Gamma \Delta \alpha \delta \zeta
\stopformula
\startformula[mainface]
   x=12=\fontbody  \Gamma \Delta \alpha \delta \zeta
\stopformula
\startformula[boldmath]
  x=12=\fontbody  \Gamma \Delta \alpha \delta \zeta
\stopformula
\startformula[boldmath,8pt]
  x=8=\fontbody  \Gamma \Delta \alpha \delta \zeta
\stopformula
\startformula[boldmath,12pt,small]
  x=12s=\fontbody  \Gamma \Delta \alpha \delta \zeta
\stopformula
\startformula[boldmath,small]
  x=s=\fontbody  \Gamma \Delta \alpha \delta \zeta
\stopformula
\startformula[boldmath,10pt]
  x=10=\fontbody  \Gamma \Delta \alpha \delta \zeta
\stopformula
\startformula[boldmath,11pt,small]
  x=11s=\fontbody  \Gamma \Delta \alpha \delta \zeta
\stopformula
\startformula[boldmath,9pt]
  x=9=\fontbody \Gamma \Delta \alpha \delta \zeta
\stopformula
\formula[boldmath]{1=2x}

Hans

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


[NTG-context] bold math

2003-11-21 Thread Sytse Knypstra
Ahoj,

On November 11 I asked the list how I could generate bold greek math 
symbols (I have the lucida family installed).
Until now I didn't get a response, so maybe I should be more specific.

Let me put it this way:
On page 12 of the `Fonts in ConTeXt' manual I find the footnote:
`Bold math is already prepared in the core modules, so normally one can do 
with less code.'

Can anybody tell me what code I have to add and where?
I would like to get the following line
$\theta = {\bfmath \alpha' x}$
with \theta in normal math and \alpha and x in math boldface?
Sytse Knypstra

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


Re: [NTG-context] Re: My first week with ConTeXt

2003-09-10 Thread Andreas Gschwendtner
On Wednesday, Sep 10, 2003, at 14:35 Europe/Berlin, Patrick Gundlach 
wrote:

could you provide some examples of what kind of documents you would
like to see and what especially you would like to learn?
Basically I want to typeset scientific documents in the form of a book 
-- nothing to fancy, nothing interactive. As a starting point, I would 
be very happy to have all the functionality back that I am used to with 
LaTeX and KOMA-Script:

- Placing figures and captions (see earlier questions in this thread)
- Different examples of formatting the table of contents (e.g. 
indenting sections and sub(...)sections, setting chapters boldface sans 
serif...)
- How to format the index (divided into sections preceeded by the 
appropriate uppercase letter, pagenumbers aligned right, \dotfill 
between word and pagenumber)
- How to format the bibliography (e. g. vertical space between the 
entrys)
- Define different page styles for the first page of each chapter (e. 
g. no headers) and the following pages

Not that I don't want to read manuals and experiment myself -- it just 
would be a big time saver to see how other people do things like 
that... As always, time is short if you are trying to finish a project 
-- at the moment I spend more time learning than writing text. Thanks 
for any support!

Andreas



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


Re: [NTG-context] Re: My first week with ConTeXt

2003-09-10 Thread Holger Schöner
Hi Andreas,

On Wed, 10 Sep 2003, Andreas Gschwendtner wrote:
 Basically I want to typeset scientific documents in the form of a book
 -- nothing to fancy, nothing interactive. As a starting point, I would
 be very happy to have all the functionality back that I am used to with
 LaTeX and KOMA-Script:

 - Placing figures and captions (see earlier questions in this thread)

Unfortunately I cannot help you there (more than already done ...)

 - Different examples of formatting the table of contents (e.g.
 indenting sections and sub(...)sections, setting chapters boldface sans
 serif...)

In ConTeXt the manual (cont-enp.pdf) there are some examples (p. 149ff.).
To achieve formatting dependent on heading level, you can setup their lists
separately, eg. \setuplist[chapter][...] \setuplist[section][...]. These
setups should be kept also in the combined list (content). This way you
could provide different indenting space (margin and distance) for different
sublevels. The key style is understood as well
(\setuplist[chapter][style=bold]), and in case the available style do not
suffice, you can provide commands:
\setuplist[chapter][style={\ss\bf}]
to get sans serif boldface.

 - How to format the index (divided into sections preceeded by the
 appropriate uppercase letter, pagenumbers aligned right, \dotfill
 between word and pagenumber)

I am wondering about that (the uppercase letter) as well.

You can right-align the numbers by typing
\setupregister[index][distance={5pt plus 1fill}]
unfortunately this does not give you the opportunity to fill the space with
dots.

 - How to format the bibliography (e. g. vertical space between the
 entrys)

As far as I remember, the bibliography module uses descriptions to format
the entries; ie. it should be possible to use \setupdescriptions[...][...]
to tune spacing (eg. the keys before, after, inbetween). I remeber
having read about it in the bibliography manual, there should be more in
there.

 - Define different page styles for the first page of each chapter (e.
 g. no headers) and the following pages

You use eg.
\setupheadertexts[text][][section][chapter][]
\setupheader[state=normal,style={\ss},leftwidth=10cm,rightwidth=10cm]
for general setup, and for the chapter pages
\setuphead[chapter][header=high,page=right]
instead of high you can also use empty (first removes header
completely, second leaves the space, although it is empty). You can also
define you own special header/footer texts:
\definetext[chapter][footer][pagenumber]
\setuphead[chapter][header=high,footer=chapter,page=right]
if you need a special footer on chapter pages. This is all in the mentioned
manual (p. 80f.).

But I know how hard it is to keep in memory where everything is written (or
at least, what is written ...) ;-)

-- 
Holger F. Schoener  TU Berlin; Dept. IV: EE and Computer Science
[EMAIL PROTECTED]   http://www.cs.tu-berlin.de/~hfsch/
Rooms FR2525Tel: +49-30-314-73115, Fax: -73121
Office FR 2-1   Franklinstr. 28/29, D-10587 Berlin, Germany



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


Re: [NTG-context] \setupheadertexts

2003-09-05 Thread John Culleton
On Monday 18 August 2003 18:32, Tobias Burnus wrote:
 Hi,

 John Culleton wrote:
  I want to have chapter names in the header text and I want them in
  boldface.

 How about:
   \setupheader[text][style=bold]
   \setupheadertexts[text][My book][chapter]

 or alternatively,
   \setupheadertexts[text][{\bf My book}][{\it \getmarking[chapter]}]

 Tobias

Well, I am almost home! My customer now prefers Small Caps letterspaced 
rather than  bold.  So I used example two above and an earlier post 
from Bill McClain to come up with this combination:

%First, the macros for extended (letterspaced) text:

\def\CapStretchAmount{.18em}
\def\CapStretch#1{\def\stretchedspaceamount{\CapStretchAmount}
\stretchednormalcase{#1}}

%Then the header text macro:

\setupheadertexts[text][][{\sc \getmarking[chapter]}][{\CapStretch{\sc 
The Health Seeker's Handbook}}][]

Out of  this melange I get small caps extended for the book title on the 
verso header.  But I can't seem to find the combination for both 
\CapStretch and \getmarking on the recto header.  Any attempt to insert 
\CapStretch on that side converts the chapter name back to the literal 
word chapter.  I have tried brackets, curly braces etc. in various 
combinations.

Any hints appreciated.  
-- 
John Culleton
Able Indexers and Typesetters
http://wexfordpress.com




Free 20MB Web Site Hosting and Personalized E-mail Service!
Get It Now At Doteasy.com http://www.doteasy.com/et/
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context