참고문헌을 편집할 때 ',' 또는 '}' 오류가 발생할 것으로 예상했습니다.

참고문헌을 편집할 때 ',' 또는 '}' 오류가 발생할 것으로 예상했습니다.

다음 bib 파일을 컴파일하려고 합니다.

   @article {Conway10612,
    author = {Conway, J. H. and Torquato, S.},
    title = {Packing, tiling, and covering with tetrahedra},
    volume = {103},
    number = {28},
    pages = {10612--10617},
    year = {2006},
    doi = {10.1073/pnas.0601389103},
    publisher = {National Academy of Sciences},
    abstract = {It is well known that three-dimensional Euclidean space cannot be tiled by regular tetrahedra. But how well can we do? In this work, we give several constructions that may answer the various senses of this question. In so doing, we provide some solutions to packing, tiling, and covering problems of tetrahedra. Our results suggest that the regular tetrahedron may not be able to pack as densely as the sphere, which would contradict a conjecture of Ulam. The regular tetrahedron might even be the convex body having the smallest possible packing density.},
    issn = {0027-8424},
    URL = {https://www.pnas.org/content/103/28/10612},
    eprint = {https://www.pnas.org/content/103/28/10612.full.pdf},
    journal = {Proceedings of the National Academy of Sciences}
}

@book{cite-key,
    Address = {New York},
    Annote = {Bibliography: p. {$[$}335{$]$}-336.},
    Author = {Rudin, Walter},
    Date-Added = {2020-11-10 00:19:08 -0500},
    Date-Modified = {2020-11-10 00:19:08 -0500},
    Et = {3d ed..},
    Id = {01HOLLINS{\_}ALMA2160070510003751},
    Keywords = {Mathematical analysis},
    Publisher = {New York : McGraw-Hill},
    Title = {Principles of mathematical analysis},
    Ty = {BOOK},
    Year = {1976}
    }

@misc{wolfram blog, 
    title={Tetrahedra Packing}, url={https://blog.wolfram.com/2010/08/30/tetrahedra-packing/}, 
    journal={Wolfram Blog}
    }

@misc{my geometry project, 
    title={Polyhedrons Lesson}, url={https://reginageomfinproj.weebly.com/polyhedrons-lesson.html}, 
    journal={My geometry project}
    }
    
@misc{american mathematical society, 
    title={AMS :: Feature Column :: Packing Tetrahedra}, 
    url={http://www.ams.org/publicoutreach/feature-column/fc-2012-11}, 
    journal={American Mathematical Society}
    } 

@misc{madeel_madeelmadeel15166 bronze badges_crococroco5_1966, 
    title={Drawing 3D lattice using TikZ}, 
    url={https://tex.stackexchange.com/questions/380828/drawing-3d-lattice-using-tikz}, 
    journal={TeX}, 
    author={Madeel and madeelmadeel15166 bronze badges and CroCoCroCo5}, 
    year={1966}, 
    month={Oct}
    } 

@misc{how do you translate a function?, 
    title={How Do You Translate a Function?: Printable Summary: Virtual Nerd},
    url={https://virtualnerd.com/worksheetHelper.php?tutID=Alg2_02_01_0006}, 
    journal={How Do You Translate a Function? | Printable Summary | Virtual Nerd}
    } 

파일을 컴파일하려고 하면 처음 두 인용을 제외한 모든 인용에 다음과 같은 오류가 발생합니다.

I was expecting a ',' or a '}'

턱받이 파일에서 오류를 찾을 수 없습니다. 누군가 이 오류를 해결할 수 있는 방법을 제안해 주실 수 있나요?

답변1

\jobname.blg파일 (메인 tex 파일의 이름은 어디에 있습니까?) 의 오류 메시지를 보면 \jobname모든 오류가 항목 키의 공백 존재와 관련되어 있음을 알 수 있습니다. 예를 들어, bib 파일의 세 번째 항목에 대해 다음과 같은 오류 메시지가 나타납니다.

  I was expecting a `,' or a `}'---line 36 of file mybib.bib
     : @misc{wolfram 
     :               blog,
  I'm skipping whatever remains of this entry

(여담: 귀하의 게시물에는 오류 메시지의 연속 4줄 중 첫 번째 줄만 표시되었습니다.)

BibTeX는~ 아니다항목 키에 공백을 허용합니다. 그렇기 때문에 wolfram blog오류가 발생합니다. BibTeX가 공백을 처리한 후에는 wolfram쉼표(일반적인 경우) 또는 }항목을 완전히 종료하는 문자가 발생할 것으로 예상됩니다. 아마도 일반적이지는 않지만 구문론적으로 말하면 여전히 유효합니다. 대신 "블로그"를 만나 오류 메시지를 표시할 수밖에 없습니다.

치료법? 하다~ 아니다항목 키에 공백을 사용하십시오.

관련 정보