* \math or $ doesn't work.
@ 2015-06-02 15:45 John Culleton
2015-06-02 15:54 ` John Culleton
0 siblings, 1 reply; 5+ messages in thread
From: John Culleton @ 2015-06-02 15:45 UTC (permalink / raw)
To: mailing list for ConTeXt users
I want to insert the string 8 1/2 x 11 in my
text. Here is my test file:
----------------------------
\starttext
\math{8^1_2} × 11 inch,
\stoptext
----------------------------
I am using texlive 2014 mkiv.
--
John Culleton
Wexford Press
Book layout, typesetting and Indexing
Free list of books for self-publishers:
http://wexfordpress.net/shortlist.html
___________________________________________________________________________________
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] 5+ messages in thread
* Re: \math or $ doesn't work.
2015-06-02 15:45 \math or $ doesn't work John Culleton
@ 2015-06-02 15:54 ` John Culleton
2015-06-02 16:30 ` Pablo Rodriguez
0 siblings, 1 reply; 5+ messages in thread
From: John Culleton @ 2015-06-02 15:54 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Tue, 2 Jun 2015 11:45:35 -0400
John Culleton <John@wexfordpress.com> wrote:
> I want to insert the string 8 1/2 x 11 in my
> text. Here is my test file:
> ----------------------------
> \starttext
> \math{8^1_2} × 11 inch,
> \stoptext
> ----------------------------
> I am using texlive 2014 mkiv.
I also tried this:
-----------------------
\starttext
8 1/2 × 11 inch,
\stoptext
---------------------
The error message is the same:
-------------------------------
system > tex > error on line 2 in
file /usr/local/active/hall/ftp/test.tex: String
contains an invalid utf-8 sequence ...
1 \starttext
2 >> 8 1/2 × 11 inch,
3 \stoptext
4
5
----------------------------------------
--
John Culleton
Wexford Press
Book layout, typesetting and Indexing
Free list of books for self-publishers:
http://wexfordpress.net/shortlist.html
___________________________________________________________________________________
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] 5+ messages in thread
* Re: \math or $ doesn't work.
2015-06-02 15:54 ` John Culleton
@ 2015-06-02 16:30 ` Pablo Rodriguez
2015-06-02 19:08 ` John Culleton
0 siblings, 1 reply; 5+ messages in thread
From: Pablo Rodriguez @ 2015-06-02 16:30 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 06/02/2015 05:54 PM, John Culleton wrote:
> On Tue, 2 Jun 2015 11:45:35 -0400
> John Culleton wrote:
>
>> I want to insert the string 8 1/2 x 11 in my
>> text. Here is my test file:
>> ----------------------------
>> \starttext
>> \math{8^1_2} × 11 inch,
>> \stoptext
>> ----------------------------
>> I am using texlive 2014 mkiv.
Hi John,
me too (current version: 2014.05.21 22:04 ;-)) and both samples (above
and below) compile fine.
> I also tried this:
> -----------------------
> \starttext
> 8 1/2 × 11 inch,
> \stoptext
> ---------------------
> The error message is the same:
> -------------------------------
> system > tex > error on line 2 in
> file /usr/local/active/hall/ftp/test.tex: String
> contains an invalid utf-8 sequence ...
Are you sure that character encoding in your file is utf8?
I can cause this error message, but only after replacing character
encoding in file with ISO 8859-15.
BTW, your file is in /usr/local. I thought that in Unix there was no
place like /home :-).
I hope it helps,
Pablo
--
http://www.ousia.tk
___________________________________________________________________________________
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] 5+ messages in thread
* Re: \math or $ doesn't work.
2015-06-02 16:30 ` Pablo Rodriguez
@ 2015-06-02 19:08 ` John Culleton
2015-06-02 20:16 ` Otared Kavian
0 siblings, 1 reply; 5+ messages in thread
From: John Culleton @ 2015-06-02 19:08 UTC (permalink / raw)
To: ntg-context
On Tue, 02 Jun 2015 18:30:04 +0200
Pablo Rodriguez <oinos@gmx.es> wrote:
> On 06/02/2015 05:54 PM, John Culleton wrote:
> > On Tue, 2 Jun 2015 11:45:35 -0400
> > John Culleton wrote:
> >
> >> I want to insert the string 8 1/2 x 11 in my
> >> text. Here is my test file:
> >> ----------------------------
> >> \starttext
> >> \math{8^1_2} × 11 inch,
> >> \stoptext
> >> ----------------------------
> >> I am using texlive 2014 mkiv.
>
> Hi John,
>
> me too (current version: 2014.05.21 22:04 ;-))
> and both samples (above and below) compile fine.
>
> > I also tried this:
> > -----------------------
> > \starttext
> > 8 1/2 × 11 inch,
> > \stoptext
> > ---------------------
> > The error message is the same:
> > -------------------------------
> > system > tex > error on line 2 in
> > file /usr/local/active/hall/ftp/test.tex:
> > String contains an invalid utf-8 sequence ...
>
> Are you sure that character encoding in your
> file is utf8?
>
> I can cause this error message, but only after
> replacing character encoding in file with ISO
> 8859-15.
>
> BTW, your file is in /usr/local. I thought that
> in Unix there was no place like /home :-).
>
> I hope it helps,
>
>
> Pablo
We are on the home stretch now. I added
\enableregime [utf-8]
as the first line of my
master file. Theoretically I don't need this for a
MKIV run but so much for theory.
Everything works. But there is
something wrong with my math code. There is no
horizontal bar between the 1 and the 2. I guess
I will study "The TEXbook" some more.
Just FYI, I keep personal stuff and also my
political articles in /home/safe but my
typesetting and index work goes in subdirectories
of:
/usr/local/active/
one for each project.
Thanks for your prompt and useful reply!
--
John Culleton
Wexford Press
Book layout, typesetting and Indexing
Free list of books for self-publishers:
http://wexfordpress.net/shortlist.html
___________________________________________________________________________________
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] 5+ messages in thread
* Re: \math or $ doesn't work.
2015-06-02 19:08 ` John Culleton
@ 2015-06-02 20:16 ` Otared Kavian
0 siblings, 0 replies; 5+ messages in thread
From: Otared Kavian @ 2015-06-02 20:16 UTC (permalink / raw)
To: mailing list for ConTeXt users
> On 02 Jun 2015, at 21:08, John Culleton <John@wexfordpress.com> wrote:
> […]
> Everything works. But there is
> something wrong with my math code. There is no
> horizontal bar between the 1 and the 2. I guess
> I will study "The TEXbook" some more.
Hi John,
It is a good idea to read again The TeXBook, but actually I wonder why should TeX put a horizontal line between 1 and 2 in your code?
What you are typesetting in mathmode is just 8 followed by 1 in exponent (uppserscript) and 2 in subscript, therefore there shouldn’t be any fraction bar between 1 and 2.
If the font you use has the character, what you want to typeset is the character U+00BD for 1/2 or, if you want to use mathmode, either of the solutions below (wtach the slight differences between the three versions):
\starttext
$8\tfrac{1}{2} × 11$ inch
$8\frac{1}{2} × 11$ inch
$8{1 \over 2} × 11$ inch
\stoptext
Indeed you can replace $…$ with \math{…}.
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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-06-02 20:16 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-02 15:45 \math or $ doesn't work John Culleton
2015-06-02 15:54 ` John Culleton
2015-06-02 16:30 ` Pablo Rodriguez
2015-06-02 19:08 ` John Culleton
2015-06-02 20:16 ` Otared Kavian
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).