Information Retrieval Blog » Latex http://blog.zye.me ANTI-GFW Sun, 29 Aug 2010 03:59:54 +0000 http://wordpress.org/?v=2.9.1 en hourly 1 pdflatex To Use US. Letter Size Paper http://blog.zye.me/2010/08/55781.html http://blog.zye.me/2010/08/55781.html#comments Fri, 13 Aug 2010 22:35:15 +0000 Jeffye http://blog.zye.me/2010/08/55781.html Telling pdflatex To Use Letter Size Paper

Pdflatex is using the wrong margins. How can I fix it?

This problem is sometimes caused by the PDF page height and width not being specified correctly. Put the following right after your \begin{document} command:

\special{papersize=8.5in,11in} \setlength{\pdfpageheight}{\paperheight} \setlength{\pdfpagewidth}{\paperwidth} % You may need to change the horizontal offset to do what you % want. Setting \hoffset to [...]]]>
http://blog.zye.me/2010/08/55781.html/feed 0
Taking full advantages of pdfLaTeX — eps figure solution http://blog.zye.me/2010/02/55545.html http://blog.zye.me/2010/02/55545.html#comments Mon, 22 Feb 2010 18:51:33 +0000 Jeffye http://blog.so8848.com/?p=55545 LaTeX users generate postscript output using dvips. An alternative is to use pdfTeX to generate PDF files directly. The PDF format offers a number of advantages over postscript:

Smaller uncompressed file sizes. Much more efficient bitmap inclusion. Availability of hyperlinks. Better accessibility for inexperienced users. Adobe’s Acrobat reader offers facilities for electronic presentations Limitation of pdfTeX

1. postscript figures cannot [...]]]> http://blog.zye.me/2010/02/55545.html/feed 0 latex 中文支持script & samples — memos http://blog.zye.me/2010/02/55536.html http://blog.zye.me/2010/02/55536.html#comments Mon, 22 Feb 2010 17:21:02 +0000 Jeffye http://blog.so8848.com/?p=55536 介绍如何在ubuntu 下按章cjk 支持,一下脚本在ubuntu 9.10 + kile 下测试好使。

latex 下安装中文支持,需要安装一系列宏包,然后拷贝生成字体什么的,甚是繁琐。一步抄作出问题,会浪费很多时间。

不如写成一个script, shell 脚本。出问题,或机器重装,运行此脚本即可,一劳永逸。

备忘。 脚本下载:install_cjk

samples : \documentclass{article} \usepackage{CJK} \begin{document} \begin{CJK}{UTF8}{song} 这是so8848 \end{CJK} \end{document} Incoming search terms for the article:latex samples (2)latex中文支持 (2)bib 中文 undefined control sequence (1)ubuntu 9 10 LaTeX 安装 (1)ubuntu 9 10 latex 中文问题 (1)Related Postsubuntu kile下 解决中文问题-CJK{GBK}fix problems in ubuntu kile: multirow.sty’ not foundKile spell check doesn’t workpdflatex To Use US. Letter [...]]]>
http://blog.zye.me/2010/02/55536.html/feed 0
BibTeX & “undefined control sequence” http://blog.zye.me/2010/02/55501.html http://blog.zye.me/2010/02/55501.html#comments Fri, 12 Feb 2010 00:48:41 +0000 Jeffye http://blog.so8848.com/?p=55501 If the tex and bib files are setup correctly, then running LaTeX followed by BibTeX will produce a bbl file (in the same directory as the tex and bib files). It is from the bbl file that LaTeX will insert the references into the document.

Open the bbl file with a text editor. If it looks [...]]]> http://blog.zye.me/2010/02/55501.html/feed 0 Kile spell check doesn’t work http://blog.zye.me/2009/05/51752.html http://blog.zye.me/2009/05/51752.html#comments Wed, 06 May 2009 01:50:50 +0000 jeffye http://blog.so8848.com/?p=51752 Just for future reference. the following steps were what I followed: 1. open the Synaptic manager and install Kile apsell kcontrol

2. goto Applications->Other->Spell Checker (it seems that it is not necessary)

in client choose Aspell, this will change the dictionary to Aspell (for me by default appeared Ispell as dictionary).

3. restart Kile (if it is open)

