(gdb) run foo.dvi
3][4][5][6][7][8][9][10][11][12][13][14][15][16][17][18][19][20][21][22][23][24][25][26][27][28][29][30][31][32][33][34][35][36][37][38][39][40][41][42][43][44][45][46][47][48][49][50][51][52][53][54][55][56][57][58][59][60][61][62][63][64][65][66][67][68][69][70][71][72][73][74][75][76][77][78][79][80][81][82][83][84][85][86][87][88][89][90][91][92][93][94][95][96][97][98][99][100][101][102][103][104][105][106][107][108][109][110][111][112][113][114][115][116][117][118][119][120][121][122][123][124][125][126][127][128][129][130][131][132][133][134][135][136][137][138][139][140][141][142][143][144][145][146][147][148][149][150][151][152][153][154][155][156][157][158][159][160][161][162][163][164][165][166][167][168][169][170][171][172][173][174][175][176][177][178][179][180][181][182][183][184][185][186][187][188][189][190][191][192][193][194][195][196][197][198][199][200][201][202][203][204][205][206][207][208][209][210][211][212][213][214][215][216][217][218][219][220][221][222][223][2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Display of the last posting date of the service metric | |
# 2024 Kenshi Muto | |
services=$(mkr services -jq '.[]|.name') | |
echo "$services" | while read service; do | |
metrics=$(mkr metric-names -s $service -jq '.[]') | |
echo "$metrics" | while read metric; do | |
if [ -z "$metric" ]; then | |
continue | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
CLOSE_AFTER_MINUTES="60" | |
CLOSE_CHECK_ONLY=true | |
DRYRUN= | |
if [ -z "$(mkr --version 2>/dev/null)" ]; then | |
echo "ERROR: Missing mkr. Install mkr package." | |
exit 1 | |
fi | |
if [ ! -f "/etc/mackerel-agent/mackerel-agent.conf" -a -z "$MACKEREL_APIKEY" ]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module ReVIEW | |
module BuilderOverride | |
def inline_href(arg) | |
# 区切り文字に単純に|を使うようにする | |
url, label = arg.split(/\s*\|\s*/, 2) | |
url = url.gsub(/\\,/, ',').strip | |
if label | |
label = label.gsub(/\\,/, ',').strip | |
end | |
compile_href(url, label) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module ReVIEW | |
module CompilerOverride | |
def compile_dlist(f) | |
@strategy.dl_begin | |
while /\A\s*:/ =~ f.peek | |
if @strategy.class.to_s =~ /LATEX/ | |
s = f.gets | |
@strategy.dt(s.sub(/\A\s*:/, '').strip) | |
else | |
@strategy.dt(text(f.gets.sub(/\A\s*:/, '').strip)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
= ドロップキャップ | |
@<u>{2}行取りの設定にしています。■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | |
@<u>{日}本語も入れられます。ただ、幅がイマイチなのでちょっと格好悪いですね。uインラインマークアップは本来アンダーラインを想定しているものですが、ひとまずこれを代用しています。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%!ptex2pdf -l -u break.tex | |
\documentclass[uplatex]{jsarticle} | |
% hyperref有効にすると | |
% ! TeX capacity exceeded, sorry [input stack size=5000]. | |
% <to be read again> | |
% \HyPsd@@LetCommand | |
% l.61 \section{\reviewcode{Hello}} | |
% になってしまう (https://github.com/kmuto/review/issues/1432) | |
\usepackage[dvipdfmx]{hyperref} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def convert(content) | |
config = ReVIEW::Configure.values | |
config['builder'] = 'html' | |
config['secnolevel'] = 0 # 見出し採番しないとして | |
ReVIEW::I18n.setup(config['language']) | |
builder = ReVIEW::HTMLBuilder.new | |
book = ReVIEW::Book::Base.new('.') | |
book.config = config | |
compiler = ReVIEW::Compiler.new(builder) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% for user-defined macro | |
% 目次の前までの前付の採番。とりあえずAlphにしている | |
% 選択肢はhttp://www.latex-cmd.com/struct/pagestyle.html あたりを参照 | |
\let\frontmatterorg\frontmatter% 既存の前付マクロを別名で退避して | |
\def\frontmatter{% | |
\frontmatterorg% ここで元のマクロを呼び出す | |
\pagenumbering{Alph}% 採番をAlphにする | |
} | |
% 目次の実体tableofcontentsをjsbook.clsからコピーして、中身をいじる |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ¥: U+00A5 を\textyen (Yに=を重ねる)にする | |
# ¥: U+FFE5 はそのまま | |
module ReVIEW | |
module LATEXBuilderOverride | |
def result | |
# 半角円記号を統合させず代替の\textyenのほうを使う | |
# 本当はhspaceするよりもコード環境のほうでxkanjiskipを設定したほうがよさそう | |
super.gsub('¥', '\hspace{0pt}\textyen{}\hspace{0pt}') | |
end | |
end |
NewerOlder