Giter VIP home page Giter VIP logo

mystyles's Introduction

TeX style files

使い方

  • my*.sty を適当な directory に置く
  • 環境変数 TEXINPUTS で my*.sty が見えるようにする e.g. 例えば $HOME/tex/inputs の下に複数の directory を置く場合は

    export TEXINPUTS=.:$HOME/tex/inputs//:

    などとすればよい

  • example 以下のファイルを参考に tex のファイルを作る

ファイル

mybook

  • scrbook を base に整理
  • mytufte を include
  • オプション (default値は最初の値)
    lang
    {ja,それ以外はenとして扱う}
    style
    {tufte,plain}
    tufte
    特殊なマージンを取る配置 (Tufte流)
    plain
    特殊なマージンを取らない配置
    list
    {none,minted,listings}
    none
    listing の環境を読み込まない
    mined
    minted style の読み込み (shell-escapeが必要)
    listings
    listings style の読み込み (sidenotesと若干矛盾)
  • 本文内での形式変更
    \myChapterStyle{–}
    章タイトルの形式
    plain
    komaの標準
    decor
    tufte用
    \myPageLayout{–}
    mytufte で定義
    \myPageStyle{–}
    mytufte で定義

課題

  • font は MacOS X を想定している
  • ifdefstring/ifstrequal の使い方が不安

myhandout

  • scrartcl を base に整理
  • mytufte を include
  • オプション (default値は最初の値)
    • lang = {ja,それ以外はenとして扱う}
    • style = {tufte,plain,lines}
      tufte
      特殊なマージンを取る配置 (Tufte流)
      plain
      特殊なマージンを取らない配置
    • font = {regular,light,heavy}
      regular
      中字
      light
      細字
      heavy
      太字
    • title = {left,center,right}
      left
      タイトルを左詰め
      center
      タイトルを**
      right
      タイトルを右詰め
    • list = {none,minted,listings}
      none
      listing の環境を読み込まない
      mined
      minted style の読み込み (shell-escapeが必要)
      listings
      listings style の読み込み (sidenotesと若干矛盾)
  • 本文内での形式変更
    \myPageLayout{–}
    mytufte で定義
    \myPageStyle{–}
    mytufte で定義

課題

  • font は MacOS X を想定している
  • ifdefstring/ifstrequal の使い方が不安

mytufte

  • Tufte 流の配置の実装 主に以下の style を利用
    • scrlayer-scrpage
    • scrlayer-notecolumn
    • sidenotes
  • それ以外のいろいろな関数を定義
  • 本文内での形式変更
    \myPageLayout{–}
    本文の大きさ
    wide
    マージンを取らず本文を広く
    margin
    tufte用にマージンを取る
    \myPageStyle{–}
    ヘッダ・フッタの形式
    pagenum
    頁番号 (縦棒付)
    decor
    tufte用
    kaostyle
    kao style からの引用
    simple
    頁番号のみ
    lines
    headline+running head, footline+page number
    scrheadings
    komaの標準
  • 下記の実装を参考

課題

  • 既存の style を組み合わせているので, latex2とlatex3(experimental)が混在
  • ifdefstring/ifstrequal の使い方が不安

mytalk

  • beamer スライド用
  • metropolis sytle を base にいろいろ定義

課題

  • option parse の部分を書き換える

mymath

  • amsmath を base に整理
  • 数式用のfontの整理
  • 数式関係でいろいろ定義
  • オプション (default値は最初の値)
    • lang = {ja,それ以外はenとして扱う}

mycolor

  • 共通で使う色ものを整理
    • 色名 {red,green,blue,orange,purple,yellow,grey}
    • 濃淡 {dark,-,light,pale}
    • e.g. myDarkRed, myPaleOrange

mylist

  • code listing 用
  • R/Sweave 用の環境を定義
  • 複数頁のPDFの紙芝居処理のための関数を定義
  • オプション (default値は最初の値)
    • list = {none,minted,listings}
      none
      listing の環境を読み込まない
      mined
      minted style の読み込み (shell-escapeが必要)
      listings
      listings style の読み込み (sidenotesと若干矛盾)

mystyles's People

Contributors

noboru-murata avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.