ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* bold in math-mode
@ 2013-05-20 12:48 Wim W. Wilhelm
  2013-05-20 12:51 ` Percent symbol inside \type{}? Sander Maijers
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Wim W. Wilhelm @ 2013-05-20 12:48 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 600 bytes --]

Hi all,

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

I us the follwing definitions:

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

Regards,
Wim W. Wilhelm

[-- Attachment #1.2: Type: text/html, Size: 1509 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Percent symbol inside \type{}?
  2013-05-20 12:48 bold in math-mode Wim W. Wilhelm
@ 2013-05-20 12:51 ` Sander Maijers
  2013-05-20 13:04   ` Wolfgang Schuster
  2013-05-20 13:08   ` Marco Patzer
  2013-05-20 13:04 ` bold in math-mode Marco Patzer
  2013-05-20 13:08 ` Wolfgang Schuster
  2 siblings, 2 replies; 10+ messages in thread
From: Sander Maijers @ 2013-05-20 12:51 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hello,

What is the most straightforward way to print a percent symbol inside 
the argument to \type{} (or, if necessary, more generally: monospace type)

Best,
Sander
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: bold in math-mode
  2013-05-20 12:48 bold in math-mode Wim W. Wilhelm
  2013-05-20 12:51 ` Percent symbol inside \type{}? Sander Maijers
@ 2013-05-20 13:04 ` Marco Patzer
  2013-05-20 13:08 ` Wolfgang Schuster
  2 siblings, 0 replies; 10+ messages in thread
From: Marco Patzer @ 2013-05-20 13:04 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 680 bytes --]

On 2013–05–20 Wim W. Wilhelm wrote:

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

The following works with the current beta:

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

\setupbodyfont [palatino]

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

Marco

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 490 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Percent symbol inside \type{}?
  2013-05-20 12:51 ` Percent symbol inside \type{}? Sander Maijers
@ 2013-05-20 13:04   ` Wolfgang Schuster
  2013-05-21 14:02     ` Sander Maijers
  2013-05-20 13:08   ` Marco Patzer
  1 sibling, 1 reply; 10+ messages in thread
From: Wolfgang Schuster @ 2013-05-20 13:04 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 20.05.2013 um 14:51 schrieb Sander Maijers <S.N.Maijers@student.ru.nl>:

> Hello,
> 
> What is the most straightforward way to print a percent symbol inside the argument to \type{} (or, if necessary, more generally: monospace type)


Is this easy enough for you?

\starttext
\type{%}
\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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Percent symbol inside \type{}?
  2013-05-20 12:51 ` Percent symbol inside \type{}? Sander Maijers
  2013-05-20 13:04   ` Wolfgang Schuster
@ 2013-05-20 13:08   ` Marco Patzer
  2013-05-21 14:17     ` Sander Maijers
  1 sibling, 1 reply; 10+ messages in thread
From: Marco Patzer @ 2013-05-20 13:08 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 493 bytes --]

On 2013–05–20 Sander Maijers wrote:

> What is the most straightforward way to print a percent symbol
> inside the argument to \type{} (or, if necessary, more generally:
> monospace type)

I'd say the most straightforward way is using \asciimode:

\starttext
  \startlines
    \mono{foo \% bar}
    \mono{foo \letterpercent\ bar}
    \asciimode
    \mono{foo % bar}
  \stoplines
\stoptext

Marco

PS: Please don't hijack threads. Start a new thread for each new issue.

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 490 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: bold in math-mode
  2013-05-20 12:48 bold in math-mode Wim W. Wilhelm
  2013-05-20 12:51 ` Percent symbol inside \type{}? Sander Maijers
  2013-05-20 13:04 ` bold in math-mode Marco Patzer
@ 2013-05-20 13:08 ` Wolfgang Schuster
  2 siblings, 0 replies; 10+ messages in thread
From: Wolfgang Schuster @ 2013-05-20 13:08 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 998 bytes --]


Am 20.05.2013 um 14:48 schrieb Wim W. Wilhelm <ww.wilhelm@kpnmail.nl>:

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

1. MkIV doesn’t need a font encoding.

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

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

\setupbodyfont[palatino]

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

Wolfgang


[-- Attachment #1.2: Type: text/html, Size: 2556 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Percent symbol inside \type{}?
  2013-05-20 13:04   ` Wolfgang Schuster
@ 2013-05-21 14:02     ` Sander Maijers
  2013-05-21 19:16       ` Wolfgang Schuster
  0 siblings, 1 reply; 10+ messages in thread
From: Sander Maijers @ 2013-05-21 14:02 UTC (permalink / raw)
  To: mailing list for ConTeXt users

That does not work for me, Wolfgang. With or without the 
\start-/stoptext (which is redundant in my own document I assume).

>         \placetable{Test}
>         {\bTABLE
>             \bTR
>                 \bTD[background=color,backgroundcolor=gray] tst \eTD
>                 \bTD \starttext \type{Hello %s --test world --test %s} \stoptext \eTD
>             \eTR
>         \eTABLE}

Error:

Runaway argument?
\starttext \type {Hello \eTR \bTR \bTD [background=color,backgroundco\ETC.
! File ended while scanning use of \tabl_ntb_td_nop.



On 20-05-13 15:04, Wolfgang Schuster wrote:
>
> Am 20.05.2013 um 14:51 schrieb Sander Maijers <S.N.Maijers@student.ru.nl>:
>
>> Hello,
>>
>> What is the most straightforward way to print a percent symbol inside the argument to \type{} (or, if necessary, more generally: monospace type)
>
>
> Is this easy enough for you?
>
> \starttext
> \type{%}
> \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
> ___________________________________________________________________________________
>
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Percent symbol inside \type{}?
  2013-05-20 13:08   ` Marco Patzer
@ 2013-05-21 14:17     ` Sander Maijers
  2013-05-21 14:44       ` Arthur Reutenauer
  0 siblings, 1 reply; 10+ messages in thread
From: Sander Maijers @ 2013-05-21 14:17 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 20-05-13 15:08, Marco Patzer wrote:
> On 2013–05–20 Sander Maijers wrote:
>
>> What is the most straightforward way to print a percent symbol
>> inside the argument to \type{} (or, if necessary, more generally:
>> monospace type)
>
> I'd say the most straightforward way is using \asciimode:
>
> \starttext
>    \startlines
>      \mono{foo \% bar}
>      \mono{foo \letterpercent\ bar}
>      \asciimode
>      \mono{foo % bar}
>    \stoplines
> \stoptext


That works, thanks!

> Marco
>
> PS: Please don't hijack threads. Start a new thread for each new issue.

I have used a new subject line. If you see any problem that makes you 
think that I hijacked a thread could you point it out, please?

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


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Percent symbol inside \type{}?
  2013-05-21 14:17     ` Sander Maijers
@ 2013-05-21 14:44       ` Arthur Reutenauer
  0 siblings, 0 replies; 10+ messages in thread
From: Arthur Reutenauer @ 2013-05-21 14:44 UTC (permalink / raw)
  To: Mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 811 bytes --]

> I have used a new subject line. If you see any problem that makes

  Changing the subject line is not enough. If you are reading another
email sent to the list, and you press "reply" or something similar, the
email you send will contain instructions to link it to the earlier
email, and many mailers will display them as one thread (see attached
image that shows how it is displayed in my mailer).  I suspect that's
what you've done here.  Technically, the problem is that your email's
headers contain a field "References", which they shouldn't; but from a
usage point of view the easiest is to simply start a new thread by using
the "compose" feature of your mailer, or equivalent.  As I see that
you're using Thunderbird, I'm surprised that it doesn't display the
emails in one thread, by the way.

	Arthur

[-- Attachment #2: email-thread.png --]
[-- Type: image/png, Size: 20975 bytes --]

[-- Attachment #3: Type: text/plain, Size: 485 bytes --]

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Percent symbol inside \type{}?
  2013-05-21 14:02     ` Sander Maijers
@ 2013-05-21 19:16       ` Wolfgang Schuster
  0 siblings, 0 replies; 10+ messages in thread
From: Wolfgang Schuster @ 2013-05-21 19:16 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 21.05.2013 um 16:02 schrieb Sander Maijers <S.N.Maijers@student.ru.nl>:

> That does not work for me, Wolfgang. With or without the \start-/stoptext (which is redundant in my own document I assume).

My example was a short a complete document and not a snippet which can be just
copied in a document.

>>        \placetable{Test}
>>        {\bTABLE
>>            \bTR
>>                \bTD[background=color,backgroundcolor=gray] tst \eTD
>>                \bTD \starttext \type{Hello %s --test world --test %s} \stoptext \eTD
>>            \eTR
>>        \eTABLE}
> 
> Error:
> 
> Runaway argument?
> \starttext \type {Hello \eTR \bTR \bTD [background=color,backgroundco\ETC.
> ! File ended while scanning use of \tabl_ntb_td_nop.

This can’t work because \type doesn’t work when used in a natural table
or in tabulate because it can’t change the meaning of % which has already
disappeared at this moment.

Using \letterpercent or \asciimode are the best solutions in this case.

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2013-05-21 19:16 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-20 12:48 bold in math-mode Wim W. Wilhelm
2013-05-20 12:51 ` Percent symbol inside \type{}? Sander Maijers
2013-05-20 13:04   ` Wolfgang Schuster
2013-05-21 14:02     ` Sander Maijers
2013-05-21 19:16       ` Wolfgang Schuster
2013-05-20 13:08   ` Marco Patzer
2013-05-21 14:17     ` Sander Maijers
2013-05-21 14:44       ` Arthur Reutenauer
2013-05-20 13:04 ` bold in math-mode Marco Patzer
2013-05-20 13:08 ` Wolfgang Schuster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).