TeXnicCenter

TeXnicCenter

  ◆CONTENTS◆  

TeXnicCenter とは

TeXnicCenter は多機能で使いやすい LaTeX 統合環境です.

動作環境

Windows

License

GPL

リリース情報

を参照.

ChangeLog

特徴

不具合

ダウンロード

Encoding → [File]-[Save As...] の Encoding のリストから UTF-8 を指定して保存する

Encoding は

に対応しています.

UTF-8 で保存する場合は [File]-[Save As...] の Encoding のリストから UTF-8 を指定して保存してください.

プロファイルの作成

初回起動時に Configuration Wizard が表示されます.
初回起動時に設定をキャンセルした場合は,メニューの [Build] → [Define Output Profiles...] で,プロファイルを作成します.

[Wizard...] をクリックします.


                                                   [ 🗙 ]
                                                      
    Welcome to the Configuration Wizard

                   The Configuration Wizard will help you, creating the
                   output profiles. In TeXnicCenter output profiles are
                   necessary to generate printable files.

                   Be sure, that you have already installed a
                   TeX-distribution. If not, you should quit the wizard
                   and TeXnicCenter now, install the TeX-distribution and
                   then restart this wizard.

                   Tip: If you are using the MikTeX-Distribution
                   (www.miktex.org), TeXnicCenter will do the most
                   part of the configuration for you.






                              [   次へ(N)   ] [  キャンセル  ]


                                                   [ 🗙 ]
                                                      
    Distribution directory

                   Enter the full path of the directory, where the
                   executables (latex, tex, etc.) of your
                   TeX-distribution are located:

                   C:\texlive\2018\bin\win64
                   C:\texlive\2018\bin\win32













                              [   次へ(N)   ] [  キャンセル  ]


                                                   [ 🗙 ]
                                                      
    DVI-Viewer configuration


                   Enter the full path of the DVI-viewer to use:

                   

                   Enter the command line option that prevents the
                   viewer from starting multiple instances:

                                         [optional]

                   Enter the command line option, that causes the
                   viewer to display a paragraph belonging to a given
                   source line. Use the place holders:

                                         [  ] [optional]



                              [   次へ(N)   ] [  キャンセル  ]


                                                   [ 🗙 ]
                                                      
    Your TeX-distribution supports the generation of PostScript-files




                   Enter the full path of the PostScript-viewer to use:

                   

                   Enter the command line option that prevents the
                   viewer from starting multiple instances:

                                          [optional]

                   Enter the command line option, that causes the
                   viewer to display a paragraph belonging to a given
                   source line. Use the place holders:

                                          [  ] [optional]

                              [   次へ(N)   ] [  キャンセル  ]


                                                   [ 🗙 ]
                                                      
    Your TeX-distribution supports the generation of PDF-files




                   Enter the full path of the PDF-viewer to use:

                   C:\Program Files\SumatraPDF\SumatraPDF.exe

                   Enter the command line option that prevents the
                   viewer from starting multiple instances:

                                          [optional]

                   Enter the command line option, that causes the
                   viewer to display a paragraph belonging to a given
                   source line. Use the place holders:

                                          [  ] [optional]

                              [   次へ(N)   ] [  キャンセル  ]


                                                   [ 🗙 ]
                                                      
    Finish

                   The following output profiles are about to be

                   ・LaTeX => DVI
                   ・LaTeX => DVI => PDF
                   ・LaTeX => PS
                   ・LaTeX => PDF
                   ・LaTeX => PS => PDF
                   ・LuaLaTeX => PDF
                   ・XeLaTeX => PDF


                   Click on 'Finish' to generate the listed profiles.






                              [   完了(F)   ] [  キャンセル  ]


(La)TeX

英語版のコンパイラが設定されるので日本語版のコンパイラ (upLaTeX) に変更します.

Profiles

LaTeX => DVI => PDF
LaTeX => PS => PDF


                                              [ 🗙 ]
[ (La)TeX   ][ Preprocessor ][ Postprocessor ][ Viewer   ]

(La)TeX-Compiler
☑ Run (La)TeX in this profile
☐ Stop Compilation, if LaTeX-Error occures
Path to the (La)TeX
C:\texlive\2018\bin\win64\uplatex.exe
C:\texlive\2018\bin\win32\uplatex.exe
Command line arguments to pass to the compiler:
-no-guess-input-enc -kanji=utf8 -synctex=1 -interaction=nonstopmode "%wm"

BibTeX
☐ Do not use BibTeX in this profile
Path to BibTeX
C:\texlive\2018\bin\win64\upbibtex.exe
C:\texlive\2018\bin\win32\upbibtex.exe
Command line arguments to pass to
"%tm"

