GithubHelp home page GithubHelp logo

tex's Introduction

rhappy code space for school

pdfの出力

texfot latexmk -lualatex document.tex

makefileが使えたらmake buildでもいいです

書き方

画像

word のようにコピペができないので画像を毎回保存する必要があります
画像はpublic/imgの中に入れて\Figureで指定します
参照するときは\ref{fig:<ラベル名>}を使います

\Figure{ページに対してどれぐらいの大きさで表示したいか}{読み込みたい画像ファイル名}{キャプション名}{ラベル名}

\Figure{0.5}{rhappy_icon.jpg}{ラッピーのアイコン}{rhappy_icon}

ソースコード

ソースコードの扱い

ファイルの一部(関数とか)

キャプションは_が使えないので\_でエスケープします

\begin{lstlisting}[caption={キャプション名}, label={ラベル名}]
<コード>
\end{lstlisting}

\begin{lstlisting}[caption={print\_\_hello\_world関数のソースコード}, label={lst:print__hello_world_func}]
void print__hello_world(void) {
    // hello worldを出力
    printf("hello world\n");
}
\end{lstlisting}

ファイルを読み込む

ソースファイルはpublic/codeの中に入れて\lstinputlistingで指定します

\lstinputlisting[caption={キャプション名}, label={ラベル名}]{public/code/<ファイル名>}

\lstinputlisting[caption={main.cのソースコード}, label={lst:source_main}]{public/code/main.c}

文章内でmonoフォントを使う

\Inline{}で囲みます

sample text sample text \Inline{sample text} sample text

monoフォントの設定

すきなmonoフォントを使いたい人は39,40行目を変更してください

tex's People

Contributors

r-happy avatar

Stargazers

Shun2439 avatar

Watchers

 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.