LoginSignup
2
1

More than 5 years have passed since last update.

Re:VIEWでHighlight

Last updated at Posted at 2015-04-24

Highlightができるようになったのでメモ

config.yml

highlight:
   html: pygments
   latex: listings

epub

emlistを以下のように変更

//emlist[][c#]{
void OnGUI ()
{
    GUILayoutOption[] options = new [] {
        GUILayout.Width (96),
        GUILayout.Height (96)
    };
    EditorGUILayout.ObjectField (null, typeof(Texture2D), false, options);
    EditorGUILayout.Space ();
    EditorGUILayout.ObjectField (null, typeof(Sprite), false, options);
}
//}

pdf

emlistを以下のように変更

//emlist[][[Sharp\]C]{
void OnGUI ()
{
    GUILayoutOption[] options = new [] {
        GUILayout.Width (96),
        GUILayout.Height (96)
    };
    EditorGUILayout.ObjectField (null, typeof(Texture2D), false, options);
    EditorGUILayout.Space ();
    EditorGUILayout.ObjectField (null, typeof(Sprite), false, options);
}
//}

layout.tex.erb の更新

カスタマイズしていたので以下のdiffを見ながらコマンドを追加していく

jlisting.sty 追加

試しにスタイルを変更してみる

適当に見つけたこれ

Good!

ss 2015-04-25 1.22.05.png

問題

C# の言語設定、pygments では c# 、listingsでは [Sharp]C なので辛い...

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1