MakeIndex
☐ Do not use MakeIndex in this profile
Path to MakeIndex
C:\texlive\2018\bin\win64\upmendex.exe
C:\texlive\2018\bin\win32\upmendex.exe
Command line arguments to pass to
"%tm.idx" -t "%tm.ilg" -o "%tm.ind"


Profiles

LaTeX => PDF


                                              [ 🗙 ]
[ (La)TeX   ][ Preprocessor ][ Postprocessor ][ Viewer   ]

(La)TeX-Compiler
☑ Run (La)TeX in this profile
☐ Stop Compilation, if LaTeX-Error occures
Path to the (La)TeX
C:\texlive\2018\bin\win64\pdflatex.exe
C:\texlive\2018\bin\win32\pdflatex.exe
Command line arguments to pass to the compiler:
-synctex=1 -interaction=nonstopmode "%wm"

BibTeX
☐ Do not use BibTeX in this profile
Path to BibTeX
C:\texlive\2018\bin\win64\bibtex.exe
C:\texlive\2018\bin\win32\bibtex.exe
Command line arguments to pass to
"%tm"

MakeIndex
☐ Do not use MakeIndex in this profile
Path to MakeIndex
C:\texlive\2018\bin\win64\makeindex.exe
C:\texlive\2018\bin\win32\makeindex.exe
Command line arguments to pass to
"%tm.idx" -t "%tm.ilg" -o "%tm.ind"


Profiles

LuaLaTeX => PDF
■ LuaLaTeX の場合


                                              [ 🗙 ]
[ (La)TeX   ][ Preprocessor ][ Postprocessor ][ Viewer   ]

(La)TeX-Compiler
☑ Run (La)TeX in this profile
☐ Stop Compilation, if LaTeX-Error occures
Path to the (La)TeX
C:\texlive\2018\bin\win64\lualatex.exe
C:\texlive\2018\bin\win32\lualatex.exe
Command line arguments to pass to the compiler:
-synctex=1 -interaction=nonstopmode "%wm"

BibTeX
☐ Do not use BibTeX in this profile
Path to BibTeX
C:\texlive\2018\bin\win64\upbibtex.exe
C:\texlive\2018\bin\win32\upbibtex.exe
Command line arguments to pass to
"%tm"

MakeIndex
☐ Do not use MakeIndex in this profile
Path to MakeIndex
C:\texlive\2018\bin\win64\upmendex.exe
C:\texlive\2018\bin\win32\upmendex.exe
Command line arguments to pass to
"%tm.idx" -t "%tm.ilg" -o "%tm.ind"


■ LuajitLaTeX の場合


                                              [ 🗙 ]
[ (La)TeX   ][ Preprocessor ][ Postprocessor ][ Viewer   ]

(La)TeX-Compiler
☑ Run (La)TeX in this profile
☐ Stop Compilation, if LaTeX-Error occures
Path to the (La)TeX
C:\texlive\2018\bin\win64\luajitlatex.exe
C:\texlive\2018\bin\win32\luajitlatex.exe
Command line arguments to pass to the compiler:
-synctex=1 -interaction=nonstopmode "%wm"

BibTeX
☐ Do not use BibTeX in this profile
Path to BibTeX
C:\texlive\2018\bin\win64\upbibtex.exe
C:\texlive\2018\bin\win32\upbibtex.exe
Command line arguments to pass to
"%tm"

MakeIndex
☐ Do not use MakeIndex in this profile
Path to MakeIndex
C:\texlive\2018\bin\win64\upmendex.exe
C:\texlive\2018\bin\win32\upmendex.exe
Command line arguments to pass to
"%tm.idx" -t "%tm.ilg" -o "%tm.ind"


Profiles

XeLaTeX => PDF


                                              [ 🗙 ]
[ (La)TeX   ][ Preprocessor ][ Postprocessor ][ Viewer   ]

(La)TeX-Compiler
☑ Run (La)TeX in this profile
☐ Stop Compilation, if LaTeX-Error occures
Path to the (La)TeX
C:\texlive\2018\bin\win64\xelatex.exe
C:\texlive\2018\bin\win32\xelatex.exe
Command line arguments to pass to the compiler:
-synctex=1 -interaction=nonstopmode "%wm"

BibTeX
☐ Do not use BibTeX in this profile
Path to BibTeX
C:\texlive\2018\bin\win64\upbibtex.exe
C:\texlive\2018\bin\win32\upbibtex.exe
Command line arguments to pass to
"%tm"

MakeIndex
☐ Do not use MakeIndex in this profile
Path to MakeIndex
C:\texlive\2018\bin\win64\upmendex.exe
C:\texlive\2018\bin\win32\upmendex.exe
Command line arguments to pass to
"%tm.idx" -t "%tm.ilg" -o "%tm.ind"


Postprocessor

Profiles

LaTeX => DVI => PDF


                                              [ 🗙 ]
[ (La)TeX   ][ Preprocessor ][ Postprocessor ][ Viewer   ]

Postprocessors to run after the (La)TeX-compiler
dvipdfm                                   










Executable:     C:\texlive\2018\bin\win64\dvipdfmx.exe または C:\texlive\2018\bin\win32\dvipdfmx.exe
Arguments      "%bm.dvi"
Input
Output


Profiles

LaTeX => PS => PDF


                                              [ 🗙 ]
[ (La)TeX   ][ Preprocessor ][ Postprocessor ][ Viewer   ]

Postprocessors to run after the (La)TeX-compiler
DviPs (PDF)                                 
Ghostscript (ps2pdf)









Executable:     C:\texlive\2018\bin\win64\dvips.exe または C:\texlive\2018\bin\win32\dvips.exe
Arguments      -Ppdf -o "%Bm.ps" "%Bm.dvi"
Input
Output


                                              [ 🗙 ]
[ (La)TeX   ][ Preprocessor ][ Postprocessor ][ Viewer   ]

Postprocessors to run after the (La)TeX-compiler
DviPs (PDF)
Ghostscript (ps2pdf)                             









Executable:     C:\texlive\2018\bin\win64\rungs.exe または C:\texlive\2018\bin\win32\rungs.exe
Arguments      -sPAPERSIZE=a4 -dSAFER -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile="%bm.pdf" -c save pop -f "%bm.ps"
Input
Output


Viewer

PDF Viewer

Profiles

LaTeX => DVI => PDF
LaTeX => PDF
LaTeX => PS => PDF
LuaLaTeX => PDF
XeLaTeX => PDF

SumatraPDF

■ SumatraPDF を前面に表示したい場合


                                              [ 🗙 ]
[ (La)TeX   ][ Preprocessor ][ Postprocessor ][ Viewer   ]
Executable path

C:\Program Files\SumatraPDF\SumatraPDF.exe -reuse-instance -inverse-search "\"C:\Program Files\TeXnicCenter\TeXnicCenter.exe\" /ddecmd \"[goto('%f','%l')]\""

View project's output
◯ Command line argument  🔘 DDE command
Command [Open("%bm.pdf",0,1,1)]
Server: SUMATRA       Topic: control

Forward search
◯ Command line argument  🔘 DDE command
Command [ForwardSearch("%bm.pdf","%Wc",%l,0,0,1)]
Server: SUMATRA       Topic: control

Close document before running (La)TeX
◯ Command line argument ◯ DDE command  🔘 Do not close



■ SumatraPDF を前面に表示したくない場合


                                              [ 🗙 ]
[ (La)TeX   ][ Preprocessor ][ Postprocessor ][ Viewer   ]
Executable path

C:\Program Files\SumatraPDF\SumatraPDF.exe -reuse-instance -inverse-search "\"C:\Program Files\TeXnicCenter\TeXnicCenter.exe\" /ddecmd \"[goto('%f','%l')]\""

View project's output
◯ Command line argument  🔘 DDE command
Command [Open("%bm.pdf",0,0,1)]
Server: SUMATRA       Topic: control

Forward search
◯ Command line argument  🔘 DDE command
Command [ForwardSearch("%bm.pdf","%Wc",%l,0,0,0)]
Server: SUMATRA       Topic: control

Close document before running (La)TeX
◯ Command line argument ◯ DDE command  🔘 Do not close



TeXworks


                                              [ 🗙 ]
[ (La)TeX   ][ Preprocessor ][ Postprocessor ][ Viewer   ]
Executable path

C:\Windows\System32\cmd.exe

View project's output
🔘 Command line argument  ◯ DDE command
Command /c texworks "%bm.pdf"


Forward search
🔘 Command line argument  ◯ DDE command
Command /c synctex view -i "%l:0:%Wc" -o "%bm.pdf" -x "texworks --position=%%{page+1} '%%{output}'"


Close document before running (La)TeX
◯ Command line argument ◯ DDE command  🔘 Do not close



Mozilla Firefox (PDF.js)


                                              [ 🗙 ]
[ (La)TeX   ][ Preprocessor ][ Postprocessor ][ Viewer   ]
Executable path

C:\Windows\System32\cmd.exe

View project's output
🔘 Command line argument  ◯ DDE command
Command /c rundll32 shell32,ShellExec_RunDLL firefox -new-window "%bm.pdf"


Forward search
🔘 Command line argument  ◯ DDE command
Command /c synctex view -i "%l:0:%Wc" -o "%bm.pdf" -x "rundll32 shell32,ShellExec_RunDLL firefox -new-window '%%{output}'"


