Avoid W32TeX install error on Windows 7 64bit

Posted On November 15, 2009

Filed under LaTeX, Windows
Tags: ,

Comments Dropped leave a response

Change mirror.
Some mirrors may have wrong dependency for compiling .tex files.

Advertisements

LaTeX: Embed Otf fonts for dvipdfmx

Posted On March 16, 2009

Filed under LaTeX, Ubuntu, Windows
Tags:

Comments Dropped leave a response

Get otf packages for LaTeX.

Windows -> Use preset Meadow
http://www.bookshelf.jp/pukiwiki/pukiwiki.php?%C0%DF%C4%EA%BA%D1%A4%DFMeadow%A4%F2%BB%C8%A4%C3%A4%C6%A4%DF%A4%E8%A4%A6

Ubuntu -> Use synaptic and install some otf packages.

Make custom.map

rml H KozMinPr6N-Regular.otf
gbm H KozGoPr6N-Medium.otf
rmlv V KozMinPr6N-Regular.otf
gbmv V KozGoPr6N-Medium.otf

otf-ujmr-h UniJIS-UTF16-H KozMinPr6N-Regular.otf
otf-ujmr-v UniJIS-UTF16-V KozMinPr6N-Regular.otf
otf-cjmr-h Identity-H KozMinPr6N-Regular.otf
otf-cjmr-v Identity-V KozMinPr6N-Regular.otf
hminr-h H KozMinPr6N-Regular.otf
hminr-v V KozMinPr6N-Regular.otf

otf-ujgr-h UniJIS-UTF16-H KozGoPr6N-Medium.otf
otf-ujgr-v UniJIS-UTF16-V KozGoPr6N-Medium.otf
otf-cjgr-h Identity-H KozGoPr6N-Medium.otf
otf-cjgr-v Identity-V KozGoPr6N-Medium.otf
hgothr-h H KozGoPr6N-Medium.otf
hgothr-v V KozGoPr6N-Medium.otf

Search Koz*.otf

How to do with dvipdfmx
Put custom.map, KozMinPr6N-Regular.otf and KozGoPr6N-Medium.otf into where the tex file is.
$ platex ***.tex
$ dvipdfmx -f custom.map ***.dvi
(*** means the filename)

citation(JP);
http://d.hatena.ne.jp/cobodo/20090217

LaTeX: set indent space

Posted On September 22, 2008

Filed under emacs, LaTeX
Tags: ,

Comments Dropped 2 responses

\parindent=10pt

Change indents as default : write \parindent=(some)pt to the preamble.

YaTeX; change fill var

Posted On September 4, 2008

Filed under emacs, LaTeX
Tags: , ,

Comments Dropped leave a response

/usr/share/emacs/site-lisp/yatex/yatex.el

locate

(defvar YaTeX-fill-column 72

then reset 72 to which you want to set

rename /usr/share/emacs22/site-lisp/yatex/yatex.elc to yatex.elcold

M-x byte-compile /usr/share/emacs/site-lisp/yatex/yatex.el

making tables for LaTeX

Posted On August 17, 2008

Filed under LaTeX
Tags: ,

Comments Dropped leave a response

make a table with openoffice calc.

copy the table.

paste it to opanoffice draw.

save it as odg.

save the table as eps with checking area select.

old version

https://myunko.wordpress.com/2008/02/19/latex-making-tableslatex-making-tables/

LaTeX; change section font size

Posted On August 16, 2008

Filed under LaTeX
Tags: ,

Comments Dropped leave a response

# gedit newsec.sty

\def\section{\@startsection {section}{1}{\z@}{-3.5ex plus -1ex minus
-.2ex}{2.3ex plus .2ex}{\large\bf}}

preamble

\usepackage{newsec}

Change character code

Posted On August 11, 2008

Filed under LaTeX, Ubuntu
Tags: ,

Comments Dropped leave a response

#nkf -e a.tex > b.tex

It encodes a.tex’s character code to another.

-e euc-jp

-s shift-jis

-j iso-2022-jp

Ubuntu; Adopt LaTeX .sty files

Posted On August 11, 2008

Filed under LaTeX, Ubuntu
Tags: , ,

Comments Dropped leave a response

#sudo mkdir /usr/share/texmf/tex/latex/misc

put .sty to misc directory.

#sudo mktexlsr

Ubuntu LaTeX; change fonts of xdvi preview

Posted On August 10, 2008

Filed under LaTeX, Ubuntu
Tags: ,

Comments Dropped leave a response

#sudo gedit /etc/texmf/vfontmap.d/20ptex-jisfonts.map

### For ptex-jisfonts
/usr/share/fonts/truetype/kochi/kochi-mincho.ttf
rml-jis JIS-H
/usr/share/fonts/truetype/kochi/kochi-gothic.ttf
gbm-jis JIS-H

to

### For ptex-jisfonts
@Mincho Roman|Mincho@
rml-jis JIS-H
@Gothic SansSerif|Gothic@
gbm-jis JIS-H

#cd /etc/defoma/hints/
#sudo defoma-font register-all ipamonafont.hints
#sudo update-vfontmap

#sudo gedit /etc/defoma/hints/ipamonafont.hints
search “begin /usr/share/fonts/truetype/ipamona/ipag-mona.ttf” category, then add
Alias = GothicBBB-Medium
and change the “Priority” value to 60.

search “begin /usr/share/fonts/truetype/ipamona/ipam-mona.ttf”category, then add
Alias = Ryumin-Light
and change the “Priority” value to 60.

#sudo defoma-font reregister-all ipamonafont.hints
#sudo update-vfontmap

citation(JP);
https://wiki.ubuntulinux.jp/JapaneseLocalizedDerivative/LaTeXForJapanese
http://as-is.net/blog/archives/001263.html

Edit;

In Ubuntu 8.10, ipamonafont.hints may be ttf-ipamonafont.hints.

Ubuntu 8.10 has IPAFonts, so it would be better to change ttf-ipafont.hints instead of ttf-ipamonafont.honts.

LaTeX pdf landscape memo

Posted On May 23, 2008

Filed under LaTeX
Tags: ,

Comments Dropped leave a response

\documentclass[30pt,landscape,papersize]{jsarticle}

\renewcommand{\familydefault}{\sfdefault}

\renewcommand{\kanjifamilydefault}{\gtdefault}

\pagestyle{empty}

\usepackage[dvipdfm]{graphicx,color}

\pagecolor[rgb]{0,0,0.5}

Next Page »