Org-Mode에서 코멘트 라인.

lazycoder의 이미지

Org-Mode의 메뉴얼에는 #+BEGIN_COMMENT ... #+END_COMMENT 블럭안의 내용은 export되지 않는다고 했는데 html로 publishing을 해보면 내용에 포함되어 나타납니다. 메뉴얼이 잘못되었을리는 없고.. 예외사항이 있나요?

cinsk의 이미지

혹시, 매뉴얼과 설치된 org-mode의 버전이 맞는지 확인해 보셨나요?

org-mode의 버전은 org-mode 로드 후에, "M-: org-version"으로 확인할 수 있습니다.

--
C FAQ: http://www.eskimo.com/~scs/C-faq/top.html
Korean Ver: http://www.cinsk.org/cfaqs/

lazycoder의 이미지

메뉴얼은 6.29b 인데요. http://orgmode.org/manual/Comment-lines.html#Comment-lines
제가 쓰는 버전을 확인해보니 6.28e 이지만 주석 블럭이 export에 포함되는게 버전 문제는 아닐듯 한데요.

TODO 내용중 일부입니다.

* DB 설계검증 업무에 대한 TODO 리스트
  어쩌구 저쩌구..
  #+BEGIN_COMMENT
  이 곳은 출판되지 않을 것이므로 욕좀 쓰자.
  #+END_COMMENT
** TODO 테스트 UI 설계
** TODO 테스트 저장프로시저 작성
*** TODO 실무자 검증
...
lazycoder의 이미지

#+BEGIN_COMMENT 이 곳은 출판되지 않을 것이므로 욕좀 쓰자.
#+END_COMMENT

이렇게 하면 안나타나긴 하는데 블럭 효과때문이 아니라 '#'문자로 시작하는 라인은 원래 주석라인으로 인식되니까 export가 안된거고.. 주석블럭이 왜 안먹히는걸까요?

hermian의 이미지

#+앞에 공백이 있다면 한번 지워보시죠.
즉 맨 첫열에 #이 위치하도록...

lazycoder의 이미지

네. 그렇게 했지만 출력이 되네요.
orgmode도 최신 버전으로 설치했습니다.

작성한 코드

* 테스트
#+BEGIN_COMMENT
  이 문장은 출력되지 않는다.
#+END_COMMENT

출력된 html 소스.

<p>이 문장은 출력되지 않는다.
</p>
cinsk의 이미지

저는 5.x 대 org만 써 와서 해당 기능을 써 본 적이 없습니다. 잠깐 upgrade해서 써 보니, 말씀하신 것처럼 안되는군요. 시간이 없어서 설정을 잘못한 것인지 bug인지는 알아보지 못했습니다.

시간이 있다면 여기를 통해서 보고하면 도움을 받을 수 있을 겁니다.

--
C FAQ: http://www.eskimo.com/~scs/C-faq/top.html
Korean Ver: http://www.cinsk.org/cfaqs/

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.