Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Inline equation overspill
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  11 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Tom Sturges  
View profile  
 More options Sep 30 2012, 7:41 am
Newsgroups: comp.text.tex
From: Tom Sturges <sturges....@gmail.com>
Date: Sun, 30 Sep 2012 04:41:42 -0700 (PDT)
Local: Sun, Sep 30 2012 7:41 am
Subject: Inline equation overspill
I have an inline equation, well really its just a number with some units, but its sticking awkwardly outside the margins of the text. How can I get it to sit nicely within the margins?

Here's what the code looks like...

In 2008, low temperature electron transport in graphene was shown to be ballistic, with mobilities as high as $200,000\mbox{cm}^2\mbox{V}^{-1}\mbox{s}^{-1}$  \cite{Du2008}. Additionally, graphene is a two-dimension..........

Thanks for any help =)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Marc van Dongen  
View profile  
 More options Sep 30 2012, 8:34 am
Newsgroups: comp.text.tex
From: Marc van Dongen <don...@cs.ucc.ie>
Date: Sun, 30 Sep 2012 05:34:12 -0700 (PDT)
Local: Sun, Sep 30 2012 8:34 am
Subject: Re: Inline equation overspill

On Sunday, September 30, 2012 12:41:42 PM UTC+1, Tom Sturges wrote:
> I have an inline equation, well really its just a number with some units, but its sticking awkwardly outside the margins of the text. How can I get it to sit nicely within the margins?

> Here's what the code looks like...

> In 2008, low temperature electron transport in graphene was shown to be ballistic, with mobilities as high as $200,000\mbox{cm}^2\mbox{V}^{-1}\mbox{s}^{-1}$  \cite{Du2008}. Additionally, graphene is a two-dimension..........

> Thanks for any help =)

Howsabout:

\documentclass{article}
\usepackage{siunitx}

\begin{document}
In 2008, low temperature electron transport in graphene
 was shown to be ballistic,
 with mobilities as high as
 \SI{20}{\metre^2\per\volt\second}~\cite{Du2008}.
Additionally, graphene is a two-dimension..........
\end{document}

Regards,

Marc van Dongen


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Joseph Wright  
View profile  
 More options Sep 30 2012, 8:41 am
Newsgroups: comp.text.tex
From: Joseph Wright <joseph.wri...@morningstar2.co.uk>
Date: Sun, 30 Sep 2012 13:41:48 +0100
Local: Sun, Sep 30 2012 8:41 am
Subject: Re: Inline equation overspill
On 30/09/2012 13:34, Marc van Dongen wrote:

>  \SI{20}{\metre^2\per\volt\second}~\cite{Du2008}.

Better to use \metre\squared\per\volt\second (or an abbreviated form) as
it leaves siunitx free to work 'magic' with the display of the unit.
--
Joseph Wright

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Marc van Dongen  
View profile  
 More options Sep 30 2012, 9:00 am
Newsgroups: comp.text.tex
From: Marc van Dongen <don...@cs.ucc.ie>
Date: Sun, 30 Sep 2012 06:00:38 -0700 (PDT)
Local: Sun, Sep 30 2012 9:00 am
Subject: Re: Inline equation overspill

On Sunday, September 30, 2012 1:41:49 PM UTC+1, Joseph Wright wrote:
> On 30/09/2012 13:34, Marc van Dongen wrote:

> >  \SI{20}{\metre^2\per\volt\second}~\cite{Du2008}.

> Better to use \metre\squared\per\volt\second (or an abbreviated form) as

> it leaves siunitx free to work 'magic' with the display of the unit.

Thanks. I don't use the siunitx package and I obviously haven't studied the documentation!

Regards,

Marc van  Dongen


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tom Sturges  
View profile  
 More options Sep 30 2012, 11:24 am
Newsgroups: comp.text.tex
From: Tom Sturges <sturges....@gmail.com>
Date: Sun, 30 Sep 2012 08:24:04 -0700 (PDT)
Local: Sun, Sep 30 2012 11:24 am
Subject: Re: Inline equation overspill
On Sunday, 30 September 2012 14:00:39 UTC+1, Marc van Dongen  wrote:

Joseph and Mark, thanks for the solution! That makes a lot more sense than what I'm doing. Appreciated!

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tom Sturges  
View profile  
 More options Sep 30 2012, 11:30 am
Newsgroups: comp.text.tex
From: Tom Sturges <sturges....@gmail.com>
Date: Sun, 30 Sep 2012 08:30:46 -0700 (PDT)
Local: Sun, Sep 30 2012 11:30 am
Subject: Re: Inline equation overspill

oh one other related thing. that works fine but if i wanted to display 200,000 how would i do that? when i write SI{200,000}{\.......\} it shows up as 200.000 (a decimal point, not a comma)

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tom Sturges  
View profile  
 More options Sep 30 2012, 11:35 am
Newsgroups: comp.text.tex
From: Tom Sturges <sturges....@gmail.com>
Date: Sun, 30 Sep 2012 08:35:23 -0700 (PDT)
Local: Sun, Sep 30 2012 11:35 am
Subject: Re: Inline equation overspill

sorry actually that fix didn't work, it still overspills =S and if i include the tilda bit at the end it just drags up even more stuff out of line!

any ideas?

thanks


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Enrico Gregorio  
View profile  
 More options Sep 30 2012, 4:54 pm
Newsgroups: comp.text.tex
From: Enrico Gregorio <Facile.da.trov...@in.rete.it>
Date: Sun, 30 Sep 2012 22:54:16 +0200
Local: Sun, Sep 30 2012 4:54 pm
Subject: Re: Inline equation overspill

Tom Sturges <sturges....@gmail.com> wrote:
> oh one other related thing. that works fine but if
> i wanted to display 200,000 how would i do that?
> when i write SI{200,000}{\.......\} it shows up as
> 200.000 (a decimal point, not a comma)

Write numbers without the comma for separating thousands:

  \SI{200000}{...}

There are options for automatically inserting a separator
for thousands and the default choice is a thin space, which
is the correct separator to use according to ISO and SI
standards, AFAIK.

Ciao
Enrico


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
unruh  
View profile  
 More options Sep 30 2012, 5:51 pm
Newsgroups: comp.text.tex
From: unruh <un...@invalid.ca>
Date: Sun, 30 Sep 2012 21:51:29 GMT
Local: Sun, Sep 30 2012 5:51 pm
Subject: Re: Inline equation overspill
On 2012-09-30, Tom Sturges <sturges....@gmail.com> wrote:

> On Sunday, 30 September 2012 16:24:04 UTC+1, Tom Sturges  wrote:
>> On Sunday, 30 September 2012 14:00:39 UTC+1, Marc van Dongen  wrote:

>> > On Sunday, September 30, 2012 1:41:49 PM UTC+1, Joseph Wright wrote:

>> > > On 30/09/2012 13:34, Marc van Dongen wrote:
>> > > >  \SI{20}{\metre^2\per\volt\second}~\cite{Du2008}.
>> > > Better to use \metre\squared\per\volt\second (or an abbreviated form) as

> oh one other related thing. that works fine but if i wanted to display 200,000 how would i do that? when i write SI{200,000}{\.......\} it shows up as 200.000 (a decimal point, not a comma)

Sounds like it is using European rather than US conventions. Try
SI{200.000}{\.......\}

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Enrico Gregorio  
View profile  
 More options Oct 1 2012, 6:06 am
Newsgroups: comp.text.tex
From: Enrico Gregorio <Facile.da.trov...@in.rete.it>
Date: Mon, 01 Oct 2012 12:06:34 +0200
Local: Mon, Oct 1 2012 6:06 am
Subject: Re: Inline equation overspill

The convention siunitx for inputting numbers is that /no/
group separator (for thousands) is used, but a space is
allowed.

The comma or period is used to separate the integer from the
fractional part and is translated to the preferred separator
(default is period).

  \documentclass{article}
  \usepackage{siunitx}

  \begin{document}
  \SI{200000}{m}

  \SI{200 000}{m}

  \SI[group-separator={,}]{200000}{m}

  \SI[group-separator={.}]{200 000}{m}
  \end{document}

The output will be

  200 000 m
  200 000 m
  200,000 m
  200.000 m

(with thin spaces, not interword spaces). If one prefers to always
have the comma as group sepqrator (which wouldn't follow ISO or SI
standard, AFAIK), then

  \sisetup{group-separator={,}}

can be issued in the document preamble.

The decimal separator is chosen in a similar way:

  \sisetup{output-decimal-marker={,}}

would be used in continental Europe. The advantage is that
simply changing these options and leaving untouched the body
of the document, the output can change depending on the
required standard.

Ciao
Enrico


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dan Luecking  
View profile  
 More options Oct 1 2012, 9:26 am
Newsgroups: comp.text.tex
From: Dan Luecking <LookIn...@uark.edu>
Date: Mon, 01 Oct 2012 08:24:35 -0500
Local: Mon, Oct 1 2012 9:24 am
Subject: Re: Inline equation overspill
On Sun, 30 Sep 2012 18:48:38 +0200, Heiko Oberdiek

If you are referring to all the empty lines, that's the new
google groups. Poster's really ought to delete them (and
then quit using google groups).

Dan
To reply by email, change LookInSig to luecking


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »