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
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
Am 20.05.2013 um 14:51 schrieb Sander Maijers
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
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
: 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 ___________________________________________________________________________________
Am 21.05.2013 um 16:02 schrieb Sander Maijers
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
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.
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 ___________________________________________________________________________________
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
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
Am 20.05.2013 um 14:48 schrieb Wim W. Wilhelm
Hi all,
How can I get boldface characters and symbols (\bf) in mathmode. I'm using mkiv from TexLive 2012. I use palatino, but also would like to use palatino with euler. Hope somebody can help me out.
I us the follwing definitions:
\starttypescript[palatino] [texnansi,ec,qx,t5,default] \definetypeface [palatino] [rm] [serif] [palatino] [default] \definetypeface [palatino] [mm] [math] [palatino] [default] \definetypeface [palatino] [ss] [sans] [modern] [default] \definetypeface [palatino] [tt] [mono] [modern] [default] \stoptypescript
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
participants (5)
-
Arthur Reutenauer
-
Marco Patzer
-
Sander Maijers
-
Wim W. Wilhelm
-
Wolfgang Schuster