◆CONTENTS◆
TeXnicCenter は多機能で使いやすい LaTeX 統合環境です.
Windows
を参照.
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\2023\bin\windows
[ 次へ(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) ] [ キャンセル ]
英語版のコンパイラが設定されるので日本語版のコンパイラ (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\2023\bin\windows\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\2023\bin\windows\bibtexu.exe
Command line arguments to pass to
"%tm"
MakeIndex
☐ Do not use MakeIndex in this profile
Path to MakeIndex
C:\texlive\2023\bin\windows\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\2023\bin\windows\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\2023\bin\windows\bibtex.exe
Command line arguments to pass to
"%tm"
MakeIndex
☐ Do not use MakeIndex in this profile
Path to MakeIndex
C:\texlive\2023\bin\windows\makeindex.exe
Command line arguments to pass to
"%tm.idx" -t "%tm.ilg" -o "%tm.ind"
Profiles
LuaLaTeX => 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\2023\bin\windows\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\2023\bin\windows\bibtexu.exe
Command line arguments to pass to
"%tm"
MakeIndex
☐ Do not use MakeIndex in this profile
Path to MakeIndex
C:\texlive\2023\bin\windows\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\2023\bin\windows\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\2023\bin\windows\bibtexu.exe
Command line arguments to pass to
"%tm"
MakeIndex
☐ Do not use MakeIndex in this profile
Path to MakeIndex
C:\texlive\2023\bin\windows\upmendex.exe
Command line arguments to pass to
"%tm.idx" -t "%tm.ilg" -o "%tm.ind"
Profiles
LaTeX => DVI => PDF
[ 🗙 ]
[ (La)TeX ][ Preprocessor ][ Postprocessor ][ Viewer ]
Postprocessors to run after the (La)TeX-compiler
dvipdfm
Executable: C:\texlive\2023\bin\windows\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\2023\bin\windows\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\2023\bin\windows\rungs.exe
Arguments -sPAPERSIZE=a4 -dSAFER -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile="%bm.pdf" -c save pop -f "%bm.ps"
Input
Output
Profiles
LaTeX => DVI => PDF
LaTeX => PDF
LaTeX => PS => PDF
LuaLaTeX => PDF
XeLaTeX => PDF
■ 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
[ 🗙 ]
[ (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
[ 🗙 ]
[ (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
[ 🗙 ]
[ (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
■ コマンドラインを使用する場合
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 Acrobat /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 Acrobat.exe" /nh | findstr "Acrobat.exe" > nul && taskkill /im Acrobat.exe
■ DDE を使用する場合
PDF ファイルの先頭ページにジャンプします.
[ 🗙 ]
[ (La)TeX ][ Preprocessor ][ Postprocessor ][ Viewer ]
Executable path
C:\Program Files\Adobe\Acrobat DC\Acrobat\Acrobat.exe
View project's output
◯ Command line argument 🔘 DDE command
Command [DocOpen("%bm.pdf")][FileOpen("%bm.pdf")]
Server: AcroViewA23 Topic: control
Forward search
◯ Command line argument 🔘 DDE command
Command [DocOpen("%bm.pdf")][FileOpen("%bm.pdf")][DocGoTo("%bm.pdf",0)]
Server: AcroViewA23 Topic: control
Close document before running (La)TeX
◯ Command line argument 🔘 DDE command ◯ Do not close
Command [DocClose("%bm.pdf")]
Server: AcroViewA23 Topic: control
Command line arguments to pass to the compiler: に -synctex=1 を追加します.
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] で折りたたみできます.