[NTG-context] \mathematics might be missing \everymathematics

2019-02-19 Thread Henri Menke
Dear Hans,

In the following example I want to locally set lcgreek=normal but it is
not picked up because the attribute is not propagated.  When I enter
\everymathematics manually it works fine.  Is this by design or is this
a bug?  MWE below.

Cheers, Henri

---

\starttext

The greek letter should be upright here

\m[lcgreek=normal]{\varphi}

\m[lcgreek=normal]{\the\everymathematics\varphi}

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


[NTG-context] modules or packages for abbreviations for common math commands

2011-05-03 Thread Paul Menzel
Dear ConTeXt folks,


is there a module or a package people have created for common things
used in mathematics.

`\set{ a, b, c }` for a set.
`\EV{X}` for the expected value.
`\P{ X = ½ }` for the probability.
…

If not, maybe a module could be created and maintained together to not
reinvent the wheel.


Thanks,

Paul


signature.asc
Description: This is a digitally signed message part
___
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] Typesetting Markdown – Part 7: Mathematics

2019-08-06 Thread Thangalin
https://dave.autonoma.ca/blog/2019/08/06/typesetting-markdown-part-7/

This installment tackles a cost-benefit analysis problem comparing
electric to gasoline-powered vehicles, calls into R for amortization,
typesets math and a repayment schedule, continues to explore the
separation of content from presentation, and expands on the shell
scripts from previous parts.

Feedback is welcome, especially about the ConTeXt-related items (see
Style and Math near the bottom).

Thanks for reading!
___
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] Random numbers in metapost

2009-12-31 Thread Taco Hoekwater

David Arnold wrote:

Hi,

Does anyone have any strategies for drawing random numbers from
various statistics distributions in Metapost? For example, say,
drawing 100 random numbers from a beta distribution?


Assuming you are using mkiv: create a lua function and use its
calculated results to create the metapost code. Metapost only knows
about uniformdeviate and normaldeviate, and metapost is not a good
language to program mathematics in.

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Sparklines to be in ConTeXt?

2005-07-31 Thread Hans Hagen

Tobias Wolf wrote:


Hey,
what do you people actually think about E. Tufte's Sparklines?²
They are a great and innovative thing in my mind; both in the
information mediating and the typographic sense.
 


Can you be a bit more specific? You mean small and/or condense inline graphics? (btw, a 
variant on such in line graphics can be found in "concrete mathematics" (dices)

What kind of support is actaully needed? 

Hans 




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

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


Re: [NTG-context] Building formats from within Scite

2006-02-03 Thread David Arnold
No Ctrl+9 on my menus.

On Feb 3, 2006, at 10:54 AM, Taco Hoekwater wrote:

> David Arnold wrote:
>> All,
>>
>> Hans tells me that I can rebuild formats from within Scite, but I
>> cannot figure out how?
>
> It should be under Ctrl 9, but doesn't work for me either. My scite
> seems to dislike this line in context.properties:
>
>if $(context.distribution.writable)
>
> it is apparently never true.
>
> Taco
> ___
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context

David Arnold
College of the Redwoods
Mathematics Department
Eureka, CA 95501
(707) 476-4222
http://online.redwoods.edu/instruct/darnold/


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


Re: [NTG-context] math in ConTeXt

2004-06-25 Thread Tobias Burnus
Hello,
[EMAIL PROTECTED] wrote:
is ConTeXt prepared for math?
 

With regard to mathematics ConTeXt can do all things which plain TeX can.
I mean...can I do...
$\sum_{i=1}^{n}{x_{i}}$
as I used to in LaTeX?
 

Yes. For displaymath you can use plain TeX's $$\sum$$ or better
\placeformula
\startformula
\stopfromula
(LaTeX's \[ ... \] doesn't work.)
I don't make the \Sigma to be under and over characterised by i=1 and n.
In inline math you need \limits\sum if you want to have the i=1 below 
and the n above the sum sign. If I'm not mistaken, LaTeX does the same.

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


Re: [NTG-context] \hpos in math

2022-12-06 Thread Gavin via ntg-context
Hi Hans,

> On Dec 6, 2022, at 2:15 AM, Hans Hagen via ntg-context  
> wrote:
> On 12/6/2022 12:39 AM, Gavin via ntg-context wrote:
>> 1) Is there a mathematics version of \hpos? The contents of \hpos are set as 
>> text, even when \hpos is in mathematics, so I wrote an \mpos macro that uses 
>> \hpos but sets the contents as display-style math. This isn’t great for 
>> spacing, and it does't adapt to different math styles. \framed has a math 
>> version, \mframed, that sets the contents in the appropriate math style. If 
>> anyone know a way to accomplish that with \hpos, I’d love to know.
> 
> there actually is a subsystem that keeps math as-is-it (styles and spacing 
> and such), see attached

I tried using \mathboxanchored, and was able to get the bottom two equations 
shown here. (The top equation uses \hpos, for comparison.)



mathboxanchored.pdf
Description: Adobe PDF document

There are two problems that I didn’t know how to fix.

1) The line connects to the box including the subscript or superscript, not 
just to the e.
2) I cannot make multiple connections to a single object, like the e^\mu in the 
center. If I try to connect top and bottom, I get no connections anywhere in 
the entire document.

The code for the formulas is:

\startformula
  % Each \connectboxanchors works alone, but both together make trouble:
\connectboxanchors[top][top]{X}{Y}
%\connectboxanchors[bottom][bottom]{Y}{Z}
  \mathboxanchored{X}{e}_\alpha \mathboxanchored{Y}{e}^\mu 
\mathboxanchored{Z}{e}_{\dot\beta}
= \textfrac{1}{\sqrt{2}}\sigma_{\alpha\dot\beta}^\mu
\stopformula

I added code to turn the arrow produced by \connectboxanchors into my 
contraction overlay, but that doesn’t affect these issues.

> in your example we need a way to anchor on just the 'e' right? or do you want 
> it on the e + super/subscript?

Yes, we only need to anchor to e. 

Thanks!
Gavin___
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] Change kerning between math characters (prime and left parenthesis)

2017-06-02 Thread Hans Hagen

On 6/2/2017 10:59 AM, Mikael P. Sundqvist wrote:

Hi!

Now that the bug with primes is fixed in ConTeXt, I wonder if there is
a way to change the kerning between certain characters in mathematics
(in case one is not happy with the output from the font)? After
reading in fonts-mkiv.pdf this is what I came up with:


you can also play withj:

return {
name = "cambria-math",
mathematics = {
   kerns = {
  [0x1D453] = {
  force = true,
  topright = {
  {
  kern = 1000,
  },
  },
  bottomright = {
  {
  kern = 1000,
  },
  },
  },
  },
},
}

currently you need to enable this:

\enabledirectives[fontgoodies.mathkerning]

keep in mind that some cambria (not all) have such staircase kerns which 
is why force is needed in order to overload



\startluacode
fonts.handlers.otf.addfeature {
name = "kerntest",
type = "kern",
data = {
[0x61] = { [0x62] = -150 }, -- a and b in text
[0x1d44e] = { [0x1d44f] = -150 }, -- mathematical italic small a and b
[0x02032] = { [0x00028] = -150 }, -- prime and left parenthesis
}
}
\stopluacode

\definefontfeature[kerntest][kerntest=yes]

\definefontfamily[lucidaopentype][rm][Lucida Bright OT]
\definefontfamily[lucidaopentype][mm][Lucida Bright Math OT]

\setupbodyfont[lucidaopentype,10pt]


\startTEXpage[offset=3pt]
abba $abba f'(x)$

\addff{kerntest}

abba $abba f'(x)$

I prefer $f'\mkern-3mu(x)$
\stopTEXpage

The output is attached as a png file. As you see the kerning works as
expected in text mode, but not at all in math mode, even not for the a
and b (which I hope I entered correctly).

Something like the third line is what I'm after, but not having to use
\mkern in all places. Is it possible?

/Mikael

PS: This is a cross post of the question
https://tex.stackexchange.com/q/372857/52406, where I got the
suggestion to ask on the list.



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




--

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

Re: [NTG-context] Converting from LaTeX for PDF accessibility tagging?

2020-06-28 Thread Aditya Mahajan

On Sun, 28 Jun 2020, Alasdair McAndrew wrote:


I tried ConTeXt a few years ago, then gave up on it because of its
wordiness and verbosity.  The 2006 article on creating AMSTeX output in
ConTeXt at https://www.ntg.nl/maps/34/06.pdf shows exactly what I mean: the
LaTeX commands are small and neat; the ConTeXt commands are not.


As explained in the last paragraph, there are pre-built shortcuts for the main 
alignments and you can define your own to match amsmath style, if you wish.

If you are worried about typing, look into tab completion for your editor of choice. For 
example, in vim, I can do `for` which expands to `\startformula ... 
\stopformula` and `fora` expands to `\startformula \startalign ... \stopalign 
\stopformula`.


However, I need now to use ConTeXt for accessibility tagging, so I'm
prepared to give it another try.  And this means converting some LaTeX
documents into ConTeXt.  Is there a better way than using pandoc?  I ran a
LaTeX document through pandoc, but the result is certainly not fully
"ConTeXt compliant", and generates errors instead of compiling.


AFAIK, pandoc is not aware of context math. When I convert latex to context, I 
find it simpler to do it some hand written regex which translate commands 
according to my writing style.


I can get easily lost on the ConTeXt site: the documentation is there in
plenty, but seems hard to search.  The main problem for me is mathematics
and alignment: not just for equations, but for matrices and arrays.  What
I'd love - if it exists - is a document showing how to rewrite LaTeX into
ConTeXt.  Something like the above document, which is now 14 years old.


The user-interface is still the same.


Anyway, as I say, my main issues are converting LaTeX into ConTeXt. and
dealing with mathematics.  Any pointers would be gratefully received!


Can you post an example of LaTeX math that you are having difficulty in 
converting? It is hard to answer this in the abstract.

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


Re: [NTG-context] Problem with special first page of chapter setup

2005-10-28 Thread Peter Rolf
Gerben Wierda wrote:
> I have this setup in my environment file:
> 
> =
> \setuphead
>   [chapter]
>   [page=,
>before=\setups{chapter:before},
>after=\setups{chapter:after}]
> 
> \startsetups chapter:before
> 
> \page[left]
> 
> \noheaderandfooterlines
> 
> \startalignment[left,nothyphenated]
> \startnarrower[4*left]
> \noindent \em \setups[chapter:quote]
> \stopnarrower
> \stopalignment
> 
> \resetsetups[quote:text]
> 
> \page[right]
> 
> \noheaderandfooterlines
> 
> \blank[force,2*big]
> 
> \stopsetups
> 
> \startsetups [chapter:after]
> 
> \blank[3*big]
> 
> \stopsetups
> ===
> 
> But when I call it
> 
> ===
> \starttext
> \startsetups [chapter:quote]
> Lee Chong's is to the right of the vacant lot (although why
> it is called vacant when it is piled high with old boilers, with rusting
> pipes, with great square timbers, and stacks of five-gallon cans, no 
> one can
> say).\crlf
> {\tf John Steinbeck} --- Cannery Row\crlf
> \crlf
> Doc explained patiently, ``Both players know exactly the same
> things. The game is played in the mind.''\crlf
> ``I don't get it.''\crlf
> ``Well, look! You can't cheat in mathematics or poetry or music because
> they're based on truth. Untruth or cheating is just foreign, it has  no
> place.
> You can't cheat in arithmetic.\crlf
> {\tf John Steinbeck} --- Sweet Thursday
> \stopsetups

\startbuffer
Lee Chong's is to the right of the vacant lot (although why
it is called vacant when it is piled high with old boilers, with rusting
pipes, with great square timbers, and stacks of five-gallon cans, no
one can
say).\crlf
{\tf John Steinbeck} --- Cannery Row\crlf
\crlf
Doc explained patiently, ``Both players know exactly the same
things. The game is played in the mind.''\crlf
``I don't get it.''\crlf
``Well, look! You can't cheat in mathematics or poetry or music because
they're based on truth. Untruth or cheating is just foreign, it has  no
place.
You can't cheat in arithmetic.\crlf
{\tf John Steinbeck} --- Sweet Thursday
\stopbuffer

\startsetups chapter:quote
  \getbuffer
\stopsetups


This works for me. But you better give the buffer a name :)

Gretings,

Peter

> \chapter[h:foo]{Foo}
> ===
> 
> I get that every word that is in the input file at th eend of a line  is
> glued (no whitespace) to the word that is on the next line of the  input
> line.
> 
> How can I solve this?
> 
> Thanks
> 
> G
> ___
> 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] [Fwd: [MacTeX] real-world projects using TeX/ConTeXt]

2004-06-21 Thread Hans Hagen
Maybe users on this list can contribute?
Hans 

-
 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
-
--- Begin Message ---
Hans:

Do you think your ConTeXt users would
have examples they would like to contribute?

Can we send this to your list as-is?
Ross isn't a member of your list so couldn't send it out
to the list directly.

/// wendy





Dear ConTeXt Users

We are looking for ConTeXt examples in the real world.
There is a link to the ConTeXt showcase here:
http://www.tug.org/twg/mactex/whatistex.html

Please see the attached  request from Ross.

Thanks.

-- Forwarded message --
Date: Mon, 21 Jun 2004 09:20:46 +1000
From: Ross Moore <[EMAIL PROTECTED]>
Reply-To: MacOS X and TeX. <[EMAIL PROTECTED]>
To: MacOS X and TeX. <[EMAIL PROTECTED]>
Cc: [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: [MacTeX] real-world projects using TeX

Hi everyone,

The MacTeX Working Group of TUG is compiling lists of links
to examples where TeX is integrated into a larger work-flow:

 http://www.tug.org/twg/mactex/realworld.html
http://www.tug.org/twg/mactex/morerealworld.html

This is *not* meant to include traditional general-purpose
front-end editor-like TeX applications, such as WinEDT, TeXShell,
TeXShop, VTeX, Textures, OzTeX, etc.  which are listed aready at
  http://www.tug.org/interest.html.

Also, it doesn't include the obvious traditional application of
technical journals (esp. mathematics), though things like:
   *  online encyclopaedia
   *  abstract submission system with TeX preview
could be appropriate.


Furthermore, single documents which are particularly well-designed
and really show-off the power of TeX, are not what we are looking
for here. But these *would* be suitable candidates for inclusion
on the  `show-case' page:

 http://www.tug.org/texshowcase/


Please reply to either myself or:  [EMAIL PROTECTED]
with suggestions ***including links***  for additions to any
of the above-mentioned lists.


Happy TeX-ing

Ross



Ross Moore     [EMAIL PROTECTED]
Mathematics Department office: E7A-419
Macquarie University   tel: +61 +2 9850 8955
Sydney, Australia  fax: +61 +2 9850 8114



Deze e-mail is door E-mail VirusScanner van Planet Internet gecontroleerd op virussen.
Op http://www.planet.nl/evs staat een verwijzing naar de actuele lijst waar op wordt 
gecontroleerd.




--- End Message ---


Re: [NTG-context] iso latin 2 ; storm fonts

2005-03-15 Thread Adam Lindsay
Vit Zyka said this at Tue, 15 Mar 2005 19:23:05 +0100:

>   enco-st1.tex - ec encoding with storm glyph extension
>   enco-st2.tex - xl2 encoding with storm glyph extension
>   enco-st3.tex - variants (additional glyph) for enco-st1 and enco-st2

Vit,

I would refer you to this thread with Thomas Schmitz on "variant encodings":
<http://www.ntg.nl/pipermail/ntg-context/2005/009057.html>

I'd call your st1 an EC variant, st2 an XL2 variant, and st3 some sort of
custom expert encoding. Ultimately names aren't *that* important, but
they can help a lot when others try to pick up and understand your work.

>? I have a problem to define mathematics chars. I did:
>\starttypescript [math] [dynamoRE] [st1]
>   \definefontsynonym [DynamoRE-Math-Letters][sdgr8te] 
>[encoding=st1]
>   \definefontsynonym [DynamoRE-Math-Letters-Italic] [sdgri8te] 
>[encoding=st1]
>   \definefontsynonym [DynamoRE-Math-Symbols][sdgr8te]
>%  \definefontsynonym [DynamoRE-Math-Extension][]
>\stoptypescript

>But I get error: !Math formula deleted: Insufficient symbol fonts.
>Where is the problem?

I don't know. In doing some math font adaptations, I haven't run into
that error message. Basically, with all the mathematics work you're
proposing, I don't have enough information to follow what you did and to help.

Were there any .enc files you created for these math fonts? How did you
install them? Math fonts generally require different metrics.

>? - \starttypescript [*] [fallback] is generaly useful. Is a good idea 
>to move it from large type-buy.tex somewhere else?

Have you looked at ThisWay #9 yet? <http://pragma-ade.com/show-mag-10.htm>
I haven't had a chance to play with them yet, but the \setups[font:
fallback:sans] look to be helpful.

>? Storm fonts have different accent shapes for lover/upper case letters. 
>Is there some mechanism to distinguish this making the composits?

I don't know.
But I presume that you're play^H^H^H^Hexperimenting with these customised
encodings because you want to use the full complement of designed
characters, right? How many of these composite characters will you be needing?

cheers,
adam
-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Adam T. Lindsay, Computing Dept. [EMAIL PROTECTED]
 Lancaster University, InfoLab21+44(0)1524/510.514
 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

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


[NTG-context] Project structure: Specifying environment in component

2021-06-09 Thread mastermind_ x
Hello everyone,

I am creating a project of notes across different areas of mathematics I am 
studying and the structure looks like this:

env_notes.tex
project_notes.tex
geogroups/groups-prd_geometry-groups.tex
geogroups/groups-c_chapter1.tex

I am following this wiki: https://wiki.contextgarden.net/Project_structure

My question is: Why do I need to specify 
\environment env_notes
before It works at the component level? The wiki didn’t say that. Plus it is 
already specified at the product level. Thanks.

~Jethro___
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] Nested $$ in inline math

2021-12-13 Thread Jack Hill via ntg-context
Dear list,

I was playing around and found that nesting $$s inside of \m blocks
typesets the code as text.
I can't find anything about this on the wiki or in the math-mkiv manual, so
I'm asking whether this is supported behaviour or just a bug?

Jack

\starttext
% All the same
\mathematics{math $text here$ math} \\
\math{math $text here$ math} \\
\m{math $text here$ math} \\
\m{math \text{text here} math} \\
\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] Nested $$ in inline math

2021-12-13 Thread Hans Hagen via ntg-context

On 12/13/2021 6:57 PM, Aditya Mahajan via ntg-context wrote:

On Mon, 13 Dec 2021, Hans Hagen via ntg-context wrote:

which indeed makes

\starttext
  \mathematics{$text$}
\stoptext

a puzzle


Isn't that effectively:

$\relax$text$\relax$

which prevents the $$ lookup.

Indeed, you solved it.

Hans

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


Re: [NTG-context] Problem with first setup of StandAlone ConTeXt

2015-12-15 Thread Bruce Boghosian
Dear Mojca:

> On Dec 15, 2015, at 10:20 AM, Mojca Miklavec  
> wrote:
> 
> [...]
> 
> ... oh, and I just noticed one more thing that might be causing the
> problem. You also need to remove the TEXMF variable.

That fixed it!!!

Thanks very much to everybody for all the informative help and advice.

Best regards,
Bruce

Bruce M. Boghosian
Professor, Department of Mathematics, Tufts University
Bromfield-Pearson Hall, Medford, Massachusetts 02155, USA

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

2016-02-12 Thread Alan BRASLAU
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)?

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] \mathematics might be missing \everymathematics

2019-02-25 Thread Henri Menke
Bump

On 19/02/19 10:02 PM, Henri Menke wrote:
> Dear Hans,
> 
> In the following example I want to locally set lcgreek=normal but it is
> not picked up because the attribute is not propagated.  When I enter
> \everymathematics manually it works fine.  Is this by design or is this
> a bug?  MWE below.
> 
> Cheers, Henri
> 
> ---
> 
> \starttext
> 
> The greek letter should be upright here
> 
> \m[lcgreek=normal]{\varphi}
> 
> \m[lcgreek=normal]{\the\everymathematics\varphi}
> 
> \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] Typesetting Markdown

2019-05-23 Thread Thangalin
Hi Gour,

I added an abstract, an overview section with the plan, and an RSS feed:

https://dave.autonoma.ca/blog/2019/05/22/typesetting-markdown-part-1/

One of the reasons I chose Pandoc's Markdown is for its support of classes
and annotations. I looked into the pandoc-xhtml link and it looked both
incomplete and lacking support for typesetting mathematics.

Have a read and let me know what you think!

Thank you for the feedback.
___
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] Drawing chemical structures

2013-11-21 Thread Alan Braslau
On Thu, 21 Nov 2013 15:55:09 -0500
Aditya Mahajan  wrote:

> Unicode alpha gets translated to \greekalpha, so you need a font
> (like dejavu) that includes those glyphs

Yes, thanks for this clarification.
When I tested this earlier, I was indeed using dejavu...
In the chemistry macros, we are using a particular version of
mathematics mode (subscripts, superscripts, ...) but in normal font, so
greek characters, etc. will work if the font includes them.

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] OT: Reflections on usability ConTeXt for typesetting of mathematics

2014-02-13 Thread Khaled Hosny
On Thu, Feb 13, 2014 at 02:40:18PM +0100, Mikael P. Sundqvist wrote:
>
> I do not agree with you. It is not so important to have the same syntax as
> in LaTeX (exception: it would be nice to get double bars from \| since it
> does not make sense to have \| yield a single bar since | does)

That is the Plain TeX syntax for double bar FWIW.

Regards,
Khaled

___
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] Notation of the first derivative in mathematical mode (lmtx)

2020-08-03 Thread Fabrice Couvreur
Hello,
I replaced the context engine with the lmtx engine but I find that the
derivative symbol is too high regardless of the font used.
I mainly use modern and pagella because I type many texts using
mathematics: can we correct this problem,
Thanks for your help.
Fabrice

\starttext
\startitemize[n]
  \startitem
\math{f'(x)=x²+4x+4}
  \stopitem
  \startitem
 \math{f''(x)=2x+4}
  \stopitem
\stopitemize
\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
___


[NTG-context] itemize

2010-10-19 Thread Herbert Voss
An example from the documentation:

\starttext

\startitemize[1,packed]
\head supported image formats in \PDFTEX \par
  \startitemize[a]
  \item png \item eps \item pdf
  \stopitemize
\head non supported image formats in \PDFTEX \par
  \startitemize[continue]
  \item jpg \item gif \item tif
  \stopitemize
\stopitemize

\stoptext

I get with mkIV (TeXLive2010)
[...]
systems : begin file .tex at line 3
! Math error: parameter \Umathquad\displaystyle is not set.
\mathematics ... #1\else \Ustartmath #1\Ustopmath
  \fi
\dodosymbol ...bol \csname \??ss :#1:#2\endcsname
[...]

Herbert


___
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] Sans Serif Math Font

2013-02-02 Thread Troy Henderson
>
> What I don't know is how to properly switch to sans serif math
> "globally"/by default. The command \mathss gives upright instead of
> italic letters.
>

If you figure that out, please let me know.  That would be great.  I am
about to create an online mathematics course where I will be using quite a
few onscreen presentations, and I really should be using sans serif fonts
for this.  So, any help you could provide would be outstanding.

Thanks again Mojca,

Troy
___
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] MkIV \digits bug

2009-02-15 Thread Wolfgang Schuster

Hi,

the \digits command cause a error message with the last beta in MkIV.


% engine=luatex
\starttext
\digits{1.000}
\stoptext


! \textfont 1 is undefined (character :).
\mathematics #1->\relax \ifmmode #1\else $#1$
 \fi
\doscandigit ...\digitoutputmode ,\else .\fi \fi }
  \egroup
\digitsep ...x \digitsepbox \hbox {\doscandigit #1
  }\fi \chardef  
\skipdigit 0...

\scandigits #1->\if #1.\digitsep 1
  \else \if #1,\digitsep 2\else \if  
#...@\digi...

\next *#1->\dododohandletokens {#1}
   \dohandletokens
 1.
 000
...
l.3 \digits{1.000}


Best regards,
Wolfgang

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] changing from oldstyle to upright

2005-08-20 Thread Taco Hoekwater

Idris Samawi Hamid wrote:

Dear consortium,

Switching to oldstyle is easy:

\usetypescript [modern][\defaultencoding]
\usetypescript [map]   [latin-modern-os] [\defaultencoding]
\setupbodyfont [modern]

But how do I locally switch back to upright? Declaring


I don't think you can, actually. There are no metric files
for oldstyle in the latin modern distribution, only an encoding
vector (and .map).

Pdftex either uses entries from the 'lining' map file, or from
the 'oldstyle' mapfile, but it has no way of distinguising
between the two (the fonts have the same metrics).

The reverse of the old oldstyle trick should work though:

  \def\liningfigures#1{\mathematics{#1}}

Cheers, Taco

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


Re: [NTG-context] MyWay doesn't agree

2006-05-05 Thread David Arnold
Aditya,

I updated my Context and all is now well.

Thanks.

On May 4, 2006, at 5:31 PM, David Arnold wrote:

> Aditya,
>
> This code:
>
> \starttext
>\startformula \startalign[m=2,distance=5em]
> \NC a_1 x + b_1 y \NC = c_1 \NC d_1 u + e_1 v \NC = f_1 \NR
> \NC a_2 x + b_2 y \NC = c_2 \NC d_2 u + e_2 v \NC = f_2 \NR
> \stopalign \stopformula
> \stoptext
>
> Doesn't produce the result advertised in your MyWay.
>
>
> David Arnold
> College of the Redwoods
> Mathematics Department
> Eureka, CA 95501
> (707) 476-4222
> http://online.redwoods.edu/instruct/darnold/
>
>
> ___
> 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] Footnote in columns interlinespace

2007-01-29 Thread Michal Kvasnicka
Good noon.

I typeset a document in two columns on the grid. Footnotes I place in
the "columns".
\setupfootnotes
  [rule=off, way=bypage, location=columns, conversion=set 3,
before={\blank[line]}]
\setupfootnotedefinition
  [location=left,width=fit, sample={\mathematics{\star\star\star}\
},hang=1]
How can I set interlinespace to a smaller distance? (I don't care that
the footnote lines would not be on the grid---I prefer it to a very
loose interlinespace.) I guess that there is better way than to write
\footnote{\setupinterlinespace[line=9pt] ...\par}
Moreover, it doesn't work well since on the first line is apparently
inserted a strut.

Many thank for you help.
Michal Kvasnicka


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


[NTG-context] strange text/math spacing

2007-02-22 Thread Vyatcheslav Yatskovsky
Hi, 

I found a small but annoying thing about math. When I typeset in-line formula 
like '...a vector of $a_x$ is...', it creates too little space between 'of' and 
succeeding lowercase math symbol.Uppercase math symbol is treated right.  I can 
leave it as it is, but it strange to me why TeX performs poor on that. 

(There too many 'of' for testing purposes).

 
\starttext 

In MATLAB, we can create the Leslie matrix using {\tt gallery('leslie', A, B)} 
command, where of $A$ is a vector of $a_x$ with dimensions of $[1:X]$ and of 
$B$ is a vector of \mathematics{b_x} with dimensions of $[1:X-1]$. 

\stoptext 
 

Best, 
Vyatcheslav 

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


Re: [NTG-context] TeX's \downbracefill and \upbracefill

2021-10-12 Thread Rudolf Bahr via ntg-context
Am Tue, Oct 12, 2021 at 01:24:29PM +0200 schrieb Hans Hagen:
> On 10/12/2021 7:47 AM, Rudolf Bahr via ntg-context wrote:
> > 
> > 
> > Hello to all,
> > 
> > in Knuth's "The TeXbook" page 225/226 (excerpt is appended here) braces
> > are to be seen which I'd need to typeset a genealogical table.
> > 
> > Now, the commands \downbracefill and \upbracefill are no context commands.
> > Please, are there correspondings to them?
>  $\overbrace{\hbox{}}$
> 
>  \mathematics{\overbrace{\hbox{}}}


It works well. Thank you, Hans!

Rudolf
___
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] BUG(?): asciimath does not support ||

2017-01-23 Thread Aditya Mahajan

On Fri, 20 Jan 2017, Henri Menke wrote:


Dear devs,

In mathematics the norm of something is usually denoted by the double vertical 
bars, e.g. ||v||.  This is not available in asciimath.

\usemodule[asciimath]
\starttext
$\asciimath{ x^* = min { x | sum_{kk} ||f(x_{kk}^{20})|| } }$
\stoptext

Could you please add this to the parser?


IIRC, x-asciimath implements (part of?) the asciimath markup:
http://asciimath.org
https://en.wikipedia.org/wiki/AsciiMath

Typing the above formula on the asciimath website does not render it 
correctly.


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

Re: [NTG-context] text in mathematics

2018-07-09 Thread Hans Åberg

> On 8 Jul 2018, at 23:00, Otared Kavian  wrote:
> 
> The advantage being that if the above formula appears in an environment such 
> as a Theorem (where the text is typeset in italic, or slanted) the text in 
> the above \mbox will be also in italic or slanted.

Math displayed formula text inheriting the style of the text appears in two 
books from first published in 1966 and 1980 that I checked.

So a math text command should probably support that style.


___
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] Equilibrium in chemical resulted in Undefined Control Sequence error

2011-10-10 Thread Hongwen Qiu
Hi,

The following minimal example:

==
\starttext

\chemical{A,+,B,<->,AB}

\stoptext
==

gives the following error under context version: 2011.10.08 11:42,
luatex version beta-0.70.1-2011051918:

! Undefined control sequence.

system  > tex > error on line 10 in file test.tex: Undefined
control sequence ...

1 \starttext
2 
3 \chemical{A,+,B,<->,AB}
4 
5 \stoptext
6 

 \xrightpverleftarrow 
    {}{}
\mathematics ...mmode #1\else \normalstartimath #1
  \normalstopimath \fi 
\@@cm::i:equilibrium ...\xrightpverleftarrow {}{}}
  \enspace 
l.10 \chemicalequilibrium
 
\inlinechemical ...emicals.inline(\!!bs #1\!!es )}
  }
l.3 \chemical{A,+,B,<->,AB}
   
? 

___
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] Chart tricks

2010-06-16 Thread Vyatcheslav Yatskovsky

Hello,

Please, help me with the chart. I need one cell to be offsetted and (if 
possible) larger. The code:


\usemodule[chart]
\starttext
\setupFLOWcharts
[option=test,
nx=5,
ny=4,
dx=1\bodyfontsize,
dy=1\bodyfontsize,
width=12\bodyfontsize,
height=7\bodyfontsize,
maxwidth=\textwidth]

\startFLOWchart [grid]
\startFLOWcell
\shape {5}
\location {2,1}
\text {Higher mathematics}
\stopFLOWcell   
\startFLOWcell
\shape {5}
\location {2,2}
\text {This should bigger and on the center}
\stopFLOWcell   
\stopFLOWchart

\FLOWchart[grid]
\stoptext

To give you idea what I want to achieve (roughly), I attached an image 
chart.png.


Rgrds,
Vyatcheslav
<>___
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] \qedhere equivalent in ConTeXt

2010-08-07 Thread Thomas Schmitz

On Sat, 7 Aug 2010 10:54:52 +0200
 Emanuele Sacco  wrote:

Thank you very much, but still does not work to me..

%%%

\definedescription
[proof]
[text=Proof.]

\setupdescriptions
[proof]
[width=broad,
 distance=0.5em,
 location=serried,
 headstyle=it,
 indentnext=yes,
 indenting=yes,
 closesymbol=\mathematics{\square},
 closecommand=\ifmmode\eqno\else\wordright\fi]



\starttext

\startproof
Questa \`e una dimostrazione
\startformula
a=b.
\stopformula
\stopproof

\stoptext

%%


This works with mkiv, but not with mkii. Wolfgang couldn't 
know which you were using since your replies were always 
rather short on details.


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] Making checkboxes

2010-09-06 Thread Wolfgang Schuster

Am 06.09.2010 um 13:50 schrieb Cecil Westerhof:

> Op maandag 6 sep 2010 12:55 CEST schreef Wolfgang Schuster:
> 
>> \def\CheckBoxes[#1]%
>> {\par
>> \getcommalistsize[#1]% count the number of arguments
>> \processcommalist[#1]\doCheckBoxes}
>> 
>> \def\doCheckBoxes#1%
>> {\hskip1em[ ] #1\par}
> 
> I changed the code to:
>\def\CheckBoxes[#1]%
> {\par
>  \getcommalistsize[#1]% count the number of arguments
>  \processcommalist[#1]\doCheckBoxes}
> 
>\def\doCheckBoxes#1%
> {\hskip1em[ ] #1\par}
> 
>\starttext

How about this:

\def\CheckBoxes[#1]%
  {\startitemize[packed]
   \processcommalist[#1]\doCheckBoxes
   \stopitemize}

\def\doCheckBoxes#1%
  {\sym{\mathematics{\Box}}#1\par}

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] MkIV \digits bug

2009-02-19 Thread Wolfgang Schuster


Am 15.02.2009 um 17:04 schrieb Wolfgang Schuster:


Hi,

the \digits command cause a error message with the last beta in MkIV.


% engine=luatex
\starttext
\digits{1.000}
\stoptext


! \textfont 1 is undefined (character :).
\mathematics #1->\relax \ifmmode #1\else $#1$
\fi
\doscandigit ...\digitoutputmode ,\else .\fi \fi }
 \egroup
\digitsep ...x \digitsepbox \hbox {\doscandigit #1
 }\fi \chardef  
\skipdigit 0...

\scandigits #1->\if #1.\digitsep 1
 \else \if #1,\digitsep 2\else \if  
#...@\digi...

\next *#1->\dododohandletokens {#1}
  \dohandletokens
 1.
000
...
l.3 \digits{1.000}


Best regards,
Wolfgang



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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] \digits

2009-02-24 Thread Wolfgang Schuster
On Sun, Feb 15, 2009 at 5:04 PM, Wolfgang Schuster
 wrote:
> Hi,
>
> the \digits command cause a error message with the last beta in MkIV.
>
>
> % engine=luatex
> \starttext
> \digits{1.000}
> \stoptext
>
>
> ! \textfont 1 is undefined (character :).
> \mathematics #1->\relax \ifmmode #1\else $#1$
>                                             \fi
> \doscandigit ...\digitoutputmode ,\else .\fi \fi }
>                                                  \egroup
> \digitsep ...x \digitsepbox \hbox {\doscandigit #1
>                                                  }\fi \chardef \skipdigit
> 0...
> \scandigits #1->\if #1.\digitsep 1
>                                  \else \if #1,\digitsep 2\else \if
> #...@\digi...
> \next *#1->\dododohandletokens {#1}
>                                   \dohandletokens
>  1.
>             000
> ...
> l.3 \digits{1.000}
>
>
> Best regards,
> Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] tkz-2d

2009-11-10 Thread luigi scarso
On Wed, Nov 11, 2009 at 12:36 AM, David Arnold
 wrote:
> All,
> For instructors in mathematics, the tkz-2d package contains a variety of
> macros that are used in geometrical construction (TKZdoc-2d.pdf 3.0).
> Moreover, the wonderful Geogebra progam (http://www.geogebra.org/cms/) will
> export its output in both pstricks and tikz/pgf (unfortunately, not
> metapost).
> I am not aware of a similar package of metapost macros that will mimic what
> is done in tkz-2d, perpendicular bisectors, incircles, etc. Has anyone seen
> such a metapost package?
try google
site:http://melusine.eu.org
-- 
luigi
___
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] changing from oldstyle to upright

2005-08-20 Thread Idris Samawi Hamid
>= Original Message From Taco Hoekwater <[EMAIL PROTECTED]> =
>> Switching to oldstyle is easy:

>> But how do I locally switch back to upright? Declaring
>
>I don't think you can, actually. There are no metric files
>for oldstyle in the latin modern distribution, only an encoding
>vector (and .map).

So once a map/encoding is defined for a given font/tfm set it cannot be 
changed by declaring another map; interesting.

>The reverse of the old oldstyle trick should work though:
>
>   \def\liningfigures#1{\mathematics{#1}}

Yes! I should have thought of that!

As always, thnx a million!

Best
Idris


Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

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


Re: [NTG-context] beginners manual

2005-11-24 Thread Maurice Diamantini (dom)


Le 23 nov. 05 à 21:15, Mojca Miklavec a écrit :


What could be added:
- Tables: Natural tables (already mentioned by Taco). I just realized
  that this is the only manual where the "usual" tables are actually
  explained. I was looking for the explanation in cont-eni before.
- Bibliography
- Slides: some basic example with \usemodule[pre-whatever] to show the
  user that making slides is no more difficult than making an A4
  document
- Metafun: some basic examples and a reference to the manual
- XML: a basic example


I agree with the above.
And for people comming from LaTeX, it would be nice to see also :
- a basic exemple for creating html from ConTeXt,
- some mathematics

Maurice,

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


Re: [NTG-context] Want all my *.1 *.2 .... *.30 files

2006-02-06 Thread Hans Hagen
David Arnold wrote:
> I must have my mac (as do my colleagues) set for no run-time metapost  
> processing, so I do get *.1, *.2, , *.30. And, we've set up our  
> figure libraries like this:
>
> 
> section1figs-mpgraph.30
> eightfinal
> College of the Redwoods Mathematics Department
> 
> 
>
> So, how do I turn it off in this Scite environment, or in a DOS  
> command window with texexec.
>   
\runMPgraphicsfalse

or 

texexec --automp 

btw, you're lucky that background graphics start counting from 4000/8000 down 
so that they don't interefere with your numbers

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

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


Re: [NTG-context] combined list and spacing

2003-08-24 Thread Alexander Klink
Hi,

On Mon, Aug 18, 2003 at 01:04:29PM +0200, Alexander Klink wrote:
> I've defined a combined list as my table of contents as follows:
> 
> \setuplist[artikel][alternative=c]
> \definecombinedlist[content][chapter,artikel]
> \placecontent
> 
> Now that my document nears 75 pages, the list is too full to go on
> one page. So I thought I might get rid of the spacing between the
> next chapter and make the chapters bold instead.
For the record: I solved this using:

\setuplist[chapter][style=bold,before={}]  
\setuplist[artikel][alternative=c]
\definecombinedlist[content][chapter,artikel]
\placecontent

easier than I thought :-)

Greetings,
ALeX

-- 
... Alexander Klink  ...   undergraduate in Mathematics with Computer Science
...  [EMAIL PROTECTED]  ...at Darmstadt University of Technology
...  [EMAIL PROTECTED]
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] XML question regarding special characters

2005-01-07 Thread Adam Lindsay
Zeljko Vrba said this at Fri, 7 Jan 2005 19:35:27 +0100:

>I'm trying to design a "universal" markup that will be easy to convert both
>to PDF and HTML. 

Hi there. Sounds as if we're after similar things. I've been working on
similar stuff, expanding on the existing x-contml module with code in
this project:
<http://oo2contml.sourceforge.net/>
(The source code link may be instructive.)

>data:#1\endcsname}%
\endgroup}

%D Display|| and in||line math using \TeX\ syntax:
\defineXMLenvironmentsave
   [context:dispformula] [label=]
   {}
   {\startformula[\XMLop{label}]
 \XMLtexdata{context:dispformula} \stopformula}
 
\defineXMLenvironmentsave
   [context:formula] []
   {}
   {\mathematics{\XMLtexdata{context:formula}}}

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Adam T. Lindsay, Computing Dept. [EMAIL PROTECTED]
 Lancaster University, InfoLab21+44(0)1524/510.514
 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

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


Re: [NTG-context] ConTeXt equivalent for \ensuremath?

2005-03-11 Thread Adam Lindsay
Gerben Wierda said this at Fri, 11 Mar 2005 16:54:38 +0100:

>But my way also doesn't work. I get empty output as a result of the 
>\bit{b}{off} command.
>
>Help?

This is probably not satisfying, because you probably want to get new
mathematics commands working, but if this is to be used solely in text,
you could use (or expand to):
 b\low{off}

\low (and \hi and \lohi) look like they work robustly in both math and
text modes.

I'm a bit confused by you using \newcommand in your (ConTeXt?) examples,
though...
-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Adam T. Lindsay, Computing Dept. [EMAIL PROTECTED]
 Lancaster University, InfoLab21+44(0)1524/510.514
 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


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


Re: [NTG-context] Proposal for math mappings

2010-12-11 Thread Otared Kavian
Dear Aditya,

I do think that your proposal would be of great help in writing mathematics.
Indeed the use of different alphabets, or range of characters with different 
styles, depend on the fields of mathematics, so having a \setup command like 
the one you suggest would be wonderful.
However, IMHO, the new setup command should follow the general rules of ConTeXt 
commands for setting up different environments. So maybe the option of having 
all the 12 forms, as you suggest,
normal, italic, sans, sansitalic, blackboard, script,
bold, bolditlaic, boldsans, boldsansitalic, boldblackboard, boldscript
would be more homogeneous with the usual style choice.

Best regards: OK

On 10 déc. 2010, at 16:29, Aditya Mahajan wrote:

> On Fri, 10 Dec 2010, Vladimir Lomov wrote:
>> 
>> ** Aditya Mahajan [2010-12-09 23:49:26 -0500]:
>> 
>>> This is a proposal for a new way of selecting math mappings in MkIV. I want
>>> to get input from other math users whether this syntax would take care of 
>>> all
>>> scenarios or not.
>>> 
>>> There are five different ranges in mathematics:
>>> - digits (0..9)
>>> - lower case Latin (abc..z)
>>> - upper case Latin (ABC..Z)
>>> - lower case Greek (αβγ..ζ)
>>> - upper case Greek (ΑΒΓ..Z)
>> Should be: αβγ..ω
>> and ΑΒΓ..Ω
> 
> Thanks. I need to learn my Greek :)
> 
>>> A user may want to control what each range is mapped to. So, I suggest a 
>>> setup
>>> command
>>> 
>>>\setupmathmappings
>>>  [
>>> digits={style,alternative},
>>>lclatin={style,alternative},
>>>uclatin={style,alternative},
>>>lcgreek={style,alternative},
>>>ucgreek={style,alternative},
>>>  ]
>>> 
>>> where the options for style are
>>> 
>>>  normal, bold
>>> 
>>> while the options for alternative are
>>> 
>>>  normal, italic, sans, sansitalic, blackboard, script
>>> 
>>> This command will the mappings for each range. **NOTE**: All combinations 
>>> are not valid.
>>> 
>>> A companion command
>>> 
>>>\definemathmappings
>>>  [whatever]
>>>  []
>>> 
>>> can be used to define multiple mappings. These mappings can be used by
>>> 
>>>\setupmathmappings[whatever]
>>> 
>>> (An alternative is that these mappings are activated using \whatever ...)
>>> 
>>> For example, we can define a command to typeset vectors using
>>> 
>>>\definemathmappings
>>>  [vectors]
>>>  [ digits={bold,normal},
>>>   lclatin={bold,normal},
>>>   uclatin={bold,normal},
>>>   lcgreek={bold,normal},
>>>   ucgreek={bold,normal}]
>>> 
>>>\def\VEC{\groupedcommand{\setupmathmappings[vector]}{}}
>> Is it should be
>> \def\VEC{\groupedcommand{\setupmathmappings[vectors]}{}}
>> ?
> 
> Indeed. Thanks.
> 
>>> If later, we want to represent vectors as sans serif, we can use
>>> 
>>> 
>>>\definemathmappings
>>>  [vectors]
>>>  [ digits={normal,sans},
>>>   lclatin={normal,sans},
>>>   uclatin={normal,sans},
>>>   lcgreek={normal,sans},
>>>   ucgreek={normal,sans}]
>>> 
>>> This interface makes it easy to switch math fonts for disiplines that want
>>> different style for different alphabet ranges.
>>> 
>>> It is relatively easy to implement the above interface. All we need
>>> is some bookkeeping to set the right attributes. The default math
>>> mapping commands can be reimplmeneted using \definemappings. Before
>>> implementing this, I want to ask the opinion of other math users.
>>> 
>>> Would the above interface take care of different use cases, or is it missing
>>> something?
>> IMHO, style is already used so it is normal.
>>> Finally, I am not too happy with the syntax. There are only a few ConTeXt
>>> commands in which the keys take a pair of values. Another option is to 
>>> allow all
>>> 12 valid options
>>> 
>>>  normal, italic, sans, sansitalic, blackboard, script,
>>>  bold, bolditlaic, boldsans, boldsansitalic, boldblackboard, boldscript
> 
>> This very depends on used fonts.
> 
> I am assuming a complete opentype math font.
> 
>>> with the variants sansitalic-italicsans, boldsans-sansbold, etc. as 
>>> synonmyms.
>>> 
>

[NTG-context] \hpos in math

2022-12-05 Thread Gavin via ntg-context
Hello List,

I am working on a project which combines graphics with formulas, like this:



hposQuestion.pdf
Description: Adobe PDF document


My code for creating this formula is attached. It works well, but I have a 
couple of questions that could make it work better.

1) Is there a mathematics version of \hpos? The contents of \hpos are set as 
text, even when \hpos is in mathematics, so I wrote an \mpos macro that uses 
\hpos but sets the contents as display-style math. This isn’t great for 
spacing, and it does't adapt to different math styles. \framed has a math 
version, \mframed, that sets the contents in the appropriate math style. If 
anyone know a way to accomplish that with \hpos, I’d love to know.

2) Is there a way to limit the scope of the \hpos labels to a single formula. 
This could turn into a book length project, with several formulas per page and 
several connections per formula. If every \hpos in the entire book needs a 
unique identifier, I could go mad. Under no circumstances will I connect one 
formula to another, so I’d like to be able to use something like 
\hpos{A}{…}…\hpos{B}{…} in each formula. Any suggestions?

I’ve got to say, LMTX is an absolutely amazing tool for this project, which 
includes complicated networks of connections above and below many formulas. The 
integration of TeX, MetaPost, and Lua makes this project tremendous fun.

Thanks!
Gavin

P.S. For the curious, I’m using a method for doing General Relativity based on 
spinors rather than tensors, following the methods of Penrose and Rindler in 
their 1985 books “Spinors and Space-time.” In the typesetting example above, 
the e_\alpha and e_{\dot\beta} are basis spinors (one left-handed, one 
right-handed). The e^\mu is the Infeld-van der Waerden symbol relating the spin 
basis to the coordinate basis. The connections are spinor index contractions. 
The formula above relates the components of the Infeld-van der Waerden symbol 
to the Pauli sigma matrices. This relationship only works in flat space, so 
this is an easy example! [Penrose and Rindler, vol 1 p. 125] 



hposQuestion.tex
Description: Binary data
___
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] position of qed symbol in proofs

2014-11-09 Thread Mikael P. Sundqvist
On Sat, Nov 8, 2014 at 5:43 PM, Otared Kavian  wrote:
> Hi Mikael,
>
> In my files I have the following which used to work, but it doesn’t work as 
> expected anymore, as you point out
>
> \defineenumeration[proof][text=Proof.]
>
> \setupenumeration[proof]
> [number=no,
>     closesymbol=\mathematics{\square},
> closecommand=\ifmmode\eqno\else\wordright\fi]
>
>
> \starttext
> \startproof
> This is a simple proof.
> \stopproof
>
> \startproof
> This is another simple proof that ends with a formula
> \startformula
> 1+1=2.
> \stopformula
> \stopproof
> \stoptext
>
> I don’t know when the change occurred, but at least it worked last year 
> (which for ConTeXt means pregistoric times… :—).
> As a temporary hack one can always say:
> \startformula
> 1+1=2. \eqno{\square}
> \stopformula
>
> Best regards: OK
>
>> On 08 Nov 2014, at 14:40, Mikael P. Sundqvist  wrote:
>>
>> On Mon, Nov 3, 2014 at 9:15 PM, Mikael P. Sundqvist  wrote:
>>> Hi,
>>>
>>> I once used
>>>
>>> \defineenumeration[proof][
>>> text=Proof,
>>> closesymbol=\mathematics{\square},
>>> closecommand=\ifmmode\eqno\else\wordright\fi,
>>> ]
>>>
>>> \starttext
>>> \startproof
>>> This is a simple proof.
>>> \stopproof
>>>
>>> \startproof
>>> This is another simple proof that ends with a formula
>>> \startformula
>>> 1+1=2.
>>> \stopformula
>>> \stopproof
>>> \stoptext
>>>
>>> to get the \square at the end of proofs, and it worked out well. But
>>> with the latest beta (and some previous one(s)), the \square is not
>>> placed at the same line as the formula in the second example. Is it
>>> broken? Or is there a new syntax?
>>>
>>> PDF with my result is attached.
>>>
>>> Best regards, Mikael
>>
>> I don't like to bump, but... Noone else has this problem?
>>
>> @Hans: Is it easily fixed?
>>
>> /Mikael
>> ___
>> If your question is of interest to others as well, please add an entry to 
>> the Wiki!
>>
>> maillist : ntg-context@ntg.nl / 
>> http://www.ntg.nl/mailman/listinfo/ntg-context
>> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
>> archive  : http://foundry.supelec.fr/projects/contextrev/
>> wiki : http://contextgarden.net
>> ___
>
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___

Hi Otared,

thank you for looking at this. It feels good that it is not only me
who has this problem. As far as I remember, this issue was not present
3-4 weeks ago.

/Mikael
___
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] greek items broken:

2012-05-09 Thread Philipp Gesang
On 2012-05-09 13:50, Mojca Miklavec wrote:
> On Wed, May 9, 2012 at 12:39 PM, Philipp Gesang wrote:
> > On 2012-05-09 12:25, Mojca Miklavec wrote:
> >
> >> If he wants to use Lucida, this would look bad, but the Lucida font
> >> does have greek glyphs, however they are in the "math range".
> >
> > With unicode I thought this was an archaism.
> 
> I'm sorry, I'm telling you nonsense. There are no Greek letters in
> LucidaBrightOT, but they are present in LucidaBrightMathOT. The italic
> version starts at 1D6FC and the regural one is in the "normal" Greek
> range.
> 
> >>                                                               This is
> >> the case for LM, Lucida and probably a few more fonts. (Another option
> >> would be to define the counter to run through greek letters in math
> >> font.)
> >
> > Or to leave the counter untouched and wrap it into a substitution
> > function -- is there a chance you (or anyone else) could supply
> > me with a mapping of the “real” Greek code point to the “math
> > Greek” one?
> 
> See math-map.lua. If you need any help or explanation, please ask. I
> believe that the following part might be relevant (but only if you
> need italic):
> 
> lcgreek   = {
> [0x03B1]=0x1D6FC, [0x03B2]=0x1D6FD, [0x03B3]=0x1D6FE,
> [0x03B4]=0x1D6FF, [0x03B5]=0x1D700,
> [0x03B6]=0x1D701, [0x03B7]=0x1D702, [0x03B8]=0x1D703,
> [0x03B9]=0x1D704, [0x03BA]=0x1D705,
> [0x03BB]=0x1D706, [0x03BC]=0x1D707, [0x03BD]=0x1D708,
> [0x03BE]=0x1D709, [0x03BF]=0x1D70A,
> [0x03C0]=0x1D70B, [0x03C1]=0x1D70C, [0x03C2]=0x1D70D,
> [0x03C3]=0x1D70E, [0x03C4]=0x1D70F,
> [0x03C5]=0x1D710, [0x03C6]=0x1D711, [0x03C7]=0x1D712,
> [0x03C8]=0x1D713, [0x03C9]=0x1D714,
> [0x03D1]=0x1D717, [0x03D5]=0x1D719, [0x03D6]=0x1D71B,
> [0x03F0]=0x1D718, [0x03F1]=0x1D71A,
> [0x03F4]=0x1D6F3, [0x03F5]=0x1D716,
> },

Yeah, appears to be the correct range. Couldn’t test with Lucida,
though.

> For regular variant of Lucida it should be enough to use Math font
> instead of the normal one, but I didn't test or write any code for it.
> For LM you would have to use the italic version since upright (without
> resorting to cm-unicode) looks horrible anyway.

But if there’s a math font, I’d go with the example that Wolfgang
posted; alternatively just wrap the converter into \mathematics:


\unprotect
\def\math_greek_characters#1{\mathematics{\greeknumerals{#1}}}
\defineconversion [mathgreek] [\math_greek_characters]
\protect


etc. It will depend on your choice of math font whether you get
italics or upright glyphs.

Philipp


-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments


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

Re: [NTG-context] Problem with special first page of chapter setup

2005-10-31 Thread Gerben Wierda
Thanks for the tip but I am having trouble getting this to work. I  
now have in my main text:


===
\startbuffer [chapter:quote]
Lee Chong's is to the right of the vacant lot (although why
it is called vacant when it is piled high with old boilers, with rusting
pipes, with great square timbers, and stacks of five-gallon cans, no  
one can

say).\crlf
{\tf John Steinbeck} --- Cannery Row\crlf
\crlf
Doc explained patiently, ``Both players know exactly the same
things. The game is played in the mind.''\crlf
``I don't get it.''\crlf
``Well, look! You can't cheat in mathematics or poetry or music because
they're based on truth. Untruth or cheating is just foreign, it has  
no place.

You can't cheat in arithmetic.\crlf
{\tf John Steinbeck} --- Sweet Thursday
\stopbuffer
\chapter[h:foo]{Foo}
===

and in my environment file:

===
\definebuffer[chapter:quote]

\setuphead
  [chapter]
  [page=,
   before={\setups[chapter:before]},
   after={\setups[chapter:after]}]

\startsetups chapter:before

\page[left]

\noheaderandfooterlines

\startalignment[left,nothyphenated]
\startnarrower[4*left]
\noindent \em \getbuffer [chapter:quote]
\stopnarrower
\stopalignment

\resetsetups[quote:text]

\page[right]

\noheaderandfooterlines

\blank[force,2*big]

\stopsetups

\startsetups chapter:after

\blank[3*big]

\stopsetups
===

But now I get *nothing* on the page facing the chapter start. I  
changed it to


===
\startbuffer [chapter:quote]
Lee Chong's is to the right of the vacant lot (although why
it is called vacant when it is piled high with old boilers, with rusting
pipes, with great square timbers, and stacks of five-gallon cans, no  
one can

say).\crlf
{\tf John Steinbeck} --- Cannery Row\crlf
\crlf
Doc explained patiently, ``Both players know exactly the same
things. The game is played in the mind.''\crlf
``I don't get it.''\crlf
``Well, look! You can't cheat in mathematics or poetry or music because
they're based on truth. Untruth or cheating is just foreign, it has  
no place.

You can't cheat in arithmetic.\crlf
{\tf John Steinbeck} --- Sweet Thursday
\stopbuffer
\startsetups [chapter:quote]
\getbuffer [chapter:quote]
\stopsetups

\chapter[h:foo]{Foo}
===

and in my environment file:

===
\definebuffer[chapter:quote]

\setuphead
  [chapter]
  [page=,
   before={\setups[chapter:before]},
   after={\setups[chapter:after]}]

\startsetups chapter:before

\page[left]

\noheaderandfooterlines

\startalignment[left,nothyphenated]
\startnarrower[4*left]
\noindent \em \setups [chapter:quote]
\stopnarrower
\stopalignment

\resetsetups[quote:text]

\page[right]

\noheaderandfooterlines

\blank[force,2*big]

\stopsetups

\startsetups chapter:after

\blank[3*big]

\stopsetups
===

But that doesn't help either. Still nothing.

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


Re: [NTG-context] At a loss how to proceed

2004-12-15 Thread darnold
Hans et al,

OK, some questions.

You say "starting with pure tex," does this mean that if you start with
Context, then tex4ht is not an option?

Secondly, since I teach mathematics, anything I write is going to contain
a *lot* of mathematics and a lot of figures (graphs, etc). Is XML and
MATHML going to be painful in this case?

How can I get started with a small project or example, so I can determine
how to proceed? I think I can look at the latex followed by tex4ht
direction myself, but I could use some help with the second method, xml to
pdf via context and xml to html via xst. I really have no idea how to
proceed with this direction.

I could use some pointers, or even a small example, with math code and a
metapost graph or two.



> Matthias Weber wrote:
>> I am afraid your question is to vague to be answerable.
>>
>> Hence here are two pieces of information that might or might not be
>> useful:
>>
>>
>> i) Mathematica 5.1 can convert TeX to MathML, at least
>> to some extent. So it should at least in principle be possible to
>> convert carefully crafted TeX files to MathML + XML.
>> I don't know whether one can make ConTeXt do that, too.
>> If yes, I am sure it is better than what Mathematica can offer.
>>
>> ii) Proofread your web pages with lynx (text-only).
>> If you need formulas, use jpegs/pngs that have as a textual description
>> a text that will be read as you would read the formula (eg:
>> sum of 1 over n square for n from 1 to infinity equals pi squared over
>> 6)
>
> it all depends on where one starts: tex or xml; starting with pure tex,
> tex4ht
> may be a solution; on the other hand, when one starts with xml, one can
> use
> context to produce the pdf's and xst to make html documents.
>
> Once you get accurstomed to it, editing in xml is not that bad and for
> math,
> there are math(ml) editors to make the complex formulas.
>
> Hans
>
>
> -
>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
> -
>
> ___
> ntg-context mailing list
> [EMAIL PROTECTED]
> http://www.ntg.nl/mailman/listinfo/ntg-context
>


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


Re: [NTG-context] iso latin 2 ; storm fonts

2005-03-15 Thread Vit Zyka
Adam Lindsay wrote:
Vit Zyka said this at Wed, 9 Feb 2005 22:34:13 +0100:
The question is how to elegantly switch from standard (st2) tfm to 
extended (st3) tfm when the glyph is not present in st2 - with 
preserving \rm, \bf, \it, \bi.
>>
basically, you declare a variant set for a (Serif/Sans/Mono) family:
\definefontvariant  [Serif] [exp] [-Expert]   
% [fam]   [call abbrev] [synonym suffix]
Hallo,
thanks to Adam, it was easy to implement font variants. A little bit 
more work was with all Storm glyph deffinition in two (+one) encodings. 
Before I will do the support for the rest of my Storm font families I 
want to ask audience (and especially Hans, Adam) to have a look into the 
files (http://typokvitek.com/tmp/context-storm.zip). Example in 
http://typokvitek.com/tmp/test-sdynamo.pdf (generaly interesting for all 
\show... font related command usage). Recommendation for the package 
improvements are welcomed.

There are:
  enco-st1.tex - ec encoding with storm glyph extension
  enco-st2.tex - xl2 encoding with storm glyph extension
  enco-st3.tex - variants (additional glyph) for enco-st1 and enco-st2
  type-sdynamo.tex - typescripts for Storm Dynamo font family
  math-sto.tex - simple mathematics present in Storm fonts (in progress)
  test-sdynamo.tex - test file
  test-storm.tex - support for tests
Questions:
? During encoding deffinition I found some chracter name mess. I solved 
it by synonyms:
  E.g. \definecharacter textdag{\dagger}
   \definecharacter paragraphmark  {\paragraph}
   \definecharacter textellipsis   {\ellipsis}
   \definecharacter textminus  {\minus}
   \definecharacter ostroke{\oslash}
   \definecharacter textdollar {\dollar}
Is there some context convention for character names?

? I have a problem to define mathematics chars. I did:
\starttypescript [math] [dynamoRE] [st1]
  \definefontsynonym [DynamoRE-Math-Letters][sdgr8te] 
[encoding=st1]
  \definefontsynonym [DynamoRE-Math-Letters-Italic] [sdgri8te] 
[encoding=st1]
  \definefontsynonym [DynamoRE-Math-Symbols][sdgr8te]
%  \definefontsynonym [DynamoRE-Math-Extension][]
\stoptypescript

\starttypescript [math] [dynamoRE] [name]
  \definefontsynonym [MathRoman] [DynamoRE-Math-Letters]
  \definefontsynonym [MathItalic][DynamoRE-Math-Letters-Italic]
  \definefontsynonym [MathSymbol][DynamoRE-Math-Symbols]
  \definefontsynonym [MathExtension] [ComputerModernMath-Extension]
\stoptypescript
\starttypescript [DynamoRE] [st1,st2]
  \definetypeface [DynamoRE] [ss] [sans] [dynamoRE] [default] 
[encoding=\typescripttwo]
  \definetypeface [DynamoRE] [mm] [math] [dynamoRE] [default] 
[encoding=\typescripttwo]
\stoptypescript

\startmathcollection[storm]
  \definemathcharacter [+] [bin] [sy] ["2B]
  \definemathcharacter [=] [rel] [sy] ["3B]
\stopmathcollection
\enablemathcollection[storm]
$1+1=2$
But I get error: !Math formula deleted: Insufficient symbol fonts.
Where is the problem?
? - \starttypescript [*] [fallback] is generaly useful. Is a good idea 
to move it from large type-buy.tex somewhere else?

? Storm fonts have different accent shapes for lover/upper case letters. 
Is there some mechanism to distinguish this making the composits?

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


Re: [NTG-context] TeX's \downbracefill and \upbracefill

2021-10-12 Thread Hans Hagen via ntg-context

On 10/12/2021 7:47 AM, Rudolf Bahr via ntg-context wrote:



Hello to all,

in Knuth's "The TeXbook" page 225/226 (excerpt is appended here) braces
are to be seen which I'd need to typeset a genealogical table.

Now, the commands \downbracefill and \upbracefill are no context commands.
Please, are there correspondings to them?

 $\overbrace{\hbox{xxxx}}$

 \mathematics{\overbrace{\hbox{}}}


-
  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] Re: Size of subscript notations

2023-12-29 Thread Mikael Sundqvist
Hi,

On Fri, Dec 29, 2023 at 5:41 PM Fabrice Couvreur <
fabrice1.couvr...@gmail.com> wrote:

> Perhaps the size should be even smaller because I personally find it still
> a little large.
>

But that would imply different scaling for different content.


>
> PS : In a thread, I thought I read that you had written a document on the
> use of mathematics with ConTeXt, true or false?
>

It is in the writing, but it takes some time (working on it tonight). I
hope to have it out in some form in a not too distant future.

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

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


Re: [NTG-context] TeX capacity exceeded - in Lua block - why?

2015-07-16 Thread Hans Hagen

On 7/16/2015 12:13 PM, Procházka Lukáš Ing. - Pontex s. r. o. wrote:

This seems to be best solution - exactly what I wanted to achieve:
\def\GG{\mathematics{G_G}}.


compare these two:

\def\GG{\ifmmode G_G\else$\GG$\fi}

\starttext
\edef\x{\GG}
\stoptext

and

\unexpanded\def\GG{\ifmmode G_G\else$\GG$\fi}

\starttext
\edef\x{\GG}
\stoptext

so it all depends on usage

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

Re: [NTG-context] Bold italic font in Math (\definefallbackfamily)

2016-09-15 Thread Hans Åberg

> On 15 Sep 2016, at 20:19, Wolfgang Schuster  
> wrote:

> Another input method is shown in the following video [1] where each symbol 
> get its own command, e.g. \mbfitx is equal to {\bi x}. The source table 
> mentioned in the video can be found on the STIX page [2].
> 
> [1] http://zeeba.tv/reconciling-unicode-math-with-latex2e-mathematics/
> [2] http://www.ams.org/STIX/

The video speaks about a file stix-tbl.txt containing those translation 
commands, but on [2], the stix-tbl.* table files, not ending with .txt, do not 
contain those.


___
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] Solution to a "superscript" problem?

2011-10-12 Thread Otso Helenius

\unexpanded\def\WordDef
  {\dodoubleargument\doWordDef}

\def\doWordDef[#1][#2]%
  {\dontleavehmode\hbox\bgroup
 \setbox\scratchbox\hbox{#2}%
 \raise\strutheight\hbox to
\wd\scratchbox{\hss\rotate[rotation=25]{\tfxx\color[red]#1}\hss}%
 \hskip-\wd\scratchbox
 \box\scratchbox
   \egroup}


Thank you! I will wikify the examples with an explanation on the 
syntax. However I would be interested in learning more about the bgrop, 
dontleavehmode, raise etc. commands. The cont-eni manual uses them but 
without explanation on their exact syntax and use cases.


--
 * Otso Helenius
 * Helsinki University, Faculty of Mathematics
 * Aalto University, Faculty of Architecture
___
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] Unicode Math - what it is

2009-02-13 Thread Michail Vidiassov

Dear All,

sorry for a stupid question, the unicode math that is about to come
means formula input using Unicode Math instead of tex commands as 
suggested in

"Unicode Nearly Plain-Text Encoding of Mathematics"

http://www.unicode.org/notes/tn28/UTN28-PlainTextMath-v2.pdf

or use of the Unicode fonts with math ranges in rendering
the result?
BTW, what are the options for getting a unicode math font?
Taking one from MS Office 2007? Waiting for Stix fonts (what happened yo 
them, there seems to be a delay fir yunpublihrt reason.?


 Sincerely, Nichail
___
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] \celsius and \inch

2005-12-28 Thread Taco Hoekwater



Peter Münster wrote:

Hello,

a suggestion for \celsius in core-mis.tex:
\def\celsius#1{#1\,\mathematics{^\circ}\kern-0.1emC}


As is (perhaps) normal for this kind of thing, the "\," depends
on your local typesetting tradition, and the "\kern-0.1em" depends
on the  used font family.

That is not to say yours isn't better then the current one :-)


The symbol for \inch is strange: "}". What is \char125 supposed to be,
doesn't it depend on the font encoding?


Yes, it does, so there should be a named character created for it.

IIRC, these symbols are in one of the unicode planes that are not
(completely) supported yet. It would make sense to do a whole
block (partial plane) at the same time then?

Cheers, Taco

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


Re: [NTG-context] \celsius and \inch

2005-12-28 Thread Hans Hagen

Taco Hoekwater wrote:




Peter M�nster wrote:


Hello,

a suggestion for \celsius in core-mis.tex:
\def\celsius#1{#1\,\mathematics{^\circ}\kern-0.1emC}



As is (perhaps) normal for this kind of thing, the "\," depends
on your local typesetting tradition, and the "\kern-0.1em" depends
on the  used font family.

That is not to say yours isn't better then the current one :-)


The symbol for \inch is strange: "}". What is \char125 supposed to be,
doesn't it depend on the font encoding?



Yes, it does, so there should be a named character created for it.

IIRC, these symbols are in one of the unicode planes that are not
(completely) supported yet. It would make sense to do a whole
block (partial plane) at the same time then?


indeed

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


[NTG-context] HSU Colloquium Series

2004-11-19 Thread David Arnold
All,

Gave my talk today at Humboldt State University Mathematics Colloquium Series.

Slides are available:

http://online.redwoods.edu/instruct/darnold/HSUColloquium/multcalc/slides.pdf

Notes are available:

http://online.redwoods.edu/instruct/darnold/HSUColloquium/multcalc/slidesNot
es.pdf

Sketchpad files are available:

http://online.redwoods.edu/instruct/darnold/HSUColloquium/multcalc/simpleCyc
loid.gsp

http://online.redwoods.edu/instruct/darnold/HSUColloquium/multcalc/doubleCyc
loid.gsp

http://online.redwoods.edu/instruct/darnold/HSUColloquium/multcalc/envelopeC
ycloid.gsp

http://online.redwoods.edu/instruct/darnold/HSUColloquium/multcalc/evoluteCy
cloid.gsp

http://online.redwoods.edu/instruct/darnold/HSUColloquium/multcalc/robervalC
ycloid.gsp

http://online.redwoods.edu/instruct/darnold/HSUColloquium/multcalc/symmetryR
oberval.gsp

http://online.redwoods.edu/instruct/darnold/HSUColloquium/multcalc/involuteC
ycloid.gsp

Source code available:

http://online.redwoods.edu/instruct/darnold/HSUColloquium/multcalc/hsu.zip

You're all welcome to use them in any way you wish. Thanks to all of those
who answered my questions while I was working on this.


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


[NTG-context] itemize error in setbodyfont

2005-07-08 Thread �ڳ���
Hi 
This error massage in \startitemize[1, packed] with \setbodyfont[22pt].  
How can I do
 

systems : begin file paint at line 11
title   : - \midaligned {자전거 폐기안내}
! Math formula deleted: Insufficient symbol fonts.
\mathematics #1->\relax \ifmmode #1\else $#1$
 \fi 
\dodosymbol ...bol \csname \??ss :#1:#2\endcsname 
  \relax }\relax 
\dosymbol ...fnosymbol \redosymbol \currentsymbol 
  \fi \fi 
 
   \relax 
\dodosymbol ...name \??ss :#1:#2\endcsname \relax 
  }\relax 
\dosymbol ...fnosymbol \redosymbol \currentsymbol 
  \fi \fi 
..
l.19  \item ?
 茶穗六?
? Terminating on signal SIGHUP(1)



[파란1GB 메일] 개성있는 서명,비즈니스용 명함~ 파란명함으로 쏴주세요!

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


[NTG-context] Re: Inline mathematics is stretched

2023-10-30 Thread Hans Hagen via ntg-context

On 10/30/2023 8:05 AM, Mia Bikey wrote:

Yes well of course no issue arises if I just change the whole font.
But I wanted to keep using the mono font thus reporting issues with it.

In that case you have to go for flushleft

\setupalign[verytolerant,nothyphenated,flushleft]

because otherwise tex will try to come to the best solution by using 
stretch and shrink and therefore stretch and shrink in interatom spacing 
wins over little or none in mono spacing


Hans

-
  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 / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Square right aligned

2024-02-09 Thread Pablo Rodriguez via ntg-context
On 2/8/24 22:37, Otared Kavian wrote:
> Hi Ursula,
>
> I think you mean the so-called end of the proof sign, or QED (Quod Erat
> Demonstrandum). You can use this:
>
> \definesymbol[QED][\mathematics{\square}]
> \def\qed{\wordright{\symbol[QED]}}
> \starttext
> This is the end of our proof. \qed
> \stoptext
>
> In principle it is included in ConTeXt, but it seems that in the latest
> version I have (2024.01.23), the command \qed is broken.

Hi Otared,

\qed seems to have been disabled (line 988 in strc-con.mklx).

Functionality seems to have been enabled in \QED (line 45 in math-mis.mkxl).

Just in case it might help,

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

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


[NTG-context] outlinetext broken?

2024-05-04 Thread Jairo A. del Rio
Hi, list

\startMPpage
draw outlinetext.d("\mathematics{\sqrt{2}-1}")(withcolor black withpen
  currentpen) scaled 1;
\stopMPpage

fails (radicals are not drawn at all). As for context --version,

mtx-context | ConTeXt Process Management 1.06
mtx-context |
mtx-context | main context file:
/usr/local/context/tex/texmf-context/tex/context/base/mkiv/context.mkiv
mtx-context | current version: 2024.04.01 08:59
mtx-context | main context file:
/usr/local/context/tex/texmf-context/tex/context/base/mkxl/context.mkxl
mtx-context | current version: 2024.04.01 08:59

Maybe it's only me, but I tried with several fonts and the outcome is
similar.

Best regards,
Jairo


ema.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 / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: [External] Extra space in numbers

2024-07-15 Thread Hans Hagen

On 7/16/2024 1:50 AM, Rogers, Michael K wrote:

Hi,
Braces around the comma, $10{,}000$, works for me. It’s the plain TeX 
way. If there’s a way to set up mathematics in ConTeXt to do this, 
perhaps someone else will fill us in.
in lmtx { } in math is just grouping, so no ordinary math atom is 
created; also, digits have their own class which is hoe we control 
inter-atom spacing


Hans

-
  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 / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


Re: [NTG-context] setupformulas options (or defineformula) and effort to reduce the font in math formulas

2015-03-10 Thread Hans Hagen

On 3/10/2015 11:45 PM, Jaroslav Hajtmar wrote:

Hello List.
I would like some elegant way to diminished font in math formulas...

Is there possibility anything as
\setupformulas[before={\switchtobodyfont[small]} ]?
I need to align formulas, so are not enough to \mathematics {}

Below is my fallback. You can do something smarter?


define a bodyfont (rm,mm,tt) where the math has an rscale of 0.8

Hans

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

[NTG-context] 2 issues in phys-dim.mkiv

2015-05-15 Thread Maggyero
I've tried the unit interface today, and I've noticed two issues with the
following example:

\setupunits[alternative=text]
\starttext
$\unit{-4.6e-3 km s^-1}$
\stoptext

1. Minus superscripts for UNITS (so 's^-1' here—not 'e-3', which is fine)
are converted to hyphens with the 'text' unit alternative (with the default
'mathematics' unit alternative everything is fine):

2. The times symbol between the number and the 10^-3 (e-3) is incorrectly
spaced (as an ordinary math atom instead of a binary math atom) so doesn't
look good.

Maybe Hans could change

\def\digitstimessymbol{\times}

to

\def\digitstimessymbol{\ifmmode\times\else${}\times{}$\fi}

in phys-dim.mkiv?
___
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] Deprecated $…$ for inline math?

2016-02-17 Thread Aditya Mahajan

On Wed, 17 Feb 2016, Alan BRASLAU wrote:


However, I can see situations where one might want to tighten spacing
in order to fit a particular expression within a line or in a table,
for example. Here, \math[options]{expression} is a reasonable syntax,
yet I cannot foresee ever using the very cryptic \m{} for any reason:
it is just plain ugly! (No TeXie would ever find $$ as
ugly...)


I am curious to know if there is ANYONE who types in a lot of math and 
regularly uses \m{...} or \math{...}. I still use $$ and use \math{..} 
or \mathematics{...} only when generating output from lua code: 
context.math("") etc. is cleaner than context("$%s$", ...)


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] Deprecated $…$ for inline math?

2016-02-18 Thread Marcin Borkowski

On 2016-02-18, at 10:22, Hans Hagen  wrote:

> this brings up the question: would users (here) start using real math 
> unicode input if we had a monospace math font?

FWIW, you can have Emacs automatically display ∫ in place of \int
etc. in your file (and this is no real substitution, just for viewing).

Also, Emacs has the "TeX input method", where typing the four keys \, i,
n, t yields ∫ (a Unicode symbol) etc.  (It works also for inputting
properUnicode accented letters, which is very cool and useful.)

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
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] Bold italic font in Math (\definefallbackfamily)

2016-09-15 Thread Wolfgang Schuster

Hans Åberg <mailto:haber...@telia.com>
15. September 2016 um 19:44

I use Xcode on MacOS (former OS X), which has very good Unicode 
support (including RTL scripts). There is a Unicode symbols table, but 
it is slow. One can also design one's own keyboard map, but that is 
very time consuming.
Another input method is shown in the following video [1] where each 
symbol get its own command, e.g. \mbfitx is equal to {\bi x}. The source 
table mentioned in the video can be found on the STIX page [2].


[1] http://zeeba.tv/reconciling-unicode-math-with-latex2e-mathematics/
[2] http://www.ams.org/STIX/

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] text in mathematics

2018-07-09 Thread Aditya Mahajan

On Mon, 9 Jul 2018, Hans Åberg wrote:




On 8 Jul 2018, at 23:00, Otared Kavian  wrote:

The advantage being that if the above formula appears in an environment such as 
a Theorem (where the text is typeset in italic, or slanted) the text in the 
above \mbox will be also in italic or slanted.


Math displayed formula text inheriting the style of the text appears in two 
books from first published in 1966 and 1980 that I checked.

So a math text command should probably support that style.


IIRC, that is also the case for the \text command in amsmath.

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

Re: [NTG-context] \mframed not aligned in mkiv

2013-10-22 Thread Aditya Mahajan

On Tue, 22 Oct 2013, Otared Kavian wrote:


Hi Aditya,

I wikified your remarks,


http://wiki.contextgarden.net/Math/Display#Shaded_background_for_part_of_a_displayed_equation


Rather than

\def\graymath{\mframed[frame=off,
background=color,
backgroundcolor=gray,
backgroundoffset=3pt]}

you can just use:

\definemathframed[graymath]
   [
 frame=off,
 location=mathematics,
 background=color,
 ...,
   ]

This way, you can even override the options when using \graymath:

\graymath[backgroundcolor=red]{...}


but unfortunately the snippet of code does not compile on ConTeXt Garden: is 
there a way to typeset mkiv code there?


Using  compiles the coding using MkIV, but 
contextgarden uses a rather old version of mkiv, so it is unlikely that a 
feature introduced a few months ago will run on the garden.


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
___


[NTG-context] position of qed symbol in proofs

2014-11-03 Thread Mikael P. Sundqvist
Hi,

I once used

\defineenumeration[proof][
text=Proof,
closesymbol=\mathematics{\square},
closecommand=\ifmmode\eqno\else\wordright\fi,
]

\starttext
\startproof
This is a simple proof.
\stopproof

\startproof
This is another simple proof that ends with a formula
\startformula
1+1=2.
\stopformula
\stopproof
\stoptext

to get the \square at the end of proofs, and it worked out well. But
with the latest beta (and some previous one(s)), the \square is not
placed at the same line as the formula in the second example. Is it
broken? Or is there a new syntax?

PDF with my result is attached.

Best regards, Mikael


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

Re: [NTG-context] modules or packages for abbreviations for common math commands

2011-05-03 Thread Aditya Mahajan

On Tue, 3 May 2011, Paul Menzel wrote:


Dear ConTeXt folks,


is there a module or a package people have created for common things
used in mathematics.

   `\set{ a, b, c }` for a set.
   `\EV{X}` for the expected value.
   `\P{ X = ½ }` for the probability.
   …

If not, maybe a module could be created and maintained together to not
reinvent the wheel.


See the mathsets module[1]. The current module does not work with MkIV (I 
need to debug that; most likely due to catcode changes for _ and ^. I am 
planning to reimplement the module using lpeg but that is on a low 
priority.


Aditya

[1]: http://modules.contextgarden.net/mathsets___
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] Labelling with textext

2010-02-13 Thread Troy Henderson
I'm trying to typeset a numerical label (in math mode) and have space
for a - sign (but not actually typeset the -) after the number in the
case where the number itself is negative.  I am trying this

label.bot(textext("$" & decimal(x) & "\hphantom{-}$"),(x*u,ay*u));

which fails.  If I remove the \hphantom command, i.e.,

label.bot(textext("$" & decimal(x) & "$"),(x*u,ay*u));

the command is successful, but the number being labeled is not exactly
horizontally centered below the point in question since the - symbol
preceding the number pushes it a little to the right.  Thoughts on how
to achieve my desired \hphantom effect?

Thanks,

-- 
Troy Henderson
Assistant Professor
Department of Mathematics
University of Mobile
http://www.tlhiv.org
___
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] Drawing a diagram

2010-06-14 Thread Vyatcheslav Yatskovsky

On 14.06.2010 15:27, ntg-context-requ...@ntg.nl wrote:

That actual picture was drawn with the flowchart module.

http://wiki.contextgarden.net/Flow_Charts

Thank you, Taco.

I cannot find one thing about charts: is it possible to offset and 
enlarge just one chart symbol?


Specifically, I need "My main discipline" to occupy four cells in the 
center, or just be shifted...


\usemodule[chart]
\starttext
\setupFLOWcharts
[option=test,
nx=5,
ny=4,
dx=1\bodyfontsize,
dy=1\bodyfontsize,
width=12\bodyfontsize,
height=7\bodyfontsize,
maxwidth=\textwidth]

\startFLOWchart [grid]
\startFLOWcell
\shape {5}
\location {2,1}
\text {Higher mathematics}
\stopFLOWcell   
\startFLOWcell
\shape {5}
\location {2,2}
\text {My main discipline}
\stopFLOWcell   
\stopFLOWchart

\FLOWchart[grid]
\stoptext

--
Best Regards,
Vyatcheslav Yatskovsky
___
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] itemize

2010-10-19 Thread luigi scarso
2010/10/19 Herbert Voss :
> An example from the documentation:
>
> \starttext
>
> \startitemize[1,packed]
> \head supported image formats in \PDFTEX \par
>      \startitemize[a]
>      \item png \item eps \item pdf
>      \stopitemize
> \head non supported image formats in \PDFTEX \par
>      \startitemize[continue]
>      \item jpg \item gif \item tif
>      \stopitemize
> \stopitemize
>
> \stoptext
>
> I get with mkIV (TeXLive2010)
> [...]
> systems         : begin file .tex at line 3
> ! Math error: parameter \Umathquad\displaystyle is not set.
> \mathematics ... #1\else \Ustartmath #1\Ustopmath
>                                                  \fi
> \dodosymbol ...bol \csname \??ss :#1:#2\endcsname
> [...]
>
> Herbert
It's ok with latest minimals.
Unfortunately minimals still suffers of cont-fil bug:
in context.mkiv/mkii
\loadcorefile{cont-fil}
should be
\loadmarkfile{cont-fil}

-- 
luigi
___
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] "closesymbol" in enumeration broken?

2012-02-19 Thread Wolfgang Schuster

Am 19.02.2012 um 23:22 schrieb Andreas Mang:

> Hi everybody,
> 
> I might have spotted a problem related to enumerations. The minimal example 
> below results in the given error message. It works without the "closesymbol" 
> option.
> 
> Thanks for your help.
> 
> Cheers,
> Andreas 
> 
> % ### MINIMAL EXAMPLE ###  (ConTeXt  ver: 2012.02.18 10:50 MKIV  fmt: 
> 2012.2.19)
> 
> \defineenumeration[myproof][text=Proof,closesymbol={\mathematics{\square}}]
> 
> \starttext
> 
> \startmyproof
> This is a proof
> \stopmyproof
> 
> \stoptext

strc-con.mkvi:

\def\strc_constructions_close_symbol_place
  {\ifconditional\csname\??constructionclosesymbol\currentconstruction\endcsname
 
\global\expandafter\setfalse\csname\??constructionclosesymbol\currentconstruction\endcsname
 \edef\p_closesymbol{\constructionparameter\c!closesymbol}%
 \ifx\p_closesymbol\empty \else
-  \constructionparameter\c!closecommand\p_closesymbol
+  \constructionparameter\c!closecommand{\p_closesymbol}%
 \fi
   \fi}

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] \| should give two || and not one

2013-02-15 Thread Mikael P. Sundqvist
On Fri, Feb 15, 2013 at 1:42 PM, Wim W. Wilhelm  wrote:
> use $\Vert v \Vert$
>
> Wim W. Wilhelm
>
>> Dear list,
>>
>> \starttext
>> $\|v\|$
>> \stoptext
>>
>> I expect two vertical bars on each side of v, but see only one.
>>
>> Tested with the latest beta.
>>
>> /Mikael
>>

Thank you for your reply, Wim. I guess most/some people writing
mathematics are used to write \| to get double bars from LaTeX, and if
I remember correctly it was also like this in ConTeXt some time ago.

If this is changed on purpose I can very well use \Vert instead.

/Mikael
___
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] \| should give two || and not one

2013-02-18 Thread Mikael P. Sundqvist
On Mon, Feb 18, 2013 at 10:42 AM, luigi scarso  wrote:
> On Mon, Feb 18, 2013 at 10:23 AM, Mikael P. Sundqvist  
> wrote:
>> Indeed, luigi, but is that what you expect?
> Hm, hard to say for me.
> I find natural to use \vert and \Vert or, if possible, | and || .
> LaTeXt users find natural that  \| is ||, but I don't see, as a ConTeXt
> user,  a particular meaning in \| .
>

I think that since \| is defined as \Vert in the TeXbook and everyone
writing mathematics in LaTeX are used to \| to mean \Vert there is no
reason to have different behaviour in ConTeXt.

/Mikael
___
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] What is wrong with this flowchart

2009-02-13 Thread Cecil Westerhof
2009/2/13 Yue Wang :
> Please upgrade your ConTeXt distribution.

I have done this, but it has an unexpected side effect. A tex-file
that worked without a problem, now gives:
systems : begin file NPW at line 130
! Math formula deleted: Insufficient symbol fonts.
\mathematics #1->\relax \ifmmode #1\else $#1$
 \fi
\dodosymbol ...bol \csname \??ss :#1:#2\endcsname
  \relax }\relax
\donormalsymbol ...bol \redosymbol \currentsymbol
  \fi \fi

   \relax
\dodosymbol ...name \??ss :#1:#2\endcsname \relax
  }\relax
\donormalsymbol ...bol \redosymbol \currentsymbol
  \fi \fi
...
l.136 \item G
 een dierenasiel

On line 130 it says: \starttext.
How do I find which fonts it is missing? And where do I get them?

-- 
Cecil Westerhof
___
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] Numerals in mkiv

2009-04-17 Thread Otared Kavian

Hi Hans,

It seems that Arabic or Persian numerals (for instance in section  
numbers) in mkiv begin at 0, instead of 1… well it is true that in  
Mathematics natural integers begin with 0, but not in books in those  
languages :-)

Here is a minimal example:

\setupdirections[bidi=global]
\pagedir TRT
\bodydir TRT
\pardir TRT
\textdir TRT

\starttypescript[serif][arabic]
\usetypescript[serif][fallback]
\definefontsynonym [Serif][name:SimpleNaskhi] [features=arabic]
\stoptypescript

\starttypescript  [arabic]
  \definetypeface [arabic][rm] [serif] [arabic]  [default]
\stoptypescript

\usetypescript[arabic]
\setupbodyfont[arabic,12pt]

%%
% heading numbers:
   \setuphead[section][conversion=persiannumerals]  
%,numberstyle={arabic}]

%%%

\starttext
\dorecurse{5}{%
\section{بخش}\par
آزمایش
}
\stoptext

Pardon me if I have been missing something already explained elsewhere.

Best regards: OK
___
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] Urgent: Strange index problems

2009-09-10 Thread Hans Hagen

Xan wrote:
Yes, Taco. With all files except source file deleted, and \mathematics 
instead of $$ \index works.


Is it any know bug or so? Why is the reason of that?. Just curious.


there will no new tuc file made when you have a 'fatal' error; normally 
that works out ok, unless there is a fatal error in the tuc file itself 
in which case you're kind of stuck (this only happens when there is a 
bug in the context code or something that context cannot recover from)


Hans


-
  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] A question on drawing functions in MetaFun

2005-08-10 Thread Jin-Hwan Cho

I tried to generate "Figure 9.2 An example of a graphic with labels
along the axes." in metafun-p.pdf (p.209), but could get only graphics
without labels.

I used the codes in the page 208 as follows (see the attached file)

\startMPpage
StartPage ;
... codes in p.208 here ...
StopPage ;
\stopMPpage

In this case, the generated MPS file (ch93-1-mpgraph.1) had the bounding
box (0, 0, 420, 596).

When I used \startuseMPgraphic instead of \startMPpage, the generated
MPS file had the different bounding box (-47, -17, 300, 575), and I
could see the right one.

Please tell me what I missed.

Best, ChoF.
~   ***
| Cho, Jin-Hwan == ChoF |   ^ ^
~~~  o
| Dept. of Mathematics| ---
| The University of Suwon |  |
~~~  |
| Korean TeX Users Group  |  |
| http://www.ktug.or.kr   |  |
~~~  |
| [EMAIL PROTECTED] | ***
~~~



ch93-1.tex
Description: Binary data
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] mfonts.tex

2005-11-21 Thread David Arnold

Hans et al,

OK. I'd like to start with mfonts.tex. I am working with GWTeX on  
Tiger and have just updated to all of Gerben's latest stuff, so I am  
as current as I can be with that distribution.


I do have Ruby on this Mac.

So, hold my hand and and guide me through the compile stage. The  
first problem, as I see it, is to get the expected organizational  
tree for these manuals For example, in mfonts.tex, we have:


\environment ../allkind/mcommon.tex

So, should I do some sort of cvs thing and check out all these  
manuals and documents?


That seems to be the first issue to address.

David Arnold
College of the Redwoods
Mathematics Department
Eureka, CA 95501
(707) 476-4222
http://online.redwoods.edu/instruct/darnold/


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


Re: [NTG-context] \to broken in figure captions

2006-04-26 Thread Aditya Mahajan
On Wed, 26 Apr 2006, Sanjoy Mahajan wrote:

> In inline math, \to works fine (produces a right arrow), but in a figure
> caption all hell breaks loose.
>
> The culprit may be this redefinition of \to in enco-ini.tex:
>
>  $ find texmf -name '*.tex' |xargs egrep -n '\\((e|g|)def|let)\\to\b'
>  texmf/tex/context/base/core-pos.tex:642:  %\edef\to  {\POSprefix#1}%
>  texmf/tex/context/base/enco-ini.tex:1565:  {\appendtoks\let\to\everylowercase
>  texmf/tex/context/base/enco-ini.tex:1570:  {\appendtoks\let\to\everyuppercase
>
> [context : ver: 2006.04.17 23:14]
>
> This test file:
>
> \starttext
> \placefigure[abc]{ABC $n\to1$.}{} \input tufte
> \stoptext
>
> produces lots of errors beginning with
> [snip]

Replacing $...$ with \mathematics{...} works without errors.

Aditya

-- 
Aditya Mahajan, EECS Systems, University of Michigan
http://www.eecs.umich.edu/~adityam || Ph: 7342624008
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] MyWay doesn't agree

2006-05-04 Thread David Arnold
Aditya,

I updated my Context and all is well.

Thank goodness for the Mac and Gerben. So easy.

On May 4, 2006, at 5:37 PM, Aditya Mahajan wrote:

> Hi David,
>
>> This code:
>>
>> \starttext
>>  \startformula \startalign[m=2,distance=5em]
>> \NC a_1 x + b_1 y \NC = c_1 \NC d_1 u + e_1 v \NC = f_1 \NR
>> \NC a_2 x + b_2 y \NC = c_2 \NC d_2 u + e_2 v \NC = f_2 \NR
>> \stopalign \stopformula
>> \stoptext
>>
>> Doesn't produce the result advertised in your MyWay.
>
> I get the same result as on page 3 of MyWay. Is your result match what
> you get on live.contextgarden.net?
>
> Aditya
>
> -- 
> Aditya Mahajan, EECS Systems, University of Michigan
> http://www.eecs.umich.edu/~adityam || Ph: 7342624008

David Arnold
College of the Redwoods
Mathematics Department
Eureka, CA 95501
(707) 476-4222
http://online.redwoods.edu/instruct/darnold/


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


Re: [NTG-context] vertically centered aligment of different sized texts

2006-05-17 Thread Taco Hoekwater
frantisek holop wrote:
> hmm, on Wed, May 17, 2006 at 06:53:47PM +0200, Taco Hoekwater said that
> 
>>Abusing math mode is easiest:
>>
>>   \def\vcentered#1%
>>     {\dontleavehmode\mathematics{\vcenter{\hbox{#1
>>   \starttext
>>   {\tfc The \vcentered{{\BigFont 7}\high{th}} Seal}
>>   \stoptext
> 
> 
> thanks a lot.
> but if this is the "easiest" then what is the hardest? :)

The mathematical center of the line is not necesarily the
optical center, so a somewhat more correct approach would
put all the stuff in an \hbox and then compute manually
how far it has to drop down.

For a more pleasing look, it would perhaps be even better
to line up a normal '7' as if it was an oldstyle numeral,
and then enlarging it while keeping the same vertical
alignment ratio.

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


Re: [NTG-context] We have a problem --- Old file no longer compiles

2007-07-04 Thread Aditya Mahajan
On Wed, 4 Jul 2007, Aditya Mahajan wrote:

> On Wed, 4 Jul 2007, David Arnold wrote:
>
>> Here is another example, this time not within a block, but within an
>> enumeration again:
>
> The newmat module seems to be the culprit. After loading newmat add
>
> \unexpanded\def\frac#1#2{\mathematics{\genfrac{}{}{}\donothing{#1}{#2}}}
>
> and it should work fine. I do not really understand why this is
> failing.

Ok. The third argument of \genfrac should be {} and not \empty, 
otherwise \ifx @#3@ in \genfrac evaluates to false. So, either we need 
to change \ifx @#3@ to something more robust, or revert back to older 
definitions of (d|t)frac.

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


Re: [NTG-context] a line under the header

2003-08-18 Thread Alexander Klink
On Thu, Aug 14, 2003 at 10:36:51PM +0200, Henning Hraban Ramm wrote:
> In ConTeXt it's useful if you can think around some edges:
> Such a line is a frame with only one frame line.
> This "frame" forms the background of your header.
> Ergo:
> \setupbackgrounds [header][text][frame=off, bottomframe=on]
> \setupbackgrounds [footer][text][frame=off, topframe=on]
I was going to ask exactly the same question. Unluckily, what you
did here does not work very well for me - the line is quite below
the header text, I would really like to have it closer...
\setupheader[after={\hairline}] does not work as the hairline
is not below the text but starts at the left border...
Maybe someone got another idea?

Greetings,
ALeX

-- 
... Alexander Klink  ...   undergraduate in Mathematics with Computer Science
...  [EMAIL PROTECTED]  ...at Darmstadt University of Technology
...  [EMAIL PROTECTED]
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] At a loss how to proceed

2004-12-14 Thread David Arnold
All,

Lately, I've had a number of discussions with the director of disabled
student services at our school regarding document preparation for the
visually impaired. As a result of these discussions, I am a bit lost as how
to proceed with the preparation of mathematics for the web and documents
for my course content.

I've paid a little attention to the develoment of MathML, but I've always
said "Who wants to code like that?" whenever I look at examples. However,
today I found:

http://www.dessci.com/en/company/press/releases/040722.htm

I now realize that software that reads web pages aloud it pretty important.
But how do I, in my limited time, prepare documents for multiple purposes?
Can I use Context to support all of our students at our school? Just how do
I proceed?

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


[NTG-context] Issue in btx rendering

2022-05-04 Thread śrīrāma via ntg-context
Hi,

[my current version: 2022.05.02 16:19]
With the past two-or-so uploads, btx output seems to be broken in some cases. 
Compiling the below example

  \usebtxdataset[refs.bib]
  \usebtxdefinitions[aps]

  \starttext
  This reference has a tag which is in camel-case:
  \cite[Nielsen2011_ChernoffInformationExponentialFamilies]

  On the other hand this reference has a tag which is lower-case:
  \cite[vaart1998_asymptoticstatistics]

  \placelistofpublications
  \stoptext

along with the bibtex file (refs.bib attached here), only the second citation 
entry has a properly rendered bibliography entry while the first one does not. 
Notably, any bibtex entries whose tags are not all lowercase (ASCII) are not 
rendered correctly. Instead, in the log I get

publications > unknown tag 'nielsen2011_chernoffinformationexponentialfamilies' 
in dataset 'default'

Almost all my entries in bib files are in camel-case since I find that to be 
easier to read and it gives me a better clue of what the item is. With some 
recent uploads I noticed that in publ-ini.lua 'tag' and 'field' entries were 
string.lowered(). Upon removing those statements, I am able to get the proper 
output.

I also have certain bib files where the entries are not at all in ASCII (so I 
am not sure what the code might do there, I did not check in detail). I hope I 
can continue to use camel case for the tags (if its not too much to ask): is 
there some additional setting that I should change to allow this so that the 
output is rendered correctly?

Thanks,
  Sreeram@article{Nielsen2013_InformationGeometricCharacterizationChernoff,
	author= {Nielsen, Frank},
	doi   = {10.1109/LSP.2013.2243726},
	issn  = {1070-9908},
	journal   = {IEEE Signal Processing Letters},
	localfile = {Nielsen2013_InformationGeometricCharacterizationChernoff.pdf},
	month = {March},
	number= {3},
	pages = {269--272},
	title = {An Information-Geometric Characterization of Chernoff Information},
	volume= {20},
	year  = {2013},
}

@article{Nielsen2011_ChernoffInformationExponentialFamilies,
	author= {Nielsen, Frank},
	journal   = {CoRR},
	localfile = {Nielsen2011_ChernoffInformationExponentialFamilies.pdf},
	title = {Chernoff information of exponential families},
	url   = {http://arxiv.org/abs/1102.2684; https://dblp.org/rec/bib/journals/corr/abs-1102-2684},
	volume= {abs/1102.2684},
	year  = {2011},
}

@book{vaart1998_asymptoticstatistics,
	author = {Vaart, A. W. van der},
	collection = {Cambridge Series in Statistical and Probabilistic Mathematics},
	doi= {10.1017/CBO9780511802256},
	localfile  = {Vaart1998_AsymptoticStatistics.pdf},
	place  = {Cambridge},
	publisher  = {Cambridge University Press},
	series = {Cambridge Series in Statistical and Probabilistic Mathematics},
	title  = {Asymptotic Statistics},
	year   = {1998},
}

@article{Muller1997_IntegralProbabilityMetricsGeneratingClass,
	author  = {M{\"u}ller, Alfred},
	doi = {10.2307/1428011},
	issn= {0001-8678, 1475-6064},
	journal = {Advances in Applied Probability},
	month   = {Jun},
	number  = {2},
	pages   = {429--443},
	title   = {Integral Probability Metrics and Their Generating Classes of Functions},
	url = {https://www.cambridge.org/core/product/identifier/S000186780002807X/type/journal_article},
	volume  = {29},
	year= {1997},
}
___
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] equivalent to \newcommand{...}{\ensuremath{...}}

2014-12-09 Thread Wolfgang Schuster

> Am 09.12.2014 um 09:59 schrieb j. van den hoff :
> 
> On Tue, 09 Dec 2014 09:42:03 +0100, Wolfgang Schuster 
> mailto:schuster.wolfg...@gmail.com>> wrote:
> 
>> 
>>> Am 08.12.2014 um 17:41 schrieb j. van den hoff :
>>> 
>>> hi list,
>>> 
>>> new to `context' and my first question to the list: how can I achieve the 
>>> following (`latex') behaviour:
>>> 
>>> \newcommand{\km}{\ensuremath{K_m}}
>>> We can now use \km\ in the body text as well as in this
>>> \begin{equation}
>>>  \km = 1
>>> \end{equation}
>>> display equation.
>>> 
>>> in `context'? I've tried something like
>>> 
>>> \def\km{\math{K_m}}
>>> We can now use \km\ in the body text but get sytnax errors when
>>> putting it in this
>>> \startformula
>>>  \km = 1
>>> \stopformula
>>> formula.
>>> 
>>> but this fails for obvious reasons (as would using `$$' instead of 
>>> `ensuremath' in the `latex' case).
>>> 
>>> so what I need is a way of defining (potentially complex) math-expressions 
>>> via some shortcuts/definitions/macros/abbreviations (whatever) which I can 
>>> then use
>>> in the formula environment (or whatever it's called in `context'...) as 
>>> well as in the body text.
>>> 
>>> any help appreciated,
>> 
>> In ConTeXt you have to write
>> 
>>\define\km{\mathematics{K_m}}
>> 
>> but there is not much to gain from this because you can enter math mode in 
>> the text with \m{…}.
> 
> thanks for the response. in my silly example you are right (but even there it 
> saves more than 50% of keystrokes). but I'm thinking of course of more 
> tedious math expressions where it rapidly is handy to use such abbreviations 
> -- the more so, if you have, say, 20 different ones appearing repeatedly in 
> the document. but that would work with the `\def..\math' construct in the 
> body text. what does _not_ work, then, is to use the definition in a display 
> (\startformula...\stopformula) equation (which it _does_ in latex when 
> isolating the math expression with `ensuremath'). so my real question(s) are:
> 
> 1. is there any way to achieve the same functionality in `context' (expansion 
> of math-containing defintion/macro/abbreviation in text _and_ math 
> environment? if yes, how would I do this?
> 
> 2. if no, would it be sensible (and feasible) to modify `\math' behaviour and 
> to make it aware of whether it is called from within text or from within a 
> display equation (in which case it should do nothing...), i.e.  mkae it 
> behave like `\ensuremath' in latex?


1 + 2:

\define\Foo{\mathematics{f(x)}}
\define\Bar{\mathortext {f(x)}{\m{g(x)}}}

\starttext

a \Foo\ \Bar\ b

\startformula
\Foo\ \Bar
\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] Problem with special first page of chapter setup

2005-10-31 Thread Peter Rolf
Hello Gerben,

use your second try and *remove*

\definebuffer[chapter:quote]

from your environment. That's was all :)

Greetings,

Peter


Gerben Wierda wrote:
> Thanks for the tip but I am having trouble getting this to work. I  now
> have in my main text:
> 
> ===
> \startbuffer [chapter:quote]
> Lee Chong's is to the right of the vacant lot (although why
> it is called vacant when it is piled high with old boilers, with rusting
> pipes, with great square timbers, and stacks of five-gallon cans, no 
> one can
> say).\crlf
> {\tf John Steinbeck} --- Cannery Row\crlf
> \crlf
> Doc explained patiently, ``Both players know exactly the same
> things. The game is played in the mind.''\crlf
> ``I don't get it.''\crlf
> ``Well, look! You can't cheat in mathematics or poetry or music because
> they're based on truth. Untruth or cheating is just foreign, it has  no
> place.
> You can't cheat in arithmetic.\crlf
> {\tf John Steinbeck} --- Sweet Thursday
> \stopbuffer
> \chapter[h:foo]{Foo}
> ===
> 
> and in my environment file:
> 
> ===
> \definebuffer[chapter:quote]
> 
> \setuphead
>   [chapter]
>   [page=,
>before={\setups[chapter:before]},
>after={\setups[chapter:after]}]
> 
> \startsetups chapter:before
> 
> \page[left]
> 
> \noheaderandfooterlines
> 
> \startalignment[left,nothyphenated]
> \startnarrower[4*left]
> \noindent \em \getbuffer [chapter:quote]
> \stopnarrower
> \stopalignment
> 
> \resetsetups[quote:text]
> 
> \page[right]
> 
> \noheaderandfooterlines
> 
> \blank[force,2*big]
> 
> \stopsetups
> 
> \startsetups chapter:after
> 
> \blank[3*big]
> 
> \stopsetups
> ===
> 
> But now I get *nothing* on the page facing the chapter start. I  changed
> it to
> 
> ===
> \startbuffer [chapter:quote]
> Lee Chong's is to the right of the vacant lot (although why
> it is called vacant when it is piled high with old boilers, with rusting
> pipes, with great square timbers, and stacks of five-gallon cans, no 
> one can
> say).\crlf
> {\tf John Steinbeck} --- Cannery Row\crlf
> \crlf
> Doc explained patiently, ``Both players know exactly the same
> things. The game is played in the mind.''\crlf
> ``I don't get it.''\crlf
> ``Well, look! You can't cheat in mathematics or poetry or music because
> they're based on truth. Untruth or cheating is just foreign, it has  no
> place.
> You can't cheat in arithmetic.\crlf
> {\tf John Steinbeck} --- Sweet Thursday
> \stopbuffer
> \startsetups [chapter:quote]
> \getbuffer [chapter:quote]
> \stopsetups
> 
> \chapter[h:foo]{Foo}
> ===
> 
> and in my environment file:
> 
> ===
> \definebuffer[chapter:quote]
> 
> \setuphead
>   [chapter]
>   [page=,
>before={\setups[chapter:before]},
>after={\setups[chapter:after]}]
> 
> \startsetups chapter:before
> 
> \page[left]
> 
> \noheaderandfooterlines
> 
> \startalignment[left,nothyphenated]
> \startnarrower[4*left]
> \noindent \em \setups [chapter:quote]
> \stopnarrower
> \stopalignment
> 
> \resetsetups[quote:text]
> 
> \page[right]
> 
> \noheaderandfooterlines
> 
> \blank[force,2*big]
> 
> \stopsetups
> 
> \startsetups chapter:after
> 
> \blank[3*big]
> 
> \stopsetups
> ===
> 
> But that doesn't help either. Still nothing.
> 
> G
> ___
> 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] Figure number off one time

2006-08-01 Thread David Arnold
Very nice. This worked well. Thanks Hans.

In connection with this same question, consider the small example  
that follows. My thinking was that I would like to have a couple of  
lines of the paragraph in the output, then let the rest of the  
paragraph wrap around the figure positioned at the right of the page.  
However, I get a paragraph break and an indent.

Workaround?

\setupwhitespace[medium]

\setupindenting[medium,yes]

\starttext

\section[sec:pythagoras]{The Pythagoreean Theorem}

Pythagoras was a Greek mathematician and philosopher, born on the  
island of
Samos somewhere near the year 582 BC. He founded a number of schools,  
one in
\placefigure
   [right,nonumber][fig:pythagoras]
   {Pythagoras.}
   {\externalfigure[Pythagoras][width=4cm]}
particular in a town in southern Italy called Crotone, whose members  
eventually became known as the Pythagoreans. The inner circle at the  
school, the {\em Mathematikoi}, lived at the school, rid themselves  
of all personal possessions, were vegetarians, and observed a strict  
vow of silence. They studied mathematics, philosophy, and music, and  
held the belief that numbers constitute the true nature of things,  
giving numbers a mystical or even spiritual quality.

Today, nothing is known of Pythagoras's writings, perhaps due to the  
secrecy and silence of the Pythagorean society. However, one of the  
most famous theorems in all of mathematics does bear his name, the  
{\em Pythagorean Theorem.}

\stoptext




On Aug 1, 2006, at 1:01 AM, Hans Hagen wrote:

> Aditya Mahajan wrote:
>> On Mon, 31 Jul 2006, David Arnold wrote:
>>
>>
>>> All,
>>>
>>> I would like to use:
>>>
>>> \placefigure
>>> [right][fig:pythagoras]
>>> {An early portrait of Pythagoras.}
>>> {\getbuffer[figure]}
>>>
>>> And I would like to turn off the figure number in this caption, but
>>> just for this graphic, not for any other I place. I want the number
>>> off, but I want to keep the caption "An early portrait of  
>>> Pythagoras."
>>>
>>> The following didn't work.
>>>
>>
>> Try
>>
>> \start
>>   \setupcaptions[number=no]
>>   \placefigure
>> [right]
>> %  [fig:pythagoras]
>> % If there is no number, you can not refer to it
>>   {An early portrait of Pythagoras.}
>>   {\getbuffer[figure]}
>> \stop
>>
>> Basically \start \stop limit the effect of \setupcaptions. You can
>> also use \bgroup \egroup or { .. } instead. I find \start \stop more
>> Contexish.
>>
> hey, how come you don't know the easy way ...
>
> \placefigure[right,none]{An early portrait of Pythagoras.}{}
>
> \placefigure[right,nonumber]{An early portrait of Pythagoras.}{}
>
> \placefigure[right]{An early portrait of Pythagoras.}{}
>
> it's david's turn to wikify this
>
> Hans
>
> -
>   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
> -
>
> ___
> 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] function machine

2005-12-27 Thread David Arnold

Hans, Taco, et al,

This is getting pretty close to the limit of my expertise. The good  
stuff of it is stolen from Metafun and mp-func.mp.


Because of the way I handle clipping the path,

  p:=p cutbefore cpath;
  p:=reverse p;
  p:=p cutbefore cpath;

this will only work on functions (like lines, quadratics, and  
polynomials, maybe sinusoids) that both enter and leave the region  
inside the clipping path.


I proceed the in the order I do because I want the axes layered atop  
the grid and the functions layered atop the grid and axes.


It's actually a pretty cool routine for teachers as it almost works  
like a TI83 calculator. Just change xmin, xmax, xscl, ymin, ymax, and  
yscl to determine domain and range and tick marks, then adjust the  
number of points for a smooth graph, then set the width of the figure  
you want. There's an option to label the axes differently from the  
usual x and y, if needed.


Finally, thanks to Hans' expertise, the drawfcn routine allows for a  
parametric definition of the intended curve.


All you need to do to make another graphic is copy and paste  
everything  between \startMPpage ... \stopMPpage and adjust the  
parameters described above. Now you have a second plot.


You can run texexec with

texexec filename

or

texexec --page=2 filename

if you only want your second graphic. When I compile all, I write an  
xml database file (very cool) and use


\usemodule[fig-base]
\usefigurebase[figures/figlibSection1]

in my document. Very cool working arrangement.

Here's some lines from my xml file:




College of the Redwoods Mathematics Departmentorganization>

Intermediate Algebra Text
Chapter 1
Figures for Section 1



section1figs-mpgraph.1
yeqx2
College of the Redwoods Mathematics Department




section1figs-mpgraph.2
yeq2x2
College of the Redwoods Mathematics Department



...



And here's my function machine. I'd love to hear any suggestions for  
improvement. Thanks to all who have helped me the last week (Taco has  
been especially patient). I've learned a lot.


%output=pdf

\setupcolors[state=start]

\definecolor[gridlines][s=0.7]

\startMPinclusions

color gridlines; gridlines:=\MPcolor{gridlines};

vardef create_grid (expr l,r,h,b,t,v,wid,ht)=
  save ux, uy; numeric ux, uy;
  (r-l)*ux=wid; (t-b)*uy=ht;
  for k=b step v until t:
draw (l*ux,k*uy)--(r*ux,k*uy) withcolor \MPcolor{gridlines};
  endfor;
  for k=l step h until r:
draw (k*ux,b*uy)--(k*ux,t*uy) withcolor \MPcolor{gridlines};
  endfor;
enddef;

vardef create_axes (expr l,r,b,t,wid,ht) (text xlbl,ylbl) =
  save ux, uy; numeric ux, uy;
  (r-l)*ux=wid; (t-b)*uy=ht;
  textextoffset:=3pt;
  drawdblarrow (1.05*l*ux,0)--(1.05*r*ux,0);
  draw textext.rt(xlbl) shifted (1.05*r*ux,0);
  draw textext.bot(decimal r) shifted (r*ux,0);
  drawdblarrow (0,1.05*b*uy)--(0,1.05*t*uy);
  draw textext.top(ylbl) shifted (0,1.05*t*uy);
  draw textext.lft(decimal t) shifted (0,t*uy);
enddef;

vardef drawfcn (expr ind,dep,l,r,b,t,wid,ht,n) text txt =
  save x, dx, ux, uy; numeric x, dx, ux, uy;
  dx:=(r-l)/n;
  (r-l)*ux=wid; (t-b)*uy=ht;
  save cpath; path cpath; cpath:=(l,b)--(r,b)--(r,t)--(l,t)--cycle;
  save p; path p; hide (x:=l;) p:=(scantokens(ind),scantokens(dep));
  for xx:=l step dx until r:
hide (x:=xx;) p:=p--(scantokens(ind),scantokens(dep));
  endfor;
  hide(x:=r;) p:=p--(scantokens(ind),scantokens(dep));
  p:=p cutbefore cpath;
  p:=reverse p;
  p:=p cutbefore cpath;
  p:=p xyscaled (ux,uy);
  drawdblarrow p txt;
enddef;

\stopMPinclusions

\starttext

\startMPpage

%initialize window parameters
numeric xmin, xmax, xscl, ymin, ymax, yscl;
xmin:=-10;
xmax:=10;
xscl:=1;
ymin:=-10;
ymax:=10;
yscl:=1;

%initialize number of points
numeric num_points;
num_points:=100;

%initialize dimensions of image
numeric width, height;
width=3in;
height=3in;

%create the grid
create_grid(xmin,xmax,xscl,ymin,ymax,yscl,width,height);

%create the axes
create_axes(xmin,xmax,ymin,ymax,width,height)("$x$")("$y$");

%draw the function
%drawf(xmin,xmax,ymin,ymax,width,height,num_points);
drawfcn("x","x*x",xmin,xmax,ymin,ymax,width,height,100) ;

%to add another function with extra formatting, try:
% drawfcn("x","(x+1)*(x+1)",xmin,xmax,ymin,ymax,width,height,100)
% withpen pencircle scaled 2pt dashed evenly withcolor red;

\stopMPpage

\stoptext

%%% Local Variables:
%%% mode: conTeXt-en
%%% End:





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


Re: [NTG-context] Linespacing modified across document

2022-01-23 Thread Hans Hagen via ntg-context

On 1/23/2022 8:58 AM, Alexandre Christe via ntg-context wrote:

Dear list,

I've noticed that in my document the linespacing (verified 
with \the\baselineskip) is not consistent across the whole document.


In the first section, it's fine (no maths). Later on, it gets increased 
by some amount, which tends to depend on what kind of mathematics are in 
between, so it's not constant.


Has anyone else noticed this too?


It can depend on the ht/dp ratio of the font, so maybe you need to adapt 
that (when setting up linespacing).


Hans


-
  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] Re: Inline mathematics is stretched

2023-10-29 Thread Hans Hagen via ntg-context

On 10/29/2023 1:33 PM, Mia Bikey wrote:

Hi,
I was using \setupalign[verytolerant,stretch] so that the mono font does 
not go inside the right inline image but after using that command the 
inline math seems to spread.

how about just using this

\setupbodyfont[concrete]

\starttext

When $a, b, c$ are given, two values of $x$ and no more can be found 
which shall make the function $ax^2 + bx + c$ vanish; that is, the 
equation always has two roots and no more. The roots may be equal or 
unequal, real or imaginary, according to circumstances.


\stoptext

Hans


-
  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 / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


<    1   2   3   4   5   6   7   8   >