Thursday, September 26, 2013

Latex 对齐方式

LaTeX 对齐方式

一行对齐:
\leftline{左对齐} \centerline{居中} \rightline{右对齐}

多行或者段落对齐:
左对齐 \begin{flushleft}...\end{flushleft},
居中 \begin{center}...\end{center}
右对齐 \begin{flushright}...\end{flushright}


LaTeX公式左对齐
LaTeX中公式默认是居中对齐的, 但有时我们希望它能左对齐, 使用的方法如下:

1. \documentclass[a4paper,fleqn]{article} 这个对整篇文章有效.

如果只需要对一行公式进行左对齐的话, 可使用
\begin{flalign}
your equation (1)
\end{flalign}


2. 对某一个公式:
some text here\\
your equation here
and more text here.


3. 如果你说的是某一个公式有两三行, 你想把这几行做左对齐.
\begin{flalign}
\begin{split}
your equation (1)
your equation (2)
\end{split}&
\end{flalign}


还有其它方法,
例如使用 左对齐、居中对齐、右对齐的环境分别为flushleft、center和flushright。也可以使用命令\raggedright、\centering和\raggedleft使以后的文本按指定方式对齐.

或者

加载amsmath宏包后,使用选项fleqn(就是声明加载宏包时使用\usepackage[fleqn]{amsmath})可以使本该居中对齐的行间公式改为左对齐.
Read more ...

Solution to iPad “Not Charging” When Connected to Computer USB

Download the software > ASUS Ai Charger
Read more ...

Sunday, September 15, 2013

Java 1.6.0_51 breaks MATLAB 2012b

The was an issue in the Java security updates that Apple released for Mac OS X (as mentioned above). These updates install Java 1.6.0_51 and the exact build number looks like this (ending with M4508):
Java™ SE Runtime Environment (build 1.6.0_51-b11-456-10M4508) You can check if you have installed the xM4508 versions by running any one of the following commands on the Terminal of your Mac OS X:
java -version 
OR
/usr/libexec/java_home -v 1.6 -exec java -version 
If you have previously installed the xM4508 versions of the Java updates you can upgrade to the fixed xM4509 version by manually installing the following update:
Mac OS 10.7.x and 10.8.x:
================
Mac OS 10.6.x:
================
Confirm that you have the updated Java version by executing any of the above two commands. The exact build number looks like this (ending with M4509):
Java(TM) SE Runtime Environment (build 1.6.0_51-b11-457-10M4509)
updates already (ending with M4508), you should receive this fix (ending with M4509) automatically through Software Update / App Store.

source: here
Read more ...