f

#### Bold text and math

I'm trying to make a quick and dirty command that will allow me to put
answers into the multiple choice section of a test I'm writing with them
showing up as regular text when I print it out, but then switch them to
bold when I want to make the answer key.

I've got the ifthenelse stuff working, but the issue now is that I'd like
both text and maths to be bold in the answer key.  The command I
am currently using is

{\item[\bnum] \textbf{#1 --- #2}}{\item #1}}

This get's all the text of course, but none of the maths.  Is there
solution that will turn everything bold, regardless of what the
environment of #1 and #2 are?

 0
klassen (126)
9/22/2004 1:09:50 PM
comp.text.tex 39029 articles. 3 followers.

9 Replies
853 Views

Similar Articles

[PageSpeed] 37

David Klassen schrieb:
> I'm trying to make a quick and dirty command that will allow me to put
> answers into the multiple choice section of a test I'm writing with them
> showing up as regular text when I print it out, but then switch them to
> bold when I want to make the answer key.
>
> I've got the ifthenelse stuff working, but the issue now is that I'd like
> both text and maths to be bold in the answer key.  The command I
> am currently using is
>
>       {\item[\bnum] \textbf{#1 --- #2}}{\item #1}}
>
> This get's all the text of course, but none of the maths.  Is there
> solution that will turn everything bold, regardless of what the
> environment of #1 and #2 are?

David,

Have a look at the bm-package to turn the math-stuff bold.

Tom

 0
kink1 (99)
9/22/2004 1:24:31 PM
Tom Kink schrieb:
>
> > I've got the ifthenelse stuff working, but the issue now is that I'd like
> > both text and maths to be bold in the answer key.  [...] T
>
> Have a look at the bm-package to turn the math-stuff bold.

Pardon me, but

Enclose the formula to be emboldened into a group or environment
where the declaration \boldmath is active:

{\boldmath
arbitrary text...
$...$
arbitrary text...
}

This is a standard feature LaTeX.

The extra bm package serves primarily to embolden single symbols,
letters or parts of formulas.  Using it to print complete formulas
in bold type is "overkill".

Walter

 0
tex1 (135)
9/22/2004 2:04:14 PM
Walter Schmidt schrieb:

> Tom Kink schrieb:
>
>>>I've got the ifthenelse stuff working, but the issue now is that I'd like
>>>both text and maths to be bold in the answer key.  [...] T
>>
>>Have a look at the bm-package to turn the math-stuff bold.
>
>
> Pardon me, but
>
> Enclose the formula to be emboldened into a group or environment
> where the declaration \boldmath is active:
>
> {\boldmath
>   arbitrary text...
>   $...$
>   arbitrary text...
> }
>
> This is a standard feature LaTeX.
>
> The extra bm package serves primarily to embolden single symbols,
> letters or parts of formulas.  Using it to print complete formulas
> in bold type is "overkill".

Oh well, learn something new every day. Thanks for specifying the proper
ways of usage. I did not really think when I answered that question.

Tom

 0
kink1 (99)
9/22/2004 2:39:14 PM
Walter Schmidt <tex@quantentunnel.de> wrote in message news:<4151865E.F7E529F8@quantentunnel.de>...
>
> Enclose the formula to be emboldened into a group or environment
> where the declaration \boldmath is active:
>
> {\boldmath
>   arbitrary text...
>   $...$
>   arbitrary text...
> }

Thanks for the help!

This gets the math, but not the text.  I want *everything* to be bold:
text, math, symbols, etc.

 0
klassen (126)
9/22/2004 8:34:17 PM
David Klassen schrieb:
>
> Walter Schmidt <tex@quantentunnel.de> wrote in message news:<4151865E.F7E529F8@quantentunnel.de>...
> >
> > Enclose the formula to be emboldened into a group or environment
> > where the declaration \boldmath is active:
> >
> > {\boldmath
> >   arbitrary text...
> >   $...$
> >   arbitrary text...
> > }
>
> Thanks for the help!
>
> This gets the math, but not the text.  I want *everything* to be bold:
> text, math, symbols, etc.

I assumed you know already how to embolden text...
Issue the declaration \bfseries in adition to \boldmath.

Walter

 0
tex1 (135)
9/22/2004 10:28:52 PM
Try with the following command:

\bfseries\mathversion{bold}

Best of Luck
Saravanan,M.
India

Walter Schmidt <tex@quantentunnel.de> wrote in message news:<4151FCA4.BCB60119@quantentunnel.de>...
> David Klassen schrieb:
> >
> > Walter Schmidt <tex@quantentunnel.de> wrote in message news:<4151865E.F7E529F8@quantentunnel.de>...
> > >
> > > Enclose the formula to be emboldened into a group or environment
> > > where the declaration \boldmath is active:
> > >
> > > {\boldmath
> > >   arbitrary text...
> > >   $...$
> > >   arbitrary text...
> > > }
> >
> > Thanks for the help!
> >
> > This gets the math, but not the text.  I want *everything* to be bold:
> > text, math, symbols, etc.
>
> I assumed you know already how to embolden text...
> Issue the declaration \bfseries in adition to \boldmath.
>
> Walter

 0
9/23/2004 4:11:33 AM
"Saravanan,M." <Saravanan_Typesetter@yahoo.co.in> wrote
> Try with the following command:
>
> \bfseries\mathversion{bold}
>
> Walter Schmidt <tex@quantentunnel.de> wrote
> > David Klassen schrieb:
> > > Walter Schmidt <tex@quantentunnel.de> wrote
> > > >
> > > > Enclose the formula to be emboldened into a group or
environment
> > > > where the declaration \boldmath is active:
> > > >
> > > > {\boldmath
> > > >   arbitrary text...
> > > >   $...$
> > > >   arbitrary text...
> > > > }

What's the difference between \boldmath and \mathversion{bold}?

And, a related question, I think:
Is there any way to change to bold math (maybe even for italics) that
will also work with other fonts like mathptmx? My problem is that I'd
prefer to typeset vectors and matrices in bold italics as required by
the ISO standards but I couldn't find a way to do so for various fonts.

Andreas.

--
For replying by E-Mail, please remove the fruit and the "invalid" TLD


 0
9/23/2004 8:33:20 AM
> What's the difference between \boldmath and \mathversion{bold}?

not a lot:-)

\def\boldmath{\@nomath\boldmath
\mathversion{bold}}

ie boldmath makes a user level error message if you try to use it inside
math mode, whereas \mathversio just does the qrong thing (experts aren't
supposed to make mistakes, so appeciate saving a couple of tokens:-)

> Is there any way to change to bold math (maybe even for italics) that
> will also work with other fonts like mathptmx? My problem is that I'd
> prefer to typeset vectors and matrices in bold italics as required by
> the ISO standards but I couldn't find a way to do so for various fonts.

bm is supposed to do that. Although to get good results your math font
set up does have to have bold fonts (otherwise bm uses poor mans bold,
overprinting)

David

 0
davidc5020 (601)
9/23/2004 10:16:19 AM
Walter Schmidt <tex@quantentunnel.de> wrote in message news:<4151FCA4.BCB60119@quantentunnel.de>...
> David Klassen schrieb:
> >
> > Walter Schmidt <tex@quantentunnel.de> wrote in message news:<4151865E.F7E529F8@quantentunnel.de>...
> > >
> > > Enclose the formula to be emboldened into a group or environment
> > > where the declaration \boldmath is active:
> > >
> > > {\boldmath
> > >   arbitrary text...
> > >   $...$
> > >   arbitrary text...
> > > }
> >
> > Thanks for the help!
> >
> > This gets the math, but not the text.  I want *everything* to be bold:
> > text, math, symbols, etc.
>
> I assumed you know already how to embolden text...

I usually use \textbf{...} for that.

> Issue the declaration \bfseries in adition to \boldmath.

AHHHH...I didn't realize these basically set "states" and can be used
in conjunction with each other.

Right---state setting things can be used together, like \bfseries and \itshape;
both take effect and stay on for the rest of the environment.

Thanks!

 0
klassen (126)
9/23/2004 4:09:19 PM

Similar Artilces:

text + text
What is "text + text" supposed to do right now? It doesn't seem very useful to me. What about making "text + text" as an equivalent for "text || text"? Most strongly-typed programming languages do this. And MS SQL Server too, I think (CMIIW). -- dave ---------------------------(end of broadcast)--------------------------- TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org Am Freitag, 8. Oktober 2004 12:57 schrieb David Garamond: > What is "text + text" supposed to do right now? Nothing. > What about making "text + text" as an equivalent for "text > || text"? Most strongly-typed programming languages do this. And MS SQL > Server too, I think (CMIIW). What would this gain except for bloat? It's not like SQL is utterly compatible with any programming language; users will still have to learn all the operators anyway. -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---------------------------(end of broadcast)--------------------------- TIP 9: the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match Peter Eisentraut wrote: >>What is "text + text" supposed to do right now? > > Nothing. Then are these bugs? (7.4.5 and 8.0.0beta1 give same results). Frankly, the current behaviour is quite strange to me. ------------------ =...

text-text
Wondering how what I input to my UTF-8 terminal gets passed along through my patched [1] trn ... Cyrillic: А Б В Г Д Е Ж З И Й К Л М Н О П а б в г д е ж з и й к л м н о п IPA: ᴀ ᴁ ᴂ ᴃ ᴄ ᴅ ᴆ ᴇ ᴈ ᴉ ᴊ ᴋ ᴌ ᴍ ᴎ ᴏ ɀ Ɂ ɂ Ƀ Ʉ Ʌ Ɇ ɇ Ɉ ɉ Ɋ ɋ Ɍ ɍ Ɏ ɏ [1] https://groups.google.com/d/msg/comp.sys.raspberry-pi/7Z37Hdrm0DM/6aqD-reXFzAJ ...

format bold text in a text box
I have a text box with this: =" Your name is: " $[Name]$ " and last name is " $[Lname] I want ONLY the [Name] and [Lname} to format bold and the other text not. Could I do this? You would needt use an RTF control for this. Hav a look at http://www.lebans.com/richtext.htm -- Terry Kreft "yiannis" <postnews@freemail.gr> wrote in message news:eeatc8$oql$1@volcano1.grnet.gr... > I have a text box with this: > =" Your name is: "$ [Name] $" and last name is "$ [Lname] > > I want ONLY the [Name] and [Lname} to form...

Surrounding text with text
I was wondering if it was possible to surround a text body with text like so: +--------------+ |ABCDEFGHIJKLM | |H N| |A Main Body O| |L Text goes P| |B here Q| |-=+_ZYXWVUTSR | | | | | | | | | +--------------+ This seems far-fetched, but just curious. I suppose that I could just move stuff around by hand in the GIMP later on, but there's probably a {better,more {extensible,clean}} way of doing it from (La)TeX. -FreeSmith ptjm@interlog.com (Patrick TJ McPhee) wrote in message news:<bffbhe$per$1@news.eusc.inter.net>... > Peter Flynn had an example like that, which he either posted here or > posted a link here. It was something to do with a certificate -- try > searching for his name and that word in google. > > It wouldn't be hard to do with metapost. I have a macro called pathalong' > which puts text along an arbitrary path. Well, it's been a while, but I finally finished it. It's a little job I was doing for an upcoming wedding. At any rate, I used pstricks to make the text go along a path, along with a couple of hacks for sizing (from graphicx) and kerning along the line (from soul). Here's the code (don't laugh): CAUTION:THIS CODE MAY MAKE YOU WRETCH ---SNIP--- \documentclass{article} \usepackage{graphicx} \usepackage{pstricks,pst-text,nopageno} \usepackage[width=8.5in]{geometry} \usepackage{soul} \begin{document} \thispagestyle{empty} \set...

Encryption from text to text...
I am looking for an encryption algorithm that converts plain texts into another form, one character to another...What are the nice and simple algorithms out there? Thanks. In article <418f03f8@news.starhub.net.sg>, Kelvin <thefatcat28@hotmail.com> wrote: > I am looking for an encryption algorithm that converts plain texts into > another > form, one character to another...What are the nice and simple algorithms out > there? > > Thanks. You can look on CPAN (<http://search.cpan.org>) for various Crypt:: modules. FYI: this newsgroup is defunct. Try comp.lang.perl.misc in the future. On Mon, 08 Nov 2004 13:35:46 +0800, Kelvin wrote: > I am looking for an encryption algorithm that converts plain texts into > another > form, one character to another...What are the nice and simple algorithms out > there? > > Thanks. I'm not sure how secure you need it to be, you could use the rot13 method. Used in newsgroups... It changes every letter to the letter 13 places ahead of it. The nice thing about it though is that you use the same method of to decode, (there's 26 letters). Not secure, but nice easy and simple.mine not sure how sercure you need it to be, you could use the rot13 method. Used in newsgroups... It changes every letter to the letter 13 places ahead of it. The nice thing about it though is that you use the same method of to decoed, (theres 26 letters). Not sercure, but nice easy and simple. -- Andre...

Pages
I have a titel-textfield over a pic (headline) , text is black, background for text transparent. A second textfield should overlapp the first textline..... When i arrange the second field with the same settings like the first, the first text disappear... How can i do, that the second text overpapps the first, all over the pic. Any help appreciated! Thanks for replies! I am german and hope that the engish speaking people understand my problem! Soory! Gerd In article <611db9e2-b085-4fe5-907a-ca714b0c32dd@m74g2000hsh.googlegroups.com>, hurlebaus <gerd.schenk@freenet.de> wrote:...

text 2 text
I'm rather new to ustation and am having trouble finding replacements for all of my Acad lisp routines. One that I'd like to find changes a selected text string to read like the second selected text string. I realize this can all be done in the text editor but it's not all that quick. Does anyone know of a macro or mdl which can handle this task? Thanks in advance.---Calvin I don't know of any application that will do what you describe, but have you looked at Edit > Find/Replace text? You may also find Bentley's discussion groups of assistance. Over there you can meet other users of Bentley products, exchange ideas, and discuss a wide range of technical subjects. These groups are an excellent technical resource for all users of Bentley products and services. Hope to see you there! For more information take a peek at this page: http://selectservices.bentley.com/discussion/index.htm -- Best Regards, Inga Morozoff [Bentley] www.askinga.com "jgonzales24" <jgonzales24@cox.net> wrote in message news:xcLMb.13975$zs4.2376@fed1read01... > I'm rather new to ustation and am having trouble finding replacements for > all of my Acad lisp routines. One that I'd like to find changes a selected > text string to read like the second selected text string. I realize this > can all be done in the text editor but it's not all that quick. Does anyone > know of a macro or mdl whi... Why does$TEXT() not return text?

highlight text in text widget
Hi, I am trying to make widget that displays text. I also want a search keywords available. The way I have envisioned is something similar to emacs search, i.e. it highlights all the occurrences of the keyword that you are interested in. I am trying to find out if that kind of highlighting be done in widget_text or some other widgets. Can anyone help? Thanks neon writes: > I am trying to make widget that displays text. I also want a search > keywords available. The way I have envisioned is something similar to > emacs search, i.e. it highlights all the occurrences of the keyword &g...

text field only for text
Hi I would like some help about the following : I have a text field and I don't want it contains any numbers. How can I limit this situation ? So far, I couldn't find literature exacly about this here in the newsgroup. TIA Paulo "Paulo Rodrigues" <amigo.alf@netvisao.pt> wrote in message news:<newscache$kgmtmh$bb1\$1@newsfront4.netvisao.pt>... > Hi > > I would like some help about the following : > > I have a text field and I don't want it contains any numbers. How can I > limit > this situation ? > > So far, I couldn't...

Text ( unicode ) To Text (ANSI)
Dear Sir, I have a text file ( unicode) i want to transfer this file to text ( Ansi ) by command Read up on MultiByteToWideChar and WideCharToMultiByte http://windowssdk.msdn.microsoft.com/library/en-us/Intl/unicode_17si.asp ...

raw text, source text?
I have two people who write me using Gmail and the format of the emails I get is bad. It has capital �'s all over the place. I can't tell the pattern. At the end of most llines and other places. It can't send an apostrophe correctly. Instead it looks like �tm And something it sends looks like ·� � � � � � �, Maybe this is just more A's but what it looks like in my email is some Germanic R with a big dot next and 6 tiny �'s that look like the surf coming in. Once a month ago the email from one sender came in looking good, but he told me...

Web resources about - Bold text and math - comp.text.tex

Bold Poker
Crazy idea, exquisitely well done: Bold Poker replaces your deck of cards with iPhones. A whole bunch of iPhones. Crazy because why not just ...

‘Wake Up. Be Bold.’
I’m sure this campaign will sell a lot of BlackBerrys and turn RIM right around.

Bold as Love (novel) - Wikipedia, the free encyclopedia
Bold As Love , first published in 2001, is the first of a series of five books written by Gwyneth Jones and set in a near-future version of the ...

Grizzly Adams-like character enjoys him some bold flavor. #manliest

Niti Central - Bold and Right - Latest News - Breaking Live News Today - Latest News India - Politics ...
... India through an alternative Center Right latest news and opinions on India and the world that promotes what is good for the country.Bold and ...

Bold & The Beautiful (@BandB_CBS) on Twitter

bold.dk on the App Store on iTunes
Get bold.dk on the App Store. See screenshots and ratings, and read customer reviews.

Senator Bernie Sanders making the case for how VT can lead the world towards bold climat - Flickr - Photo ...
Photo by David Garten, www.vtweddingphoto.com/ All around the state, Vermonters participated in a global day of action to connect the dots between ...

My Bold Dad - Presented by The Bold New Camry - Toyota - YouTube
Being a dad is a choice. One that will make a wonderful human being who will make their own choices someday. #OneBoldChoice SUBSCRIBE: http: ...

The bold plan to bring North Sydney Bears back to NRL via Gold Coast Titans
Central Coast Bears CEO Greg Florimo believes the Gold Coast franchise will succeed if the NRL gives the green light to his organisation's bold ...

Resources last updated: 3/11/2016 5:04:49 PM