Close document before running (La)TeX
◯ Command line argument ◯ DDE command  🔘 Do not close



Chrome PDF Viewer


                                              [ 🗙 ]
[ (La)TeX   ][ Preprocessor ][ Postprocessor ][ Viewer   ]
Executable path

C:\Windows\System32\cmd.exe

View project's output
🔘 Command line argument  ◯ DDE command
Command /c rundll32 shell32,ShellExec_RunDLL chrome --new-window "%bm.pdf"


Forward search
🔘 Command line argument  ◯ DDE command
Command /c synctex view -i "%l:0:%Wc" -o "%bm.pdf" -x "rundll32 shell32,ShellExec_RunDLL chrome --new-window '%%{output}'"


Close document before running (La)TeX
◯ Command line argument ◯ DDE command  🔘 Do not close



Adobe Acrobat Reader DC

■ コマンドラインを使用する場合
TeX ファイルの行番号に対応する PDF ファイルの該当するページにジャンプします.


                                              [ 🗙 ]
[ (La)TeX   ][ Preprocessor ][ Postprocessor ][ Viewer   ]
Executable path

C:\Windows\System32\cmd.exe

View project's output
🔘 Command line argument  ◯ DDE command
Command /c "%bm.pdf"


Forward search
🔘 Command line argument  ◯ DDE command
Command /c synctex view -i "%l:0:%Wc" -o "%bm.pdf" -x "rundll32 shell32,ShellExec_RunDLL AcroRd32 /A 'page=%%{page+1}' '%%{output}'"


Close document before running (La)TeX
🔘 Command line argument ◯ DDE command  ◯ Do not close
Command /c tasklist /fi "IMAGENAME eq AcroRd32.exe" /nh | findstr "AcroRd32.exe" > nul && taskkill /im AcroRd32.exe


■ DDE を使用する場合
PDF ファイルの先頭ページにジャンプします.


                                              [ 🗙 ]
[ (La)TeX   ][ Preprocessor ][ Postprocessor ][ Viewer   ]
Executable path

C:\Program Files (x86)\Adobe\Acrobat Reader DC\Reader\AcroRd32.exe
C:\Program Files\Adobe\Acrobat Reader DC\Reader\AcroRd32.exe

View project's output
◯ Command line argument  🔘 DDE command
Command [DocOpen("%bm.pdf")][FileOpen("%bm.pdf")]
Server: acroviewR19      Topic: control

Forward search
◯ Command line argument  🔘 DDE command
Command [DocOpen("%bm.pdf")][FileOpen("%bm.pdf")][DocGoTo("%bm.pdf",0)]
Server: acroviewR19      Topic: control

Close document before running (La)TeX
◯ Command line argument 🔘 DDE command  ◯ Do not close
Command [DocClose("%bm.pdf")]
Server: acroviewR19      Topic: control


SumatraPDF との連携

Command line arguments to pass to the compiler: に -synctex=1 を追加します.

forward and inverse search

forward and inverse search は PDF Viewer の SumatraPDF の項を参考に設定してください.
inverse search は Executable path に追加する代わりに SumatraPDF の [☰]-[設定(S)]-[オプション(O)...] の逆順検索コマンドラインの設定に以下の設定を追加しても OK です.

"C:\Program Files\TeXnicCenter\TeXnicCenter.exe" /ddecmd "[goto('%f', '%l')]"

使い方

TeXnicCenter の使い方に関する詳細については
Welcome to the documentation of TeXnicCenter — TeXnicCenter v2.0 documentation
を参照してください.

プロジェクトの作成

[File]-[New]-[Project...] で新規プロジェクトを作成します.

補完

Ctrl + Space で補完ができます.

doc とタイプして Ctrl + Space をタイプすると

\begin{document}

\end{document}

を補完してくれます.

ite とタイプして Ctrl + Space をタイプすると

\begin{itemize}
	\item 
\end{itemize}

を補完してくれます.

プロファイルの変更

[Build]-[Select Output Profile...] またはツールバーからプロファイルを変更できます.

dvipdfmx で PDF ファイルを作成する場合は,プロファイルを LaTeX => DVI => PDF に変更します.

ビルド

[Build]-[Build Output] をクリックします.

エラーが見つかれば,🗙印が表示され,クリックするとエラー箇所にジャンプします.

間違った箇所を修正してもう一度ビルドします.

表示

[Build]-[View Output] で対応するプロファイルの出力ファイルが表示されます.

[Build]-[Build and View Output] でビルドと表示ができます.

折りたたみ

[View]-[Fold Margin] で折りたたみできます.

関連リンク


Last-modified: 2018-10-03 (水) 20:00:59 (73d)