nlatexdb를 어떻게 설치하고 사용하나요? (또는 latexdb, ratexdb)?

nlatexdb를 어떻게 설치하고 사용하나요? (또는 latexdb, ratexdb)?

이 질문은 다음과 관련이 있습니다.이 질문Xelatex와 함께 UTF-8 인코딩을 사용하여 MySQL 데이터베이스를 조판하는 것과 관련하여.

논문을 552줄 인쇄해야 해서 간절히 여쭤봅니다! 나는 이번 주에 내 고문에게 이 정보를 전달해야 하는데 그는 약간 구식입니다. 즉 그는 모든 것을 컴퓨터나 컴퓨터 코드가 아닌 종이에 기록하는 것을 선호한다는 의미입니다.

시스템 세부정보:

  • 맥 OS X 라이온 10.7.4
  • Macports와 함께 설치된 Tex Live 2012
  • MySQL 5.5 서버(DMG를 통해 설치)

세 가지 latexdb 시스템 중 하나를 설치하려면 어떻게 해야 합니까? (위의 관련 질문은 xelatex에서 작동하도록 만드는 것과 관련이 있습니다).

서버가 잘 돌아가고 있습니다. 로그인해서 문의할 수 있어요.

간단한 문서가 있습니다.

\documentclass[a4]{article}
\usepackage{fontspec}
\texdbconnection{MySQL,localhost,root,password,mydatabase}
\texdbdef{##query1}{select hd,md from mytable}{##hd,##md}

\begin{document}
This is a header for the page.

\begin{tabular}{|l|l|}
\hline
Hochdeutsch & Mantakisch \\
\texdbfor{##query1}{\hline \textit{##hd} & \textbf{##md}\\}
\hline
\end{tabular}\\

\end{document}

다음과 같은 오류가 계속 발생합니다.

latexdb Database.tex Database.tex 사전 컴파일(루프 1) 이것은 XeTeX, 버전 3.1415926-2.4-0.9998(TeX Live 2012/MacPorts 2012_7) 제한\write18 활성화입니다. 확장 모드 시작 (./database.tex LaTeX2e <2011/06/27> 영어, dumylang, 하이픈 없음, 로드에 대한 바벨 및 하이픈 패턴. (/opt/local/share/texmf-texlive-dist/tex/latex/base /article.cls 문서 클래스: 기사 2007/10/19 v1.4h 표준 LaTeX 문서 클래스 (/opt/local/share/texmf-texlive-dist/tex/latex/base/size10.clo)) (./database. 보조)) *

아니면 다음과 같이 중단됩니다.

latexdb database.tex
Pre-Compiling database.tex (loop 1)
Traceback (most recent call last):
  File "/opt/local/bin/latexdb.py", line 274, in <module>
    _main_()
  File "/opt/local/bin/latexdb.py", line 262, in _main_
    texDBparseForLoop(l)
  File "/opt/local/bin/latexdb.py", line 151, in texDBparseForLoop
    for qR in texDBresult(queryString):
  File "/opt/local/bin/latexdb.py", line 68, in texDBresult
    cursor=db.cursor()
NameError: global name 'db' is not defined
This is XeTeX, Version 3.1415926-2.4-0.9998 (TeX Live 2012/MacPorts 2012_7)
 restricted \write18 enabled.
entering extended mode
(./database.tex
LaTeX2e <2011/06/27>
Babel <v3.8m> and hyphenation patterns for english, dumylang, nohyphenation, lo
aded.
(/opt/local/share/texmf-texlive-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/opt/local/share/texmf-texlive-dist/tex/latex/base/size10.clo))
(/opt/local/share/texmf-texlive-dist/tex/latex/fontspec/fontspec.sty
(/opt/local/share/texmf-texlive-dist/tex/latex/l3kernel/expl3.sty
(/opt/local/share/texmf-texlive-dist/tex/latex/l3kernel/l3names.sty
(/opt/local/share/texmf-texlive-dist/tex/latex/l3kernel/l3bootstrap.sty))
(/opt/local/share/texmf-texlive-dist/tex/latex/etex-pkg/etex.sty)
(/opt/local/share/texmf-texlive-dist/tex/latex/graphics/color.sty
(/opt/local/share/texmf-texlive-dist/tex/latex/latexconfig/color.cfg)
(/opt/local/share/texmf-texlive-dist/tex/xelatex/xetex-def/xetex.def))
(/opt/local/share/texmf-texlive-dist/tex/latex/graphics/graphics.sty
(/opt/local/share/texmf-texlive-dist/tex/latex/graphics/trig.sty)
(/opt/local/share/texmf-texlive-dist/tex/latex/latexconfig/graphics.cfg))
(/opt/local/share/texmf-texlive-dist/tex/latex/l3kernel/l3basics.sty)
(/opt/local/share/texmf-texlive-dist/tex/latex/l3kernel/l3expan.sty)
(/opt/local/share/texmf-texlive-dist/tex/latex/l3kernel/l3tl.sty)
(/opt/local/share/texmf-texlive-dist/tex/latex/l3kernel/l3seq.sty)
(/opt/local/share/texmf-texlive-dist/tex/latex/l3kernel/l3int.sty)
(/opt/local/share/texmf-texlive-dist/tex/latex/l3kernel/l3quark.sty)
(/opt/local/share/texmf-texlive-dist/tex/latex/l3kernel/l3prg.sty)
(/opt/local/share/texmf-texlive-dist/tex/latex/l3kernel/l3clist.sty)
(/opt/local/share/texmf-texlive-dist/tex/latex/l3kernel/l3token.sty)
(/opt/local/share/texmf-texlive-dist/tex/latex/l3kernel/l3prop.sty)
(/opt/local/share/texmf-texlive-dist/tex/latex/l3kernel/l3msg.sty)
(/opt/local/share/texmf-texlive-dist/tex/latex/l3kernel/l3file.sty)
(/opt/local/share/texmf-texlive-dist/tex/latex/l3kernel/l3skip.sty)
(/opt/local/share/texmf-texlive-dist/tex/latex/l3kernel/l3keys.sty)
(/opt/local/share/texmf-texlive-dist/tex/latex/l3kernel/l3fp.sty)
(/opt/local/share/texmf-texlive-dist/tex/latex/l3kernel/l3box.sty)
(/opt/local/share/texmf-texlive-dist/tex/latex/l3kernel/l3coffins.sty)
(/opt/local/share/texmf-texlive-dist/tex/latex/l3kernel/l3color.sty)
(/opt/local/share/texmf-texlive-dist/tex/latex/l3kernel/l3luatex.sty))
(/opt/local/share/texmf-texlive-dist/tex/latex/l3packages/xparse/xparse.sty)
(/opt/local/share/texmf-texlive-dist/tex/latex/fontspec/fontspec-patches.sty
(/opt/local/share/texmf-texlive-dist/tex/latex/base/fixltx2e.sty)
*************************************************
* LaTeX warning: "xparse/redefine-command"
* 
* Redefining document command \oldstylenums with arg. spec. 'm' on line 107.
*************************************************
) (/opt/local/share/texmf-texlive-dist/tex/latex/fontspec/fontspec-xetex.sty
(/opt/local/share/texmf-texlive-dist/tex/latex/base/fontenc.sty
(/opt/local/share/texmf-texlive-dist/tex/latex/euenc/eu1enc.def)
(/opt/local/share/texmf-texlive-dist/tex/latex/euenc/eu1lmr.fd))
(/opt/local/share/texmf-texlive-dist/tex/xelatex/xunicode/xunicode.sty
(/opt/local/share/texmf-texlive-dist/tex/latex/tipa/t3enc.def
(/opt/local/share/texmf-texlive-dist/tex/latex/euenc/eu1lmss.fd))
(/opt/local/share/texmf-texlive-dist/tex/latex/graphics/graphicx.sty
(/opt/local/share/texmf-texlive-dist/tex/latex/graphics/keyval.sty)))
(/opt/local/share/texmf-texlive-dist/tex/latex/fontspec/fontspec.cfg)))

LaTeX Warning: Unused global option(s):
    [a4].

(./database.aux) (/opt/local/share/texmf-texlive-dist/tex/latex/tipa/t3cmr.fd))

*

이 작업을 수행하는 데 정말 가까워진 것 같습니다.

답변1

Nlatexdb는 설치할 필요가 없습니다. nlatexdb.exe 파일만 있으면 됩니다. 예를 들어 xelatex와 동일한 폴더에 복사할 수 있습니다.

MySql 및 Mono의 경우 이 페이지에 설명된 대로 몇 가지 추가 단계를 수행해야 합니다. http://sourceforge.net/p/nlatexdb/wiki/MySQL%20and%20Mono/

또한 tex 파일이 UTF-8 형식인 경우 명령줄 매개변수 "-e utf-8"을 추가해야 합니다.

관련 정보