lundi 26 octobre 2009

How to input French in MacTex

Insert the following lines in front of your main document:

\usepackage[T1]{fontenc}
\usepackage[frenchb]{babel}
\usepackage[applemac]{inputenc}

dimanche 25 octobre 2009

[转] 7款Mac截图工具软件

截图是一个比较常用的功能,虽然Mac内置了截图程序,但远远不够用。本文简单介绍7款Mac截图工具软件,有免费的,也有收费的。虽然免费的功能很有限,但总比内置的要高级些,将就着用吧。选择了Mac, 你就得学会将就 :)

Grab

Mac OS X 内置的截图应用程序。Grab截屏的特点包括可截取带有光标的屏幕,光标样式可以在设置里选择。还可以利用Grab时间延迟功能,也能截取带菜单的截图。

用苹果电脑自带的截图功能的快捷键:

* 苹果+shift+3 抓全屏
* 苹果+shift+4 抓区域
* 苹果+shift+4 然后 空格 抓窗口

Skitch (免费)

Skitch是Mac平台上一款非常好玩的截图分享软件,和著名的漫画制作软件Comic Life出自的同一家公司:Plasq。比起Mac自带的截图工具,Skitch就好玩多了。它不仅有截图功能,还有丰富的界面特效,还可以直接用 iSight拍下自己的照片,用Skitch随意涂鸦一番,然后直接拖拽到桌面保存或拖拽到Mail.app发送给朋友。via

InstantShot! (免费)

InstantShot! 是Mac上的免费截图软件,它不但免费,而且还支持中文。支持自定义文件保存路径和文件前缀名等功能。

Capture Me (免费)

一款不错的MAC截图工具,使用Capture Me的时候,它会想一个照相机的镜头一样,半透明的摆放在桌面上,你可以任意的移动和改变它的尺寸,直至你把要截图的内容包括在其中,点击截图按钮以后,你可以以多种格式储存,而且可以指定储存的像素大小。

Snapz Pro X (收费)

Snapz Pro X是一款Mac电脑上的全能抓屏抓图软件,号称可以拍下屏幕上的一切(屏幕上的苍蝇除外)。但这是一个收费软件,其中29 美元版本功能只限于截图, 69 美元版本可以截取图片和动作。详细介绍可以看这篇文章。

Jing (免费)

简单的说,它可以让你做三种事情:截屏、录制视频、分享。三位一体的服务,感觉不错。当你在黄色的选项区里选择截图选项的时候,它会出现一个黄色对话框,截图后图片也保存在一个编辑框里,除了添加文字、注释等以外,它还可以点击箭头等指示图形,编辑完成以后,你可以通过JING上传到你的Flickr里,唯一不足的是,它只能以.png 格式保存。

QuickSnap (收费,14.95 美元)

又一个Mac上的收费屏幕截图软件。

另外,你还只可以查看帕兰映像之前介绍的6款Adobe AIR应用程序,这些程序虽然功能不是太强,但因为基于Adoeb AIR, 都跨平台。

mardi 20 octobre 2009

[转]Install Java 6 on Mac OS X Leopard

Installation

Java 6 isn’t installed by default. Java 6 is available as a simple Software Update, so if your system is up to date, Java 6 is installed, else upgrade your system. Note that Java SE 6 won’t appear for users on 32-bit Intel machines (Intel Core and Intel Core Duo) even if their systems are fully up to date.

Activation

Even though Java 6 is installed, Java 5 is still used by Mac OS X. You have to activate Java 6 by yourself. To do this, you need to run :
Applications -> Utilities -> Java -> Java Preferences
You will get the following window :

You just need to change the order of Java versions to use (Java application versions). Once Java SE 6 is on the top of the list, it should be activated.

Verification

You can check that Java 6 is correctly activated. You need to run a terminal (Applications -> Utilities -> Terminal) and to type the command: java -version
You should get this message :

mardi 15 septembre 2009

Footnotes in LaTeX section headings

The \footnote command is fragile, so that simply placing the command in \section’s arguments isn’t satisfactory. Using \protect\footnote isn’t a good idea either: the arguments of a section command are used in the table of contents and (more dangerously) potentially also in page headers. While footnotes will work in the table of contents, it’s generally not thought a “good thing” to have them there; in the page header, footnotes will simply fail. Whatever the desirability of the matter, there’s no mechanism to suppress the footnote in the page header while allowing it in the table of contents, so the footnote may only appear in the section heading itself.

To suppress the footnote in headings and table of contents:

  • Take advantage of the fact that the mandatory argument doesn’t ‘move’ if the optional argument is present:

    \section[title] {title\footnote{title ftnt}}

  • Use the footmisc package, with package option stable — this modifies footnotes so that they softly and silently vanish away if used in a moving argument. With this, you simply need:
    % in the document preamble
    \usepackage[stable]{footmisc}
    ...
    % in the body of the document
    \section{title\footnote{title ftnt}}

vendredi 21 août 2009

[转]: 局域网中Ubuntu和Windows进行文件夹共享


首先安装Samba:
sudo apt-get install samba
一、在ubuntu下查看局域网中windows系统共享的文件夹:
在“位置”--“网络”--“Windows 网络”中就能看到其它的windows主机和他们共享的文件夹了。
二、在windows下查看局域网中ubuntu系统共享的文件夹:
备份并编辑smb.conf
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup
sudo gedit /etc/samba/smb.conf
在[global]中修改的内容如下:
找到 workgroup = MSHOME 把它改成
代码:
workgroup = workgroup(这里名称可以随便填,当然为了方便别人访问,最好还是填windows下工作组的名称)
netbios name = gdhi(这里填你本机的计算机名)
doc charset = UTF-8
unix charset = UTF-8
后两行是为了防止中文目录乱码。
让windows系统能匿名访问:
搜寻这一行文字:
; security = user
用下面代码取代
security = share
重启samba
sudo /etc/init.d/samba restart
共享ubuntu系统中的文件
在要共享的文件夹点右键:“共享文件夹(S)”--“共享方式”中选“windows 网络 (SMB)”--如果不想别人修改你共享的文件夹最好把“只读”勾上--“确定”。
好了,你可以共享你的文件夹了。
查看和修改自己共享的文件夹的方法:
“系统”--“系统管理”--“共享的文件夹”。
(责任编辑:A6)

Latex 排版艺术

Latex排版不短时间了,配置已经不是问题。问题是美观,我想作一个新的文档模板。

侯先生这本《Word排版艺 术》告诉我,据他多年排版的经验,正文可用9.5磅字(比五号字略小),字体是华康简宋(实践证明,这会使字体间距不一,还是Adobe无敌),行距16 磅(或18磅),段前4磅,段后 8磅。这样排出来的正文很均匀美观,没有常见的那种挤成一团的感觉,可直接付印。

下面是来自法国的一些latex模板,我想会很有帮助。

封面模板

chapter模板

section模板
再推荐一个不错的Latex学习站点吧。里面也有一些更酷的模板。

看了这么多,发现关于Latex排版美化的网站大多都是法国的,法国真是个足够浪漫的地方。

Latex 调整表格位置

table

\begin{table}[placement]

body of the table

\caption{table title}
\end{table}

Tables are objects that are not part of the normal text, and are usually "floated" to a convenient place, like the top of a page. Tables will not be split between two pages.

Note that there is an *-form: \begin{table*} ... \end{table*}. This form will put the table in a single column when in two column mode; in one column mode it is identical to the non-* form

The optional argument [placement] determines where LaTeX will try to place your table. There are four places where LaTeX can possibly put a float:

  • h Here - at the position in the text where the table environment appears.
  • t Top - at the top of a text page.
  • b Bottom - at the bottom of a text page.
  • p Page of floats - on a separate float page, which is a page containing no text, only floats.
The standard report and article styles use the default placement tbp.

The body of the table is made up of whatever text, LaTeX commands, etc., you wish.

The \caption command allows you to title your table.