[NTG-context] Mkiv, fonts in text and math mode, with \definebodyfont

2019-09-30 Thread Stefano Sanguinetti
Hello,

I am trying to understand something more about fonts in text and math mode,
in Mkiv Context. I would like to be able to change things at the "define
body fonts" level.

I tried the following, in order to have rsfs fonts :
\setupbodyfont[12pt]
\definebodyfont[12pt][rm][tf=rsfs10 sa *]
\starttext
\tf ABCD
\tfa ABCD
\stoptext

The \tfa ABCD is displayed as rsfs as I wanted, but the \tf ABCD is
displayed as default fonts. Why ? What could I change in order to have \tf
ABCD in rsfs ?

In math mode, I am not able to have rsfs fonts :
\setupbodyfont[12pt]
\definebodyfont[12pt][mm][mr=rsfs10 sa *,ex=rsfs10 sa *,mi=rsfs10 sa
*,sy=rsfs10 sa *,ma=rsfs10 sa *,mb=rsfs10 sa *]
\starttext
$ABCD$
\stoptext

That gives ABCD in default math mode fonts.
Is there a simple way to do it with the \definebodyfont command ?

Thank you in advance for your comments.
___
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] TeXexec and MikTeX

2005-11-13 Thread Leon Di Stefano

Greetings

I have been trying to set up ConTeXt in Windows XP using MikTeX. I have 
been running LaTeX2e through TeXnic center fine.


On the basis of the TeXexec manual, I ran texexec --make en
I attempted to build a small file test.tex by running texexec --pdf 
test from the directory in which the file is located.


It said that the default format file could not be found.

I tried increasing the 'pattern memory ops' in the miktex.ini config 
file as you suggested to another TeXer; nothing happened.



The following message occurs in the log:

...

(C:\MiKTeX\tex\context\base\symb-mis.tex)
symbols : loading symbolset mvs
(C:\MiKTeX\tex\context\base\symb-mvs.tex)
symbols : loading symbolset glm
(C:\MiKTeX\tex\context\base\symb-glm.tex
! TeX capacity exceeded, sorry [hash size=35000].
\definefontsynonym ...?ff \fontclass #1\endcsname
  \@@fontfile 
\doifnextchare...

l.39 ...nonym [GuilSerifBold][cork-lmbx10]
 [encoding=ec]
If you really absolutely need more capacity,
you can ask a wizard to enlarge me.



Here is how much of TeX's memory you used:
 35451 strings out of 98461
 549342 string characters out of 1219912
 469342 words of memory out of 1048577
 35000 multiletter control sequences out of 35000
 7 words of font info for 0 fonts, out of 50 for 1000
 0 hyphenation exceptions out of 607
 23i,2n,28p,276b,536s stack positions out of 
1500i,500n,5000p,20b,32768s

 0 PDF objects out of 30
 0 named destinations out of 30
 1 words of extra memory for PDF output out of 65536
No pages of output.

...


Thanks,

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


[NTG-context] Figure / table caption format

2005-07-27 Thread Stefano
Hi,

I've been looking into the various ConTeXt resources to figure out how to
place a colon between the figure number and the caption text within the
document, as follows:

Figure 1:  This is a figure caption

Unfortunately I have not yet found it and am wondering if anyone can provide
a clue as to how this is accomplished.  Also, how can I left justify the
caption text within the document as follows:

Figure 1:  This is a figure caption
   that is too long to fit on 
   a single line of text

Any help is appreciated ...


Sincerely,

Stefano

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


RE: [NTG-context] bibmodule: two small questions

2005-03-30 Thread Stefano
Thomas,

I was able to set the spacing between items in the publications list by
using

\placepublications[before={\setupwhitespace[5pt]}]

Using \setupwhitespace before \placepublications did not work for me.


Stefano

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Behalf Of Thomas A.Schmitz
 Sent: Tuesday, March 29, 2005 15:16
 To: mailing list for ConTeXt users
 Subject: Re: [NTG-context] bibmodule: two small questions


 Thanks Taco!

 Actually, the \switchtobodyfont works even with \completepublications.

 But the spacing seems to have a problem even in newer versions --I use
 the latest and greatest:

 TeXExec 5.2.5 - ConTeXt / PRAGMA ADE 1997-2005

 texexec : TeXExec 5.2.5 - ConTeXt / PRAGMA ADE 1997-2005
 texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004
 tex : pdfeTeX, 3.141592-1.21a-2.2 (Web2C 7.5.4)
 context : ver: 2005.03.16
 cont-en : ver: 2005.03.16  fmt: 2005.3.23  mes: english

 Nevertheless, the space between items in the publicationlist is
 slightly smaller than between normal lines. You can observe it best if
 you set the interlinespace to something like 5ex.

 I tried something like

 \setuppublicationlist
  [after={\vskip2pt}]

 but this is just a guesstimate and will have to be adapted when I
 change the bodyfont or the interlinespace.

 On an unrelated note: A couple of months ago, somebody posted about
 problems with cross-references. You supplied a workaround then:

 \setbox0\vbox{\placepublications}
 \completepublications

 This still works, but any chance that the bug will be fixed?

 But most importantly: thanks for providing this wonderful tool!

 Best

 Thomas

 On Mar 29, 2005, at 6:05 PM, Taco Hoekwater wrote:

 
  Hi Thomas,
 
 
  Thomas A.Schmitz wrote:
  I've been playing with Taco's bibmodule, and I'm absolutely thrilled
  how easy it is to customize things. Once you've groked how things
  work, you can simply copy code from bibl-apa.tex and modify, it's
  just wonderful (OT: what does apa stand for in this abbreviation?
  For me, it's the American Philological Association, but I guess
  that's not meant here.)
 
  American Psychological Association, http://www.apastyle.org
 
  1. Is  there a general option to have the publicationlist typeset in
  a smaller font size? The default seems to be the general bodyfont,
  but I couldn't see where this could be modified.
 
  The easiest solution is not to use \completepublications, but
  \placepublications, something like this (untested):
 
\section{References}
\switchtobodyfont[8pt]
\placepublications
 
 
  2. The space between the items does not follow the normal
  interlinespace, but is fixed to a somewhat smaller value, which looks
  a bit bizarre. Is there any way to modify this behavior.
 
  I believe this may depend a bit on your ConTeXt  bib module
  version(s).
 
  The current one looks fine (I think), but I know for a fact that there
  have been some problems with older versions, and perhaps they have
  not been resolved properly. See the options to \setuplist in texshow,
  if you want to tweak the spacing between items, you can use all those
  options inside a \setuppublicationlist command.
 
  Greetings, Taco
  ___
  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

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


[NTG-context] bibmodule requests

2005-03-30 Thread Stefano
I have been using the bibmodule for a couple of weeks now, and it works
great!  ... but, I have run into some situations that are not considered.

(1) It would be nice to visually distinguish the cited author using a
different font or style in the text.  I was able to add \c!authorstyle to
\setupcite and make changes to the appropriate areas in the t-bib.tex
module.  I suppose I could also add a \c!yearstyle as well to allow for old
style figures.  In my case, I set \c!authorstyle={\em}

(2) Another situation arises when dealing with multiple references from the
same author in the same year.  The years have a lower case letter added,
such as 1995a, 1995b, 1995c, etc.

For example, let's say I have three entries:

article1 ... 1995a
article2 ... 1995b
article3 ... 1995c

These entries are labelled a,b,c when using BibTeX to process the .bib file
to the .bbl file.  Unfortunately, the .bbl file contains all entries, since
the .aux file contains the line \citation{*}.  If I cite article2 and
article3 in my document, the publication list uses 1995b and 1995c and my
citations use the same years, and doesn't start with 'a'.  The only way I
have found to remedy this situation is to create a .bbl file that only
contains the BibTeX entries which I have cited.  These cited entries are
listed in the .tui file that texexec creates.  Unfortunately, the .tui file
requires the entire .bbl file in order to list the entries cited ... so I
have devised the following process ...

step 1) run BibTeX using an .aux file that contains the line \citation{*}
step 2) run texexec document --once (this creates .tui with the list of
cited entries)
step 3) rename the .aux to ._au file
step 4) use the ._au and .tui files to create a new .aux which only lists
the entries cited instead of \citation{*} ... for example ...
\citation{Smith2001}
\citation{Jones1995}
\citation{Smith1999}
... etc.
step 5) run BibTeX again ... this will create a .bbl which only contains the
cited entries, ensuring that the years are labelled correctly i.e. 1995a,
1995b, etc.
step 6) run texexec document to create the final document

Is there any consideration to having .aux file created by texexec based on
the entries cited in the document?  I ended up creating a batch file to do
this so it's not really an issue for me.  Is there a better way to do this?

(3) Another issue I found is when using the
\cite[year][label1,label2,label3,etc.] and I have years such as 1995a,
1995b, 1995c, etc. only one of those years is listed, while if I use
\cite[author] or \cite[authoryear] or \cite[authoryears], all the required
years are listed.  Unfortunately, the grouped years are not in order i.e.
1995b before 1995a, but it looks like this depends on the ordering of the
labels.

(4) Another issue is with regards to the author names in the publication
list.  The first author is typically inverted (last name before first name),
but all subsequent authors are normal (first name before last name) ... for
example ... Smith, A.B, C.D. Jones, E.J. Doe, and J.T. Morgan ... The use of
author styles such as \normalauthor \invertedshortauthor, etc. applies to
the entire list of authors.  Is there any way to specify one style for the
first author and a different style for the second and subsequent authors?

(5) Is it possible to have additional annotations with a citation?  For
example, if I want to refer to page 27 from Smith et al., I would have
(Smith et al., 1995a, p. 27).  Another possibility is to have (e.g. Smith et
al., 1995a, p.27).  I suppose I could blank out the brackets in \setupcite
and do the following ... (e.g. \cite[smith1995], p.27) or create a custom
\def such as

\def\Cite[#1][#2][#3]{(#1 \cite[#2], #3)} and use it as such ...
\Cite[e.g.][smith1995][p. 27]

Any information is appreciated.


Sincerely,

Stefano

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


RE: [NTG-context] Re: how to use Times Roman font

2005-03-21 Thread Stefano
Patrick,

I tried the following both on the latest (2005-03-16) complete ConTeXt for
Windows mswincontext.zip and on live.contextgarden.net ...

\usetypescript[times][texnansi]
\setupbodyfont[times,12pt]
\starttext
\showfontstrip
\showbodyfont[times]
Roman \bf bold \it italics
\stoptext

On my system, the times font is completely blank and the log file complains
of missing characters (see my post from yesterday), while opening the
Acrobat file produced from live.contextgarden.net produces the following
message:

Could not find a font in the Resources dictionary - using Helvetica
instead.

In both cases, the roman font times is missing or incomplete to some
degree.  Am I using the correct syntax?  The times typescript is defined in
the ConTeXt files ...

Regards,

Stefano

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Behalf Of Patrick Gundlach
 Sent: Monday, March 21, 2005 05:07
 To: ntg-context@ntg.nl
 Subject: [NTG-context] Re: how to use Times Roman font



 [...]

  I also wonder why the pdf made at ConTeXtgarden opens in Acrobat with
  font substitution --

 I wonder why. Which fonts are substituted? What is your input file?

 Patrick

 --
 ConTeXt wiki: http://contextgarden.net
 ___
 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] how to use Times Roman font

2005-03-20 Thread Stefano
Xue,

I tried the following on the latest full Windows ConTeXt download
(mswincontext.zip - 2005-03-16)

\usetypescript[times][texnansi]
\setupbodyfont[times,12pt]
\starttext
\showfontstrip
\showbodyfont[times]
Roman \bf bold \it italics
\stoptext

... and the \rm font (times) is missing.  The log file complains of missing
characters ...

Missing character: There is no A in font texnansi-utmr8a!

I then tried it on http://live.contextgarden.net/ and the PDF loads, but
Acrobat complains of a missing font (times) and substitutes Helvetica.

I also tried many varied combinations and met with failure on each one.

I realize that either the font files, or the means by which they are called
within a document are in transition, but it would be very helpful if a
sample document(s) were created which demonstrates and uses all the fonts
provided with a complete ConTeXt install.  This would serve several
purposes:

1) it would demonstrate all the available fonts;
2) it would provide an up to date record of the proper and most recommended
way of calling those fonts within a document.
3) it would serve as a test to ensure all the fonts were installed and are
working as intended

Perhaps such a document already exists, but I have not (yet) found it ...

Regards,

Stefano

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Behalf Of [EMAIL PROTECTED]
 Sent: Sunday, March 20, 2005 20:31
 To: ntg-context@ntg.nl
 Subject: Re: [NTG-context] how to use Times Roman font


 Hi ishamid!

 Yes, neither of them seems to work in my box :(

 The error log as follows:

 ___
 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