Q&A 마당은 텍 관련 질문/답변을 위해 만들었습니다.
- 로그인 없이 자유롭게 글을 읽고 쓸 수 있는 철학은 처음과 같이 계속됩니다.
- 질문 전에 아래를 읽어 보세요. 좋은 질문이 좋은 답을 받을 수 있는 좋은 방법입니다.
- 질문에 맞는 제목을 붙이세요. 질문의 내용과 관련없는 "고수님", "긴급질문", "도와주세요"와 같은 제목은 답이 잘 올라오지 않습니다. 이 게시판에 올라오는 모든 글은 질문입니다. 굳이 [질문], [Q]를 적으실 필요도 없습니다.
- 내용을 충실히 적어 주시고, 같은 상황을 재현할 수 있는 최소한의 예제가 같이 있어야 합니다.
- 최소 예제는 "Minimal working example"을 읽어 보세요.
- 파일을 첨부하실 때에는 가능한 압축하여 파일 크기를 줄여서 올려주시길 바랍니다.
- 개인적으로 사용하신 글꼴이 들어 있는 경우, preparefont.sty에 관한 답변을 참조하세요.
- 스팸 글을 막기 위하여 짧은 시간 내에 다시 글이 등록되는 IP를 막거나, 광고 글을 막기 위하여 금지어로 .com, .net 등을 설정하고 있습니다. 다소간의 불편함이 있으시더라도 양해 바랍니다.
- 금지어에서 stackexchange, stackoverflow, ctan, overleaf, , github, google.com, gmail.com, .org, .io, sil.org, wiki.com, tistory.com등은 해제하였습니다.
- MathJax를 이용한 수식조판을 사용하실 수 있습니다. 여기를 참조하세요.
- 사용하는 편집기는 CKeditor입니다.
- 편집기에서 [enter]를 누르면 <p> 태그가 들어가고, 문단으로 생각하고 한 줄을 비웁니다.
- 글줄만 바꾸려면 [shift-enter]를 누르면 <BR> 태그가 들어가므로 용도에 맞게 나누어 쓸 수 있습니다.
- 수식를 문서내에 삽입하시려면 에디터를 툴바에서 [소스]를 눌러 HTML로 입력할 수 있게 바꾸신 후 <pre> </pre> tag를 사용하셔서 <pre> 여러 줄의 수식 </pre>처럼 입력하시면 좋습니다.
Reference를 bib파일로 저장하여 컴파일할때 생긴 문제점
2020.04.15 11:07
안녕하세요.
다름이 아니라 JCCP 저널양식에 따라 References를 bib파일에 저장하여 컴파일하는 연습을 하고 있습니다. 컴파일을 하면 많은 에러가 발생하지만, 에러와 관계없이 일단 PDF 파일이 만들어지긴 합니다. 그런데, References 와 관련된 내용이 전혀 보이지를 않습니다. 관련 파일을 아래에다 복사하였습니다. (Tex파일과 bib파일에 있는 내용!) 게시판에 에러가 있는지 모르겠지만, 어떤 이유에서인지 파일첨부가 계속 안되네요.
(1) 일단, 아래 내용을 보시면 아시겠지만, \bibliographystyle{rsc} 로 지정하고, preamble에다가 \usepackage{rsc}를 assign하였습니다. 또한, \bibliography{PCCP_ref.bib} 을 사용하였는데, 확장자 bib없이 컴파일 해봤지만 반응이 없습니다.
(2) preamble 영역에 주석처리 한것은 제가 임의로 한것이니 신경쓰시지 않으셔도 됩니다.
(3) 그런데, 제가 bst 파일을 만들지 않았는데, 인터넷을 찾아보니까 자동으로 생성되는 것으로 알고 있는데 아닌가요? 인터넷에 나와있는 bst file에 대한 설명을 보면 중구난방이어서 도무지 어떤식으로 만들어야할지 감이 오지를 않습니다.
지금 이 문제때문에 며칠동안 고생하고 소득이 없습니다. 제가 문제해결을 할 수 있도록 방향을 정해주시면 감사하겠습니다.
(1) Tex 파일에 있는 내용!
\documentclass[twoside,twocolumn,9pt]{article}
\usepackage{extsizes}
\usepackage[super,sort&compress,comma]{natbib}
\usepackage[version=3]{mhchem}
\usepackage[left=1.5cm, right=1.5cm, top=1.785cm, bottom=2.0cm]{geometry}
\usepackage{balance}
\usepackage{times,mathptmx}
\usepackage{sectsty}
\usepackage{lastpage}
\usepackage[format=plain,justification=justified,singlelinecheck=false,font={stretch=1.125,small,sf},labelfont=bf,labelsep=space]{caption}
\usepackage{float}
\usepackage{fancyhdr}
\usepackage{fnpos}
\usepackage[english]{babel}
\addto{\captionsenglish}{%
\renewcommand{\refname}{References}
}
\usepackage{array}
\usepackage{droidsans}
\usepackage{charter}
\usepackage[T1]{fontenc}
\usepackage[usenames,dvipsnames]{xcolor}
\usepackage{setspace}
\usepackage[compact]{titlesec}
%\usepackage{hyperref} % Do not use temporarily!
\usepackage[latin1]{inputenc} % Do not use this command!
\usepackage{rsc} % This command does not work!
\usepackage{multicol} % New command added to the existing format
\usepackage{mwe} % New command added to the existing format
\usepackage{rotating} % New commands added to the existing format
\usepackage{graphicx,subfigure} % New commands added to the existing format
%\usepackage[demo]{graphicx} % Not used temporarily
%\usepackage{subfig} % Not used temporarily
%\usepackage{dblfloatfix} % Not used temporarily
%\usepackage{subcaption} % It is used for "subfigure" command
\usepackage{graphicx} % It is used for "subfigure" command
%%%Please don't disable any packages in the preamble, as this may cause the template to display incorrectly.%%%
\usepackage{epstopdf} %This line makes .eps figures into .pdf - please comment out if not required.
%\usepackage{placeins} % Use this command to place the position of figure (Added to the exsiting format}
\definecolor{cream}{RGB}{222,217,201}
\begin{document}
\pagestyle{fancy}
\thispagestyle{plain}
\fancypagestyle{plain}{
%%%HEADER%%%
\fancyhead[C]{\includegraphics[width=18.5cm]{head_foot/header_bar}}
\fancyhead[L]{\hspace{0cm}\vspace{1.5cm}\includegraphics[height=30pt]{head_foot/journal_name}}
\fancyhead[R]{\hspace{0cm}\vspace{1.7cm}\includegraphics[height=55pt]{head_foot/RSC_LOGO_CMYK}}
\renewcommand{\headrulewidth}{0pt}
}
%%%END OF HEADER%%%
%%%PAGE SETUP - Please do not change any commands within this section%%%
\makeFNbottom
\makeatletter
\renewcommand\LARGE{\@setfontsize\LARGE{15pt}{17}}
\renewcommand\Large{\@setfontsize\Large{12pt}{14}}
\renewcommand\large{\@setfontsize\large{10pt}{12}}
\renewcommand\footnotesize{\@setfontsize\footnotesize{7pt}{10}}
\makeatother
\renewcommand{\thefootnote}{\fnsymbol{footnote}}
\renewcommand\footnoterule{\vspace*{1pt}%
\color{cream}\hrule width 3.5in height 0.4pt \color{black}\vspace*{5pt}}
\setcounter{secnumdepth}{5}
\makeatletter
\renewcommand\@biblabel[1]{#1}
\renewcommand\@makefntext[1]%
{\noindent\makebox[0pt][r]{\@thefnmark\,}#1}
\makeatother
\renewcommand{\figurename}{\small{Fig.}~}
\sectionfont{\sffamily\Large}
\subsectionfont{\normalsize}
\subsubsectionfont{\bf}
\setstretch{1.125} %In particular, please do not alter this line.
\setlength{\skip\footins}{0.8cm}
\setlength{\footnotesep}{0.25cm}
\setlength{\jot}{10pt}
\titlespacing*{\section}{0pt}{4pt}{4pt}
\titlespacing*{\subsection}{0pt}{15pt}{1pt}
%%%END OF PAGE SETUP%%%
%%%FOOTER%%%
\fancyfoot{}
\fancyfoot[LO,RE]{\vspace{-7.1pt}\includegraphics[height=9pt]{head_foot/LF}}
\fancyfoot[CO]{\vspace{-7.1pt}\hspace{13.2cm}\includegraphics{head_foot/RF}}
\fancyfoot[CE]{\vspace{-7.2pt}\hspace{-14.2cm}\includegraphics{head_foot/RF}}
\fancyfoot[RO]{\footnotesize{\sffamily{1--\pageref{LastPage} ~\textbar \hspace{2pt}\thepage}}}
\fancyfoot[LE]{\footnotesize{\sffamily{\thepage~\textbar\hspace{3.45cm} 1--\pageref{LastPage}}}}
\fancyhead{}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
\setlength{\arrayrulewidth}{1pt}
\setlength{\columnsep}{6.5mm}
\setlength\bibsep{1pt}
%%%END OF FOOTER%%%
%%%FIGURE SETUP - please do not change any commands within this section%%%
\makeatletter
\newlength{\figrulesep}
\setlength{\figrulesep}{0.5\textfloatsep}
\newcommand{\topfigrule}{\vspace*{-1pt}%
\noindent{\color{cream}\rule[-\figrulesep]{\columnwidth}{1.5pt}} }
\newcommand{\botfigrule}{\vspace*{-2pt}%
\noindent{\color{cream}\rule[\figrulesep]{\columnwidth}{1.5pt}} }
\newcommand{\dblfigrule}{\vspace*{-1pt}%
\noindent{\color{cream}\rule[-\figrulesep]{\textwidth}{1.5pt}} }
\makeatother
%%%END OF FIGURE SETUP%%%
%%%TITLE, AUTHORS AND ABSTRACT%%%
\twocolumn [
\begin{@twocolumnfalse}
\vspace{3cm}
\sffamily
%\begin{tabular}{m{4.5cm} p{13.5cm}}
%\includegraphics{head_foot/DOI} &
\noindent\LARGE{\textbf{test}} \\ %Article title goes here instead of the text "This is the title"
\vspace{0.3cm} & \vspace{0.3cm} \\ % &
\noindent\large{First Author\textit{$^{a}$} and Second Author\textit{$^{a}$$^{b}$}} \\%Author names go here instead of "Full name", etc.
%\includegraphics{head_foot/dates} &
\noindent\normalsize{Abstract will be shown here.} \\
%\end{tabular}
\end{@twocolumnfalse} \vspace{0.6cm}
]
%%%END OF TITLE, AUTHORS AND ABSTRACT%%%
%%%FONT SETUP - please do not change any commands within this section
\renewcommand*\rmdefault{bch}\normalfont\upshape
\rmfamily
\section*{}
\vspace{-1cm}
%%%FOOTNOTES%%%
%\newcommand\nnfootnote[1]{%
% \begin{NoHyper}
% \renewcommand\thefootnote{}\footnote{#1}%
% \addtocounter{footnote}{-1}%
% \end{NoHyper}
%}
%The NoHyper environment additionally ensures that there is no hyperlink from the text to the footnote.
\footnotetext{\textit{$^{a}$~Department of A1, ABC University}}
\footnotetext{\textit{$^{b}$~Department of A2, ABC University}}
% Use \nnfootnote instead of \footnotetext when \usepackage{hyperref} is used!
%%%END OF FOOTNOTES%%%
%%%MAIN TEXT%%%%
% The main text of the article\cite{Mena2000} should appear here. % Temporarily not used!
\section{Introduction}
\indent Introduction will be provided. \\
%\begin{figure}[h]
%\begin{multicols}{2}
% \centering
% \includegraphics[width=\linewidth]{EF}
% \includegraphics[width=\linewidth]{EF_3D}
% \caption{test1}
%\end{multicols}
%\end{figure}
%\begin{figure*}[h]
% \subfigure[]{
% \includegraphics[width=0.46\textwidth]{EF}
% }
% \quad
% \subfigure[]{
% \includegraphics[width=0.46\textwidth]{EF_3D} \\
% }
% \caption{\textit{test2}}
%\end{figure*}
\balance
%\FloatBarrier
\nocite{1,2,3,4,5,6,7,8,9,10,11,12}
This is a test version of our publication\cite{1}. The reference list we are using is as follows\cite{2,3,4,5,6,7,8,9,10,11,12}.
\bibliography{PCCP_Ref.bib}
\bibliographystyle{rsc}
\end{document}
(2) bib 파일에 있는 내용! (bib 파일의 이름은 PCCP_Ref.bib 입니다!)
@book{1,
author={Uri Alon},
title={An Introduction to Systems Biology (Design Principles of Biological Circuits).},
journal={},
volume={},
year={2017},
pages={}
}
@article{2,
author={J.J.Hopfield},
title={Kinetic Proofreading : A New Mechanism for Reducing Errors in Biosynthesis Processes Requiring High Specificity.},
journal={Proc. Nat. Acad. Sci. USA},
volume={71},
year={1974},
pages={4135-4139}
}
@article{3,
author={Jacques Ninio},
title={Kinetic Amplification of Enzyme Discrimination.},
journal={Biochimie},
volume={57},
year={1975}
pages={587-595}
}
@article{4,
author={Albert Goldberter and Daniel E.Koshland, JR},
title={An Amplified Sensitivity Arising from Covalent Modification in Biological Systems.},
journal={Proc, Natl. Acad. Sci. USA },
volume={78},
year={1981},
pages={6840-6844}
}
@article{5,
author={William S. Hlavacek, Antonio Redondo, Henry Metzger, Carla Wofsy, and Byron Goldstein},
title={Kinetic Proofreading Models for Cell Signalling Predict Ways to Escape Kinetic Proofreading},
journal={PNAS},
volume={98},
year={2001},
pages={7295-7300}
}
@article{6,
author={Michael A. Savageau and Rolf R. Freter},
title={Energy Cost of Proofreading to Increase Fidelity of Transfer Ribonucleic Acid Aminoacylation.},
journal={ACS},
volume={18},
year={1979},
pages={3486-3493}
}
@article{7,
author={Michael A. Savageau and Rolf R. Freter},
title={Accuracy of Proofreading with Zero Energy Cost.},
journal={ACS},
volume={93},
year={1981},
pages={179-185}
}
@article{8,
author={W.Mckeithan},
title={Kinetic Proofreading in T-Cell Receptor signal transduction.},
journal={Proc. Natl. Acad. Sci. USA},
volume={92},
year={1995},
pages={5042-5046}.
}
@article{9,
author={Hong Qian},
title={Reducing Intrinsic Biochemical Noise in Cells and Its Thermodynamics Limit.},
journal={J.Mol.Biol.},
volume={362},
year={2006},
pages={387-392}
}
@article{10,
author={Wenping Cui, Pankaj Mehta},
title={Identifying feasible operating regimes for early T-cell recognition: The speed, energy,accuracy trade-off in kinetic proofreading and adaptive sorting.},
journal={PLOS ONE},
volume={13},
year={2018},
pages={}
}
@article{11,
author={Kinshuk Banerjee, Anatoly B.Kolomeisky and Oleg A. Igoshin},
title={Elucidating interplay of speed and accuracy in biological error correction},
journal={PNAS},
volume={114},
year={2017},
pages={5183-5188}
}
@article{12,
author={ C. Chan, A.J.T. George and J.Stark},
title={T Cell Sensitivity and Specificity – Kinetic Proofreading Revisited.},
journal={Disc.Cont. Dyn.Sys.Series B},
volume={3},
year={2003},
pages={343-360}
}
댓글 18
-
관리자
2020.04.15 14:00
-
관리자
2020.04.15 14:05
1. 게시판 상단의 안내를 보시면
- 파일을 첨부하실 때에는 가능한 압축하여 파일 크기를 줄여서 올려주시길 바랍니다.
로 안내가 있습니다.
2. 파일 첨부에 마우스를 가져가시면 아래의 그림과 같이 첨부할 수 있는 화일의 크기와 확장자가 나타납니다.
-
likesam
2020.04.15 14:41
컴파일 과정에서 bibtex도 돌리셨나요? http://www.ktug.org/xe/index.php?document_srl=219628 과 http://www.ktug.org/xe/index.php?document_srl=203925 를 참조하세요.
bibtex등에 대해서 더 파악하셔야 하면, FAQ의 참고문헌만들기를 참조하세요. 다만 FAQ는 조금 오래된 자료이므로 요즘의 환경과 잘 맞지 않을 수 있습니다.
좀더 현대적인 방법들로 wiki의 Modern LaTeX을 보니 좀 더 현대적인 방법 들이 나오고 있어 보입니다. Overleaf에 좋은 글들이 있어 보입니다. KTUG에서는 2014년에 공주대학교 문서작성워크샵의 오후 두번째 시간에 관련된 개요가 발표된 적이 있었군요. Overleaf에 좀더 자료가 보입니다. Bibliography management in LaTeX을 시작으로 왼쪽의 글목록중 References and Citations 들을 살펴보시면 어떠실지요. Getting_started_with_BibLaTeX는 같은 곳에서 나온 3년전 자료인 듯합니다.
-
돈가스사랑
2020.04.15 22:34
likesam 님 말씀대로 bibtex를 돌리셨는지 확인해 보시는게 좋겠습니다. 그런데 컴파일을 할 때 pdfLaTeX (또는 XELaTeX나 LuaLaTeX등)를 돌리고, 목차 및 cross-reference 때문에 한번 더 돌리고, 참고문헌 때문에 biblatex 돌리고, ... 하는건 엄청 귀찮은 일이지요. 이런 문제를 해결해 주는 툴로 latexmk 라는게 있습니다. 커맨드 latexmk foo.tex 하나만 치면 필요한 tex 도구들을 모두 컴파일해주는 프로그램이에요. 혹시 시간이 나신다면 CTAN에서 참고해 보세요. *^^*
-
큰바위
2020.04.16 01:47
엄청 길게 짜셨는데 컴파일 한 결과
1. \usepackage[super,sort&compress,comma]{natbib} 과 \usepackage{rsc} 가 충돌합니다.
앞에 것을 죽이시기 바랍니다.
2. \fancypagestyle{plain}{
%%%HEADER%%%
\fancyhead[C]{\includegraphics[width=18.5cm]{head_foot/header_bar}}
\fancyhead[L]{\hspace{0cm}\vspace{1.5cm}\includegraphics[height=30pt]{head_foot/journal_name}}
\fancyhead[R]{\hspace{0cm}\vspace{1.7cm}\includegraphics[height=55pt]{head_foot/RSC_LOGO_CMYK}}
\renewcommand{\headrulewidth}{0pt}
}이 부분은 첨부가 안되있어 일단 뺐습니다.
3. %%%TITLE, AUTHORS AND ABSTRACT%%%
부분에서 10번째
\vspace{0.3cm} & \vspace{0.3cm} \\ % & 로 되어있는데 중간 &을 빼십시오. (잘못 짜였다고 경고문이 뜹니다.)
4. \bibliography{PCCP_Ref} 로 충분합니다.
이 네 가지를 고치고 나서 컴파일 하면 다음 결과가 나옵니다. 고친 tex 파일 함께 첨부합니다.
-
onsagerian
2020.04.16 09:34
답변주신 세분 감사드립니다. 특히, "큰바위"님은 직접적으로 힌트를 주셔서 대단히 감사합니다. 그런데, 보내주신 Tex 파일에 근거하여 제가 직접 코드를 변경하여 그대로 시행했는데, 여전히 에러가 납니다. 일단, 이해가 안가는게 "돈가스사랑"님은 pdfLaTeX (또는 XELaTeX나 LuaLaTeX등)으로 컴파일한다음 다시 bibLatex로 돌리라고 하셨는데, "likesam"님이 알려주신 몇가지 소스 그리고 제가 인터넷 검색해서 알아본 결과
(1) References를 저장해놓은 bib 파일이 결국 BibTex 아닌가요? bib 파일이 BibTex와 동일하다는 가정하에... 그렇다면 bib 파일의 이름도 역시 원래 파일하고 같은 이름을 사용하여야 되는지도 알고 싶습니다. 다시말해서 Question 3.tex 는 원래 파일이고, PCCP_Ref.bib 라는 bib 파일이 있습니다. 여기서 PCCP_Ref.bib 파일의 이름을 Question 3이라는 이름이 들어가도록 변경할 필요가 있는지 알고 싶습니다. 컴파일해보면 rsc-Question 3_bib 파일이 생성이 됩니다. 따라서 이 부분은 문제가 없을 것 같습니다만 확실하게 이해한 것은 아닙니다.
(2) 제가 컴파일한 순서는 이렇습니다. 원래 작성한 파일(Question 3.tex)를 한번 컴파일한다음에 PCCP_Ref.bib (BibTex)를 한번 컴파일하였습니다. 그런데, "pdfLaTeX (또는 XELaTeX나 LuaLaTeX등)으로 컴파일한다음 다시 bibLatex로 돌리라"는 말이 잘 이해가 안가는데, 저는 일반 버전의 Tex라서, pdfLatex하고는 거리가 있어보입니다. 제가 잘못 이해하고 있는건지 모르겠습니다.
아무튼 답변 주시면 감사하겠습니다.
-
noname
2020.04.16 09:45
bib 파일의 이름이 abcde.bib이라고 해서 bibtex을 이 파일에 대하여 실행하는 것이 아닙니다. 이 파일 이름은 \bibliography 명령의 인자로만 오면 충분합니다.
\bibliography{abcde.bib} 이라는 명령을 포함하고 있는 tex 파일이 test.tex이라면
pdflatex test
bibtex test
pdflatex test이 순서로 컴파일합니다. 이 루틴에 abcde.bib을 대상으로 할 일은 없습니다.
bibtex은 test에서 생성된 정보를 보고 필요한 것을 abcde.bib에서 가져옵니다. 따라서 bibtex이 실행될 대상은 main tex 파일이 생성한 aux 파일이어야 합니다. (즉 bibtex 명령을 줄 때는 그 뒤에 .tex이라는 확장자를 붙이지 마십시오.)
-
noname
2020.04.16 09:39
(위의 본 게시글의 bib 부분에는 필드를 구분하는 콤마가 빠진 데가 몇 군데 있습니다.)
1. bib 파일의 문법
제공하신 bib 파일의 저자명이 잘못 작성되어 있습니다. 저자 이름에서 first name을 약어 처리할 것인지 제2 이후 공저자의 이름과 성의 순서를 바꿀 것인지, 복수 저자의 이름을 몇 개 표현한 후에 et. al.할 것인지 등은 bibtex이 컴파일하면서 (bst의 지시에 따라) 결정하는 것입니다.
그러므로 author 필드에 복수 저자를 콤마로 구분하는 것은 bib 파일에 적합한 문법이 아닙니다. 저자가 여러 명이라도 모두 and로 연결하고 가운데 이름도 쓸 수 있으면 다 써두는 것이 좋습니다. 마침표도 찍지 마세요. 컴파일 결과 다 알아서 나옵니다. (여기서 "and"는 일종의 연산자 같은 것이지 실제 텍스트로서의 "and"가 아니라는 것입니다.)
여러운 것은 Jr. 같은 surname인데요, bibtex에게 내가 입력한 것을 절대 조작하지 말고 그대로 출력하라고 하려면 중괄호로 한 번 싸주면 되니까,
author={Albert Goldberter and Daniel E {Koshland, JR}},
이렇게 할 수 있습니다.
2. bst의 제작?
bst는 TeX Live에 웬만한 것은 다 들어 있고 꼭 필요한 것은 publisher가 제공할 것입니다. 이걸 개인이 만드는 것은 매우 어렵다고 생각합니다. 몇 가지 가이드가 있기는 하나, 쉽지 않은 일이고요. 가끔 개인화한 bst가 있기는 해도 그건 대부분 이미 있는 걸 필요한 부분만 수정한 것일 겁니다.
bst에 쓰이는 언어는 special purpose postfix stack language라고... 제대로 된 이름도 없는 물건이고요, bibtex의 스타일 파일 이외의 곳에서는 전혀 쓰이는 일이 없는 아주 독특한 것이라고 합니다.
-
Progress
2020.04.16 10:18
noname 님께서 답변을 달아주신 걸 알았으면 이걸 안 썼을텐데요, 이 답을 달기 위해 패키지 설치한 시간이 좀 아까워서 올려봅니다. ^^;
===
위 예제에 대해 bibtex 명령을 내렸을 때 만나는 에러는 다음과 같습니다.
> bibtex bibtest
This is BibTeX, Version 0.99d (TeX Live 2020/W32TeX)
The top-level auxiliary file: bibtest.aux
The style file: rsc.bst
Database file #1: rsc-bibtest.bib
Database file #2: PCCP_Ref.bib
I was expecting a `,' or a `}'---line 49 of file PCCP_Ref.bib
:
: pages={587-595}
(Error may have been on previous line)
I'm skipping whatever remains of this entry
I was expecting a `,' or a `}'---line 141 of file PCCP_Ref.bib
: pages={5042-5046}
: .
I'm skipping whatever remains of this entry
Name 1 in "William S. Hlavacek, Antonio Redondo, Henry Metzger, Carla Wofsy, and Byron Goldstein" has a comma at the end for entry 5
while executing---line 1417 of file rsc.bst
Too many commas in name 1 of "William S. Hlavacek, Antonio Redondo, Henry Metzger, Carla Wofsy, and Byron Goldstein" for entry 5
while executing---line 1417 of file rsc.bst
rsc 2016/08/22 v3.1f
Warning--Empty publisher in 1
`pages' is a missing field, not a string, for entry 3
while executing---line 1500 of file rsc.bst
Name 1 in "William S. Hlavacek, Antonio Redondo, Henry Metzger, Carla Wofsy, and Byron Goldstein" has a comma at the end for entry 5
while executing---line 1500 of file rsc.bst
Too many commas in name 1 of "William S. Hlavacek, Antonio Redondo, Henry Metzger, Carla Wofsy, and Byron Goldstein" for entry 5
while executing---line 1500 of file rsc.bst
Name 1 in "William S. Hlavacek, Antonio Redondo, Henry Metzger, Carla Wofsy, and Byron Goldstein" has a comma at the end for entry 5
while executing---line 1500 of file rsc.bst
Too many commas in name 1 of "William S. Hlavacek, Antonio Redondo, Henry Metzger, Carla Wofsy, and Byron Goldstein" for entry 5
while executing---line 1500 of file rsc.bst
(There were 9 error messages)1. 콤마가 누락되거나, 콤마가 찍혀야할 곳에 피리어드가 찍힌 곳이 있습니다.
에러 메시지에 보시면 PCCP_Ref.bib24째줄: year={1975} ==> year={1975},
71째줄: pages={5042-5046}. ==> pages={5042-5046}, (여기서는 해당 엔트리의 마지막이므로 콤마를 안 찍어도 되겠습니다.)2. 그리고 복수의 저자를 구분하는 데는 "and"가 쓰여야하는데 38째 줄의 다섯 명의 저자 리스트에는 "and"가 하나 밖에 없는 대신 콤마가 너무 많다고 투덜대는 것입니다.
auhtor={William S. Hlavacek, Antonio Redondo, Henry Metzger, Carla Wofsy, and Byron Goldstein},
즉 다음과 같이 적어야합니다.
38째줄: author={William S. Hlavacek and Antonio Redondo and Henry Metzger and Carla Wofsy and Byron Goldstein},
*참고로 저자의 구분에서 "콤마"는 first name과 last name(또는 family name)을 구분하는 데 사용합니다. 참고문헌은 last name-first name 순으로 정렬하는 경우가 많으므로, 각 저자의 퍼스트네임과 라스트 네임을 명확히 콤마로 구분하여 입력해놓는 것이 좋겠습니다. (나중에 정렬이 다른 bst 파일을 사용할 수도 있잖아요?)
38째줄: author={Hlavacek, William S. and Redondo, Antonio and Metzger, Henry and Wofsy, Carla and Goldstein, Byron},
-
onsagerian
2020.04.16 23:01
답변 정말 감사드립니다. 두분의 조언에 따라 일단 bib파일을 수정했습니다. 그럼에도 error와 warning이 발생하는데, 그 근본적인 문제점이 PdfLatex Bibtex PdfLatex(2번)를 순차적으로 컴파일해야 됨에도 불구하고, 제가 가진 Latex에서는 그러한 것들이 제공되지 않고 있다는데 있습니다. 알고보니 TeXWorks라는 프로그램이 이러한 기능을 제공하고 있더군요. 제가 사용하고 있는 Latex의 메뉴를 아무리 찾아보아도 해당기능은 없으며, 다만 Bibliography라는 메뉴에서 제공되는 2가지 옵션 BibTex와 BibLaTex만 있을뿐입니다. default는 BibLaTex로 되어있고요. 이게 전부입니다. 이런경우 컴파일은 어떻게 해야되는지 알려주시면 감사하겠습니다.
-
큰바위
2020.04.16 23:28
어떤 editor를 쓰시는지 모르겠지만, texstudio를 쓰시면 편합니다. Linux OS에서는 보통 Kile을 Windows OS에서는 옛날에 WinEdit를 썼는데 texstudio가 양쪽 다 편하게 쓸 수 있습니다.
-
onsagerian
2020.04.16 23:36
지금 사용하고 있는 버전은 TexLive 2016입니다. 물론 editor는 TeXstudio를 사용하고 있습니다. 이 버전으로는 PdfLatex ,BibTex 와 같은것을 컴파일하는 것이 불가능한것인지 알고 싶습니다. 아니면 현재 버전에서 컴파일하는 다른 방법은 없을까요? 참고로 제가 사용하는 Latex 화면 이미지를 첨부했습니다.
-
onsagerian
2020.04.17 00:09
그런데, 어차피 PdfLatex라는 것이 Latex Soucres를 PDF로 바꾸는 역할을 하는것인데, 제가 사용하는 TextLive 2016에서 그러한 별도의 이름을 가진 기능이 없다할지라도 매번 컴파일하면 당연히 PDF가 생성됩니다. 다만, bib파일과 관련된 문제에 있어서 컴파일할때 별도로 필요한 기능으로 생각되는데... PDfLatex와 BibTex 기능이 별도로 있어야 한다면 이와 같은경우 별다른 해결책은 없는지 알고 싶습니다.
-
큰바위
2020.04.17 08:54
스크린 샷으로 사진을 찍으셔야 했는데, 첨부 파일 사진이 너무 희미합니다. 그런데 사진을 자세히 보니 컴파일에는 문제가 없고 bibitem에 문제가 있는 것 같습니다. 짜신 PCCP_Ref.bib 파일의 해당 부분을 고치셔야 할 듯합니다. 자세히 해당 부분을 살펴보시길. 다른 부분 경고가 없기 때문입니다.
-
likesam
2020.04.17 09:45
설명서를 충분히 읽지 않으셨거나, 맞는 설명서들을 찾지 못하신 것 같습니다. 여기서 나오는 용어나 실행 명령부터 무슨 뜻인지 이해하시지 못하시는 것으로 보입니다.
우선 사용하시는 명령들과 용어부터 쉽게 정리하여 봅시다. (쉽게 이해하실 수 있도록 설명하느라 실제와 조금 다를수도 있습니다.)
.tex 화일을 컴파일하여 결과물로 .pdf를 만드는 방법으로 요즘은 pdflatex, xelatex, lualatex과 같은 명령을 씁니다. 각각 장점과 특징이 다르지만, 영어를 주로 쓰신다면 pdflatex, lualatex 순으로 사용을 검토하시고, 한글 등을 주로 쓰신다면 xelatex, lualatex 순으로 사용을 검토하시면 됩니다. 예전에는 latex이라는 명령을 사용하였고 기능이 확장되어 pdflatex등이 개발되었습니다. 그래서 pdflatex, xelatex, lualatex, latex + dvipdmfx 등을 실행시키는 것을 latex을 돌린다, 컴파일한다 등으로 이야기하는 경우가 많습니다.
.tex 화일을 컴파일 되는 과정에서 .aux 등의 부수화일을 만들고 이들을 참조하고 이용하여 .pdf 화일의 참조등을 만들 때 사용합니다. 그러므로 pdflatex을 한번만 실행하는 경우보다는 두 세번 실행하여 결과를 얻는 경우가 많습니다. ( 이때 pdflatex을 실행하는 대상은 소스.tex 입니다. 참조.bib 가 아닙니다. 참조.bib는 소스.tex 안에 무엇을 쓰라고 적혀있어야 합니다. )
bibtex 등은 latex으로 컴파일 하고 만들어진 부수화일과 .tex 소스 화일을 서로 비교하여 참조문헌을 만들어 준다고 보시면 됩니다. 이때 자료화일이 .bib 이고 양식화일이 .bst 인가 봅니다. 그러므로 latex, bibtex, latex, latex 순으로 컴파일한다고 이야기한다고 봅니다. 실제로 실행하여야 하는 것은 latex이 아니고 pdflatex 등으로 보시면 됩니다.
texworks, texstudio는 에디터 입니다. .tex등을 편집하는 데 있어서 notepad를 쓰시는 분도 있습니다. 그러나 버튼들을 눌러서 컴파일 하는 것이 편리하므로 texworks, texstudio 등의 전용에디터를 많이 씁니다. 이 버튼을 누르면 뒤에서 latex 등이 실행되고 그 결과로 에러나 경고메시지, 또는 결과물인 pdf화일을 보여줍니다. 그러나 원하는 명령어 set가 미리 정의된 버튼이 없다면, 스스로 그 명령어들을 순서대로 실행되도록 에디터에 정의하여 넣거나, 아니면 명령 창 (명령 프람프트, 도스창, cmd창 등 여러 이름으로 불리우지만 CUI환경에서 명령을 입력할 수 있는 환경을 이야기 합니다. )에서 pdflatex source.tex , bibtex source.tex , pdflatex source.tex, pdflatex source.tex 순으로 명령을 입력하고 그 결과를 보시면서 작업 하시면 됩니다.
이런 과정이 귀찮을 경우 자동화하여 두는 방법이 있습니다. 위에서 돈가스사랑님이 말씀하셨는데 눈여겨 보시지 않고 지나치셨나 봅니다. latexmk 라는 명령입니다. 위의 돈가스사랑님께서 잘 설명하여 두셨으므로 다시 읽어 보시길 바랍니다. 물론 latexmk 등의 명령을 texworks 에 버튼으로 실행되도록 넣을 수도 있을 것입니다. 구글로 검색하여 보세요. ( texworks latexmk 로 검색하여 보셔도 결과가 나옵니다. ) 물론 texworks가 아닌 texstudio에서도 설정하는 방법이나 bibtex 명령이 포함된 일괄 실행 버튼을 찾아보시는 노력은 직접 해보시길 권합니다. ( texstuio latexmk, texstudio bibtex 으로만 검색하여 봐도 많은 결과가 있습니다. )
* "어차피 pdfLaTeX라는 것이 LaTeX sources를 PDF로 바꾸는 역할을 하는 것이고 매번 컴파일하면 당연히 PDF가 생성되는 것"은 사용하시는 texstudio에서 누르신 버튼에 미리 정의되어 있는 명령이 작성하신 소스에 에러나 경고 있더라도 무시하고 컴파일하여 부정확하더라도 일단 pdf화일을 내어 놓으라고 명령의 옵션들을 정의되어 있기 때문일 것입니다. 아마도 bibtex이 포함되어 정의된 명령어 버튼을 누르신 것이 아니거나, bibtex이 포함된 명령어 버튼이라도 에러가 나도 무시하고 컴파일한 pdf화일을 보여주었을 가능성이 있습니다. 에러와 워닝 메시지를 다시 살펴보세요.
** bibtex 보다 좀더 현대화된 방법도 위에 참조할 곳을 알려드렸습니다. onsagerian님의 질문글과 댓글들은 실행되는 명령들과 그 명령의 목적과 결과물, 에디터에 대한 이해가 부족하여 생긴 것이 많고, 제 글에 나오는 대부분의 이야기는 참조들을 살펴보셨으면 반복하시지 않으시거나 부정확하게 표현하시지 않으셨을 내용으로 생각하였습니다. 그래서 이미 충분한 답글이 달려 있어도 질문과 답글이 어긋나고 있다는 생각이 들어서 답글아닌 답글을 올려 봅니다.
*** http://www.ktug.org/xe/index.php?document_srl=243138 에 yihoze님께서 컴파일 순서 등에 대한 안내글을 올려주셨습니다. 참조하시길 바랍니다.
-
Progress
2020.04.17 11:23
onsagerian님, 궁금한 점을 새로운 질문으로 올려주기 바랍니다. 글타래가 길어지는 점도 있거니와 이 논의에 처음부터 참여하지 않은 다른 분들께서도 정확히 무엇이 궁금한지 잘 파악이 안 될 겁니다..
어쨌거나 부연하자면 앞서 noname 님께서 저렇게 말씀하셨잖아요?
> (pdf)latex test
> bibtex test
> (pdf)latex test1. 이것들을 명령행에서 컴파일하시면 원하는 결과를 얻을 수 있을 것이고요
2. 그러다가 1번이 좀 귀찮다고 느껴지시면 latexmk 또는 arara 를 쓰는 방법을 알아보기 바랍니다.
지금 에디터로 사용하고 있다는 texstudio에서 latexmk 또는 arara를 연동하여 실행하는 방법은 간단한 구글링으로 알아낼 수 있을 겁니다. -
onsagerian
2020.04.18 10:26
답변해주신 모든분들께 진심으로 감사드립니다. 제가 기본적인 용어와 메카니즘에 대한 이해가 부족한것이 근본원인이었던 것 같습니다. 또한, TexStudio에 PDFLatex와 BibTex같은 기능이 없는줄 알았는데, 찾아보니까 있더군요. 좀더 신중하지 못했던 것 죄송스럽게 생각하고, 아울러 이번기회를 통하여 보다 근본적인 문제에 대해 심도있게 공부하는 기회가 되었던 것을 의미있게 생각합니다.
-
관리자
2020.04.18 13:54
이 글은 http://www.ktug.org/xe/index.php?document_srl=243167 글로 이어집니다. 이후 댓글을 잠급니다.
제목 : 파일이 첨부되지 않습니다.
일자 : 2020.04.15 11:17
글쓴이 : onsagerian
안녕하세요.
다름이 아니라 Q&A에다 질문을 올리고, 파일을 첨부하려고 여러번 시도하였으나, 업로드가 되지를 않습니다. 최근에 올린것중에서 4월 9일에 시도한것은 파일에 제대로 업로드 되었는데, 그 이후에 두번은 올라가지를 않습니다. 어떻게 된건지 알고 싶습니다.
===
관리자) 자유글에 올려두신 글이나, 이 질문글과 관련있는 내용으로 판단하여, 댓글로 옮깁니다.