Incoming [...]]]>
http://blog.zye.me/2009/05/51752.html/feed 0
Notes on BibTeX http://blog.zye.me/2009/05/51751.html http://blog.zye.me/2009/05/51751.html#comments Wed, 06 May 2009 00:44:56 +0000 jeffye http://blog.so8848.com/?p=51751 1. References and citations are best handled in a consistent way by using BibTeX. In this method, you supply all the relevant information about references in a “.bib file” without regard to ordering or style. Then you let BibTeX format all citations and reference entries according to the chosen bibliographic style, and you don’t have [...]]]> http://blog.zye.me/2009/05/51751.html/feed 0 ubuntu kile下 解决中文问题-CJK{GBK} http://blog.zye.me/2009/05/51675.html http://blog.zye.me/2009/05/51675.html#comments Mon, 04 May 2009 00:02:58 +0000 jeffye http://blog.so8848.com/?p=51675 安装这些其实还可以避免其他很多ubuntu kile 下的问题

打开终端,执行下述命令安装TexLive和常用的一些Latex宏包(可以根据自己的需要增改):

sudo apt-get install texlive texlive-math-extra texlive-latex-base texlive-latex-extra texlive-latex-recommended texlive-pictures texlive-science texlive-bibtex-extra texlive-common latex-beamer

如果硬盘充裕的话,直接完整安装也可以:

sudo apt-get install texlive-full latex-beamer

安装完后,就可以安装CJK的相关软件包了,如果只需要获得中文支持,那么执行:

sudo apt-get install latex-cjk-chinese ttf-arphic-* hbf-*

否则,建议安装latex-cjk-all以获取完整支持。

安装 gbkfonts

下载1:  gbkfontsfortetex3.0

下载2: gbkfonts

直接把gbkfonts 文件copy 到 目录/usr/bin, 记得要chmod, 命令: sudo chmod 777 /usr/bin/gbkfonts , 因为这个文件是从别地方copy过来,  not permit.

然后开始拷贝字体

sudo cp /media/hda1/windows/Fonts/sim* /usr/share/fonts/zh_CN/TrueType/

mkdir ~/texmf #如果你不是把目录建在这,比如建在~/.texmf,请参阅附录2作相应修改 cd ~/texmf

gbkfonts [...]]]> http://blog.zye.me/2009/05/51675.html/feed 1 fix problems in ubuntu kile: multirow.sty’ not found http://blog.zye.me/2009/05/51673.html http://blog.zye.me/2009/05/51673.html#comments Sun, 03 May 2009 20:06:29 +0000 jeffye http://blog.so8848.com/?p=51673 The problems such as multirow.sty’ not found can be fixed via the following command (Ubuntu system):

sudo apt-get install texlive-latex-extra

I seems that some packages are missing in the default setting of kile. It will take you a lot time to download the extra packages via the above command.

Incoming search terms for the article:multirow sty ubuntu (14)multirow [...]]]>
http://blog.zye.me/2009/05/51673.html/feed 0
Latex SPACE SAVING IDEAS — fox SIGIR Paper http://blog.zye.me/2009/04/51535.html http://blog.zye.me/2009/04/51535.html#comments Wed, 29 Apr 2009 19:09:09 +0000 jeffye http://blog.so8848.com/?p=51535 1. SPACE SAVING IDEAS:

A. An idea on how to obtain additional room on your submission, you can combine the subsections heads of Categories (ACM Classifiers), General Terms, and Authors’ Keywords with the body text and a colon, such as:

\vspace{1mm} \noindent {\bf Categories and Subject Descriptors:} B.X.X {[Your Choice]}: {The Third Field Here}

\vspace{1mm} \noindent {\bf General Terms:} Enter your choices of [...]]]> http://blog.zye.me/2009/04/51535.html/feed 0 Google Docs中插入数学公式和特殊字符 http://blog.zye.me/2009/02/49015.html http://blog.zye.me/2009/02/49015.html#comments Mon, 16 Feb 2009 20:38:32 +0000 jeffye http://blog.so8848.com/2009/02/49015.html  

Google Docs 很好,但无赖不能插入输入数学公式和一些特殊字符。特殊字符很好解决,一般可以使用搜狗输入法输入。数学公式Google Docs 只提供简单的上小标功能,要输入复杂还是只能借用在线latex工具。首先生成用在一些在线latex网站把待输入的公式生成一幅图片,譬如http://thornahawk.unitedti.org/equationeditor/equationeditor.php 

然后,通过该图片的url把图片插入Google Docs。

不过不管怎么,只有支持latex或者tex才是终极解决之道,希望google docs能早日支持这一个功能。

 ———————————————————————————-

From: http://phbenito.wordpress.com/2008/10/23/equations-in-google-docs/ 

Inserting Equations into Google Docs

Pascual Benito, Oct., 2008

(view/download via Google Docs)

phbenito[at]gmail[dot]com

Table of Contents

 

 

Example of Text with Equations Instructions Firefox Internet Explorer (verified with IE7) Editing an Existing Equation? Advanced technique: composing the equation right in the [...]]]>
http://blog.zye.me/2009/02/49015.html/feed 0