I am Charmie

メモとログ

LaTeX

VS CodeでTeX

LaTeX WorkshopというExtension(拡張機能)をインストールすればOK 手順 LaTeX Workshopのインストール LaTeX Workshopの設定 使う 手順1. LaTeX Workshopのインストール 拡張機能画面を開く LaTeX Workshopを検索 LaTeX Workshopをインストール VS Codeを再…

LaTeX: 目次に図目次・表目次を追加

LaTeXで図目次・表目次を追加するときの設定 以下のコマンドを呼ぶと,該当箇所に図目次及び表目次が表示される. - \listoffigures : 図目次を表示 - \listoftables : 表目次を表示 図や表が存在しない場合でも空の図目次・表目次を作成してしまうという問…

Texmaker

MacでTeXStudioを使っていたんだけど,日本語入力をまともに受け付けなくなったのでTexmakerをインストール 各種TeXのコマンドの設定 メニュー Mac: Preferences > Commands の設定 Ubuntu: オプション > Texmakerの設定 > コマンド Use a "build" subdirect…

MacTeX

MacにインストールしていたTeXをアップデートしようと思って,TeX LiveからMacTeXに変更 (公式の指示に従った). TeX Liveのアンインストール インストールされているパッケージを全てアンインストール rm -rf /usr/local/texlive 次に,TeX Live関係のアプ…

Beamer: 動画埋め込み

動画埋め込みを試みた結果,LuaLaTeX + multimediaで一部うまくいった. OS viewer result Ubuntu 20.04 evince x Ubuntu 20.04 okular o Ubuntu 20.04 pympress o Mac 12.4 (M1) preview x Mac 12.4 (M1) pympress x Mac 12.4 (M1) okular (21.08.3-792) x …

Beamer: 発表ノートありpdfでの発表

幾つかツールがあったけど,pympressが一番良かった. 想定する状況 以下のように,pdfの左半分がスライド,右半分が発表ノートという状況. 結果 発表者がモニターで見る画面 pdfの右側に表示されている発表者ノート,経過時間,現在表示されているスライド…

Beamer: 発表ノート

PowerPointの発表ノートに該当する機能を見つけたのでメモ. pgfpagesパッケージ 複数ページを1ページに収めるためのパッケージ beamerでは,スライドと発表ノートをそれぞれ1枚のページとして解釈し,2つのページをくっつけて1枚のページとする beamerとの…

beamerでよくハマる所

hyperrefのリンク pdfborderの設定を変更しないとリンクを囲む枠線が表示されない (詳細はここ) *bordercolorで各枠線の色を指定 (参考文献,文書内リンク,URLなど) \hypersetup{ colorlinks=false, pdfborder={0 0 1}, citebordercolor=green, linkborderc…

beamer: show same slide with some modification

再掲 再掲したいスライドにラベルを割り当て,\againframeコマンドで再掲 \begin{frame}[label=myslide] \frametitle{slide title} \begin{itemize} \item blablabla \end{itemize} \end{frame} % myslide全てを再掲 \againframe{myslide} 一部を再掲 \again…

beamer: change enumerate numbering rule

\setbeamertemplateコマンドを使ってenumerate item, enumerate subitem, enumerate subsubitemの設定を変更する. \setbeamertemplate{enumerate item}{\arabic{enumi}.} \setbeamertemplate{enumerate subitem}{\arabic{enumii}.} \setbeamertemplate{enum…

Mac OSX セットアップ

from App store ソフトウェア 備考 Commander One Slack Xcode command line toolsのインストールだけでもOKっぽい Tag Editor Free ForkLift Dark modeなしファイルマネージャ from installer ソフトウェア 備考 Dropbox Office 365 Skype Sublime Text 3 t…

TeXStudioのpdfプレビューで日本語表示 on Mac OSX

texwikiに書いてあった. いくつか設定をすればOK

IPA fonts installation on Ubuntu 16.04

To compile Japanese document with xelatex, I decided to use IPA fonts. Download IPA font files files (*.ttf files) from here. Create a directory to save the font files as sudo mkdir /usr/share/fonts/truetype/ttf-ipa-font Copy the font file…

Beamer: font of equations

Default beamer settings provide weird font equations. This problem is solved by adding the following command in preamble. \usefonttheme[onlymath]{serif}

biber (biblatex) warning related to accent character

add the following lines to suppress the warning caused by accent characters written in bib file. \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc}

Amazing dark theme for TexStudio

Follow the guidance shown at the bottom of this page.

LaTeX: xbb not found

.xbb file contains the boundingbox information of its corresponding file. When LaTeX returns an error message "XXX.xbb" not found, we should generate .xbb file by executing the following command: extractbb XXX.pdf

compile latex document written in Japanese on Ubuntu 14.04

[code language="bash"] sudo apt-get install texlive-lang-cjk uplatex -shell-escape %s.tex pbibtex %s.tex uplatex -shell-escape %s.tex uplatex -shell-escape %s.tex dvidfmx %s.dvi [/code]

Beamer: Navigation bar jumps to wrong slide

I made some slides using Beamer, however I thought Beamer has a serious problem and therefore I gave up using it. The problem is navigation bar icon jumps to wrong slide, which is the next slide of the right one. Back to the problem again,…

latex command comparing before edit and after edit

In preamble, define as \usepackage{color} % for changing font color \usepackage{ulem} % to strike out sentence(s) \newcommand{\yuji}[2]{\textcolor{red}{\sout{#1}} \textcolor{blue}{#2}} In text body, call the defined command as Yuji is \yuj…

algorithm2e.sty not found with texlive

sudo apt-get install texlive-science

Confusion matrix with LaTeX

The following code generates a confusion matrix whose diagonal elements have colored background. [code language="latex"] \documentclass{article} \usepackage{tabularx} \usepackage{colortbl} \usepackage{hhline} \begin{document} \begin{tabula…

LaTeX: count the number of words

TeXcount counts the number of words in LaTeX document. How to setup is here though TeXLive might install it. Simple command just to count the total number of words is texcount input.texThe result is:FILE: input.texWords in text: 4415Words …

adjust space between columns in table

A variable \tabcolsep adjusts the space between columns in table. The following command changes the space to 1.5pt:\setlength{\tabcolsep}{1.5pt}

TeXStudio installation on Ubuntu

TeXstudio is a cross-platform LaTeX editing environment that is based on TeXMaker. The installation is very simple, using .deb file. sudo apt-get install libpoppler-qt4-3 sudo dpkg -i texstudio_2.6.6_amd64.deb

TeXLive fonts

First tex compilation results a lot of fonts error right after I set-up latex environment on my ubuntu PC using TeX Live. The solution is very easy, I need to install some fonts information by running the following command. sudo apt-get in…

LaTeX package flushend

flushend package balances the end of two columns articles.The CTAN site says that LaTeX's built-in two-col­umn code fin­ishes off a doc­u­ment ex­actly where the text stops; this will typ­i­cally leave an iso­lated left-hand col­umn, or a …

LaTeX package todonotes

todonotes package provides functions mentioning any todos with visualization such as small comments on todo, missing figures, and also a list of todos like list of figures. The following picture is a sample showing how todonotes package wo…

LaTeX: column size in matrices

LaTeX default setting allows any matrices to have up to 10 columns. The following command can change the column size as you want. \setcounter{MaxMatrixCols}{20}

JabRefで日本語表示

JabRef2.7.2をインストールしてから,以前作成していた日本語文献のbibファイルの日本語が白抜きの四角に文字化けするという症状に悩まされてきた.解決策が分かったのでメモっておく. Options -> Preference -> Appearance -> Table appearance -> Set tab…