Next Meeting: October 7: Social gathering Next Installfest: TBD Latest News: Aug. 18: Discounts to "Velocity" in NY; come to tonight's "Photography" talk Page last updated: 2004 Mar 03 15:57
 The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers. Report this post as spam: (Enter your email address)
Re: [vox-tech] latex: setting rigid margin on equations
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

# Re: [vox-tech] latex: setting rigid margin on equations

Peter Jay Salzman wrote:

hi all,

in normal displaymath, latex

centers

its equations.

however,

i think it's a cleaner look when all my equations are flush
against some right margin, perhaps at a margin of about 4
or 5 em's.

is there a way to do this?  i need for my solution to be non-invasive.
if my dissertation committee doesn't like my flush look, i need to be
able to switch back to the centered style.


Pete

I was curious about this problem and used it to learn how to program latex environments. How is this for a start?

\renewenvironment{equation}
{\addtocounter{equation}{1} \begin{flushright}%
\begin{tabular}{rrp{2em}} $\displaystyle} {$ & \hspace{0.1\textwidth} & (\theequation)%
\end{tabular} \end{flushright}}

\renewenvironment{displaymath}
{\begin{flushright} \begin{tabular}{rrp{2em}} $\displaystyle} {$ & \hspace{0.1\textwidth} & \end{tabular} \end{flushright}}

It seems to work, except for one small problem. I can't get the equation number to flush right in a column of specified width. I'd love to figure this out, but I gotta get back to working on my own paper...

Jonathan
_______________________________________________
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech

 LUGOD Group on LinkedIn Sign up for LUGOD event announcements Your email address: LUGOD Group on Facebook 'Like' LUGOD on Facebook:

 Hosting provided by: Sunset Systems Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development. LUGOD: Linux Users' Group of Davis PO Box 2082, Davis, CA 95617 Contact Us LUGOD is a 501(c)7 non-profit organization based in Davis, California and serving the Sacramento area. "Linux" is a trademark of Linus Torvalds. Sponsored in part by: Who graciously hosts our website & mailing lists!