usuda
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee
    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee
  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       owned this note    owned this note      
    Published Linked with GitHub
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    # Tex(テフ)の使い方 使用環境 Windowns10 # 目次 1. [目標](#anchor1) 2. [zipの中身](#anchor2) 3. [インストール](#anchor3) 4. [手順](#anchor4) 5. [知識](#anchor5) <a id="anchor1"></a> # 1. 目標 thesis.texの実行をすると, 表紙,目次,図目次,表目次,1章,1節,リスト,図,表,参考文献があるpdfができる. <a id="anchor2"></a> # 2. zipの中身 1. thesis_origin > 大学で配られたthesis.texとクラスファイルが入っている. 2. thesis_work > 実際にこのページの作業を行ったフォルダ. 3. thesis > 卒論で自分が使ったファイル群,文章をなくして形だけ. * 使い方 * thesisフォルダに書きたい章のファイル名のtexファイルを作成し,中身を変更. * thesis.texに追加したい章のタイトルの名前のファイル名を\input{}で追加. **thesis.texをTexWorksで実行する** * 後はファイルの中身を変更するだけ. <a id="anchor3"></a> # 3. インストール [texlive](https://mirror.ctan.org/systems/texlive/tlnet/install-tl-windows.exe) [参考サイト](https://texwiki.texjp.org/?TeX%20Live%2FWindows) - インストール時間 3時間弱 - インストール後 - texファイルをTeXworksで開けるように変更 - 日本語環境用の設定 実行ボタンの横のタイプセットをpLaTex(ptex2pdfに変更する)に変更する. [参考](https://texwiki.texjp.org/?TeXworks%2F%E8%A8%AD%E5%AE%9A) <img src=https://i.imgur.com/whn8RAD.png width="320px"> **pdfファイルを作成するときは実行ボタンを押す.** <a id="anchor4"></a> # 4. 作業 **最初から作る場合** * texファイルを作る - 文章を書く前の事前準備 1. 作業用フォルダを作る.(例:thesis) 2. texファイルを追加する.(thesis.tex) 3. eniepaper.clsを追加する。 * 表紙を変える 1. 下記をコピペ(これがないとエラーがでた) ``` \documentclass{eniepaper} \usepackage{makeidx} \usepackage[dvipdfmx]{graphicx} \title {卒業論文及び修士論文を書くにあたって} \author{情報 太郎} \teacher{香川~次郎} \year{令和元年度~(2019年度)} \date{令和2年2月14日} \begin{document} \maketitle \end{document} ``` 2. タイトル,著者,教授名,年号,日付を変更する. 3. 実行して確認. 4. その他もろもろを追加.(目次,英語タイトル,英語要約,日本語要約,キーワード) ``` \documentclass{eniepaper} \usepackage{makeidx} \usepackage[dvipdfmx]{graphicx} \title {卒業論文及び修士論文を書くにあたって} \author{情報 太郎} \teacher{香川~次郎} \year{令和元年度~(2019年度)} \date{令和2年2月14日} % ここから - - - - \makeindex \etitle{This is the English Title.} \begin{eabstract} This is the abstract. \end{eabstract} \begin{jabstract} 要約 \end{jabstract} \begin{keyword} keyword, keyword, keyword, keyword, keyword, keyword \end{keyword} % ここまで - - - - \begin{document} \maketitle \end{document} ``` * チャプタ―とセクション,サブセクションを追加する - 文章を書く. 1章と1.1節と1.1.1節を追加 ``` \end{keyword} \begin{document} \maketitle % - - - - \listoffigures % 図の目次 \listoftables % 表の目次 \chapter{1章のchapter} 1章とはこんな感じ \section{1.1節のsection} 節はこんなことする \subsection{1.1.1節のsection} こんな % - - - - \end{document} ``` - 見出しを入れる. ``` \chapter{1章のchapter} 1章とはこんな感じ \section{1.1節のsection} 節はこんなことする \subsection{1.1.1節のsection} こんな % - - - - \begin{itemize} \item 見出し. \item 見出し. \begin{itemize} \item 小見出し. \item 小見出し. \end{itemize} \item 見出し. \item 見出し. \end{itemize} % - - - - \end{document} ``` - 数式を入れる. ``` \item 小見出し. \end{itemize} \item 見出し. \item 見出し. \end{itemize} % - - - - \section{数式の例} $$ PN = (P,T,A,M_{0}) $$ $P$はプレースの有限集合,$T$はトランジションの有限集合,$A$はプレースとトランジションの 接続を 表す写像, $M_{0}$は初期マーキングを表している. % - - - - \end{document} ``` * 図を入れる 1. 画像を入れるフォルダを作る. 2. 画像を入れる.(thesisフォルダにimages/arc.pngがある) 3. 画像を呼び出す. ``` $P$はプレースの有限集合,$T$はトランジションの有限集合,$A$はプレースとトランジションの 接続を 表す写像, $M_{0}$は初期マーキングを表している. % - - - - \section{画像を呼び出す} arcの画像を\ref{fig:arc})に示す. % - - - - \end{document} ``` 4. 呼び出す画像を指定する. ``` \section{画像を呼び出す} arcの画像を(図\ref{fig:arc})に示す. % - - - - \section{呼び出す画像の指定} \begin{figure}[h] \begin{center} \includegraphics[width=0.8\linewidth]{./images/arc.png} \caption{arcの画像} \label{fig:arc} \end{center} \end{figure} % - - - - \end{document} ``` 5. 別の画像を入れてみる. * 表を入れる 1. 2列3行でタイトルが「表の例」の表を作る. ``` \label{fig:arc} \end{center} \end{figure} % - - - - \section{表を入れる} \begin{table}[h] \begin{center} \caption{表の例} \begin{tabular}{|l|l|} \hline 1列目の見出し & 内容 \\\hline\hline 1番目 & \begin{tabular}{p{10cm}} 1番目の内容,横幅10cm \\ 改行 \end{tabular} \\\hline 2 & \begin{tabular}{p{10cm}} 内容がある。 \\ \end{tabular} \\\hline 3 & \begin{tabular}{p{10cm}} ああああああああああああああああああああああああああああああ あああああああああああああああああああああ \\ 改行ああああああああああああああああああああああああああああああああああああ \end{tabular} \\\hline \end{tabular} \end{center} \end{table} % - - - - \end{document} ``` [参考](http://www.yamamo10.jp/yamamoto/comp/latex/make_doc/table/table.php) - 目次が変わることを確認する. * 参考文献を書く 1. 参考文献を呼び出す場所を決める. ``` \end{tabular} \end{center} \end{table} % - - - - \section{参考文献を書く} 本,Webページ,論文で書き方が変わる事に注意. 参考として\cite{A}がある. % - - - - \end{document} ``` 2. 参考文献リストの章に参考文献を記述する. ``` \section{参考文献を書く} 本,Webページ,論文で書き方が変わる事に注意. 参考として\cite{A}がある. % - - - - \begin{thebibliography}{99} % 参考文献 \bibitem{A} % 本 本を出した作者, 本を出した委員会, ``本のタイトル'', 会社名,年号. \end{thebibliography} % - - - - \end{document} ``` - Texを実行するとフォルダに「thesis※.pdf」ができているので確認する.(※thesisは自分でつけたフォルダ名) <a id="anchor5"></a> # 5. 知識 <dl> <dt>thesis</dt> > 論文. 読み「しーしす」 <dt>Tex</dt> > 文書成型システムの言語.組版システム. 文字や図版などの要素を紙面に配置する. 読み「てふ,てっくす」 <dt>LaTex</dt> > Tex上の文書システム.Texのマクロ体系(Texの処理を自動化?コンパイル?).platexなど. \documentclassや\usepackageなど使えるのはLatexのおかげ, 読み「らてふ、らてっくす」 <dt>TexLive</dt> >Texディストリビューションの一つ. TexWorksと呼ばれるTexの統合環境を含んでいる. <hr> 中身について説明する. <br> 基本は,thesis_originの <strong>thesis.texを実行してできたpdfを見比べて自力で変換する.</strong> \titleなど明らかすぎるものの説明は省略する. > 省略するもの:title, author, teacher, year, date, etitle, ameabstract, jabstract, noindent など --- ### texファイルを作る <dt>\documentclass</dt> > 文章の種類を指定する jarticleは 日本語の論文用スタイル <dt>{eniepaper}</dt> > eniepaper.clsファイルを適用する. <dt>eniepaper.cls</dt> > texファイルのフォーマットを決めている. おそらく香川大学独自. 中にコメントアウトでコマンドの使い方やルビの振り方などの説明がある. 卒論と修論で変わる.修論だとrisepaper.cls <dt>\usepackege></dt> > latex の機能を拡張したり追加したりするパッケージ. <dt>{makeidx}</dt> > 索引のページを勝手に作成する. 目次ができる. <dt>{dvipdfmx}</dt> > dviファイルをpdfに変換してくれる. <dt>maketitle</dt> > 指定したタイトルを指定する.document内に挿入する. <dt>{url}</dt> > urlを貼る時に必要. <dt>{graphicx}</dt> > 文章に,画像を挿入したり,図の拡大縮小回転を行う. <dt>{here}[H}</dt> > 図表を文中のその場所に配置する. <dt>makeindex</dt> > 索引を入れる.\index{}を参照する. --- ### 表紙を変える --- ### チャプタ―とセクション,サブセクションを追加する. <dt>\begin{} ~ \end{}</dt> >HTMLのBody要素内の構文と似ている.この間の文章にのみ適用される. <dt>{document}</dt> >論文の本文はこの間に入れる. <dt>\chapter{}</dt> >章を入れる. <dt>\section{}</dt> >節を入れる. <dt>\subsection{}</dt> >一つ小さい節を入れる. <dt>\begin{itemize} ~ \end{itemize}</dt> >見出しをこの間で使う. <dt>\item</dt> >見出しの文章を書く. <dt>$$ ~ $$</dt> >数式を入れる時に使える.論文の中央ぞろえになる. <dt>$ ~ $</dt> >数式を入れる時に使える.斜め文字になる. <dt>$~_{~}$ ~ $$</dt> >数式を入れる時に使える.{}の中身が下付き文字になる. --- ### 図を入れる <dt>\ref{fig:B})</dt> >ラベルした図(画像)の番号を呼び出す. 相互参照をする. "B"という名前でラベルをした画像を呼び出す. <dt>\begin{figure} ~ \end{figure}</dt> >図を入れる.graphicxのパッケージを用いることで使える. <dt>[h]</dt> > 図を入れる位置の指定.Hは記述した部分. tはページの上部. bはページの下部. pは独立したページ. <dt>\begin{center}</dt> >中央揃えを行う. <dt>\includegraphics[width=0.8\linewidth]{./images/C.png}</dt> >幅を8割にする.(cm指定もできる). \linewidthで画面幅をとりそれの0.8倍 {}内にthesis.texから画像ファイルの相対パスを入れる. <dt>\caption{arcの画像}</dt> >図や表のタイトルをつける. <dt>\label{fig:B}</dt> >参考元の図(画像)のラベリング.C.pngをfig:Bとして呼び出せる. --- ### 表を入れる <dt>\begin{table}[h] ~ \end{tabel}</dt> >表を入れる.(hは「ここに」の意味) <dt>\label{table:D}</dt> >参考元の表のラベリング.Dとして呼び出せる. <dt>\begin{tabular}{|l|l|} ~ \end{tabular} </dt> >表の開始と列の指定位置.lが左詰め.cが中央揃え. lが二つで2列の表になる. <dt>\begin{tabular}{p{10cm}}</dt> > 1列目は左詰めで幅が10cm,2列目は右詰め. <dt>AAA & BBB</dt> > &の左側(AAA)が左のマスの文字列,&の右側(BBB)が右のマスの文字列. 3列(|c|c|c|)なら,AAA & BBB & CCC <dt>\hline, \\\hline</dt> >横線,改行して横線. <dt></dt> --- ### 参考文献を書く <dt>\cite{A}</dt> > 参考文献を呼び出すコマンド. <dt>\begin{thebibliography}{num}</dt> >参考文献リストを作る環境. 2つめの引数である numには参考文献番号の桁数分だけ9を記述する.つまり1桁であれば9と,2桁であれば99と記述する必要がある <dt> \bibitem{A} </dt> >thebibliography環境内でのリストを書くコマンド. Aがラベル名.\citeで呼び出す. --- ### その他 <dt>% >1行コメントアウトする. <dt>¥¥ または 1行空行</dt> >1行改行する. <dt>\newpage</dt> >ページ区切りをする. <dt>\textless,textgreater</dt> >特別表記 "<" ,>". [参考](http://www.ic.daito.ac.jp/~mizutani/tex/special_characters.html) <hr> 実際に出会ったエラーについて説明する. - コンパイル時にエラー フォルダ内の.tex, .clsファイル以外を消してもう一度実行. </dl> # 最後に ※ 他の人のtexファイルは見たことありません. ※ 体感で説明しています. ※ 章ごとにtexファイルを分けるのが普通かどうかわかりません. ※ あくまで個人の感想です. ※ セクションやチャプターは自分で変えよう. ※ 自分の卒論のtexはTeamsから

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully