「とっておきの TeX/LaTeX ネタを皆で持ち寄って楽しむ」 というコンセプトの技術系アドベントカレンダーです。
2012 年から始まっており、以降毎年開催されています。
function okashi(total, prices) | |
local count, solved = solve(total, prices) | |
print_solution(count, solved, total, prices) | |
end | |
function print_solution(count, solved, total, prices) | |
if solved then | |
for i = 1, #prices do | |
io.stdout:write(("%d円のが%d個"):format(prices[i], count[i])) | |
if i ~= #prices then io.stdout:write("、") end |
% upLaTeX文書 | |
\documentclass[uplatex,a4paper]{jsarticle} | |
\usepackage{xparse} | |
\ExplSyntaxOn | |
\int_new:N \l_xx_total_int | |
\clist_new:N \l_xx_price_clist | |
\prop_new:N \l_xx_count_prop | |
\bool_new:N \l_xx_solved_bool | |
\int_new:N \l_xx_instid_int |
ascgrp TeX-ascgrp <ascgrp.pfb | |
ascii10 TeX-ascii10 <ascii10.pfb | |
ascii36 TeX-ascii36 <ascii36.pfb |
\documentclass{article} | |
\usepackage[papersize={100mm,148mm},margin=0cm, | |
noheadfoot]{geometry} | |
\usepackage{luatexja-fontspec} | |
\usepackage{amsmath,tikz,graphicx,xcolor,xparse,tikzducks} | |
\usetikzlibrary{calc} | |
\newfontface{\fNotoSC}{NotoSansCherokee-Bold.ttf} | |
\newfontface{\fNotoS}{NotoSans-ExtraBoldItalic.ttf} | |
\newfontface{\fAdv}{texgyreadventor-regular.otf} | |
\newfontface{\fNishiki}{Nishiki-teki.ttf} |
%% | |
%% This is file 'ixquickmacro.sty'. | |
%% | |
%% Copyright (c) 2019 Takayuki YATO (aka. "ZR") | |
%% GitHub: https://github.com/zr-tex8r | |
%% Twitter: @zr_tex8r | |
%% | |
%% This package is distributed under the MIT License. | |
%% |
-- noujolais.lua | |
-- | |
-- @copyright 2019 Takayuki YATO (aka. "ZR") | |
-- GitHub: https://github.com/zr-tex8r | |
-- Twitter: @zr_tex8r | |
-- This program is distributed under the MIT License. | |
-- | |
---------------------------------------- ヌジョレーボーボー | |
-- 準備 |
- scheme-basic | |
- collection-basic | |
- collection-latex | |
- texlive.infra | |
- amsfonts | |
amsfonts:texmf-dist/tex/latex/amsfonts/amsfonts.sty | |
amsfonts:texmf-dist/tex/latex/amsfonts/amssymb.sty | |
amsfonts:texmf-dist/tex/latex/amsfonts/cmmib57.sty | |
amsfonts:texmf-dist/tex/latex/amsfonts/eucal.sty | |
amsfonts:texmf-dist/tex/latex/amsfonts/eufrak.sty |
% カスタムのプリセットの定義をpxchfon.cfgという名前のファイルに | |
% 気記述して, TeXから見える場所に配置する. | |
% ※pxchfon 1.6版が必要. | |
% 単ウェイト設定の例 | |
\pxchfonDeclareOneWeightPreset{soeikakupoptai} | |
{:0:hgrpp1.ttc}% 明朝・単ウェイト | |
{:0:hgrpp1.ttc}% ゴシック・単ウェイト | |
% 多ウェイト設定の例 |
% 1satysfi.satyh: A kiritampo-oriented md-docuemnt class for SATySFi | |
% | |
% Copyright (c) 2019 Takayuki YATO (aka. "ZR") | |
% GitHub: https://github.com/zr-tex8r | |
% Twitter: @zr_tex8r | |
% Distributed under the MIT License. | |
@require: pervasives | |
@require: list |