Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LaTeX output: more complete version #98

Closed
gromain opened this issue Jan 18, 2016 · 5 comments
Closed

LaTeX output: more complete version #98

gromain opened this issue Jan 18, 2016 · 5 comments

Comments

@gromain
Copy link

gromain commented Jan 18, 2016

I was wondering if the LaTeX output should include the necessary header for the file to compile directly with LaTeX interpretor.
Right now, there is now \begindocument and more importantly, the necessary \includepackage are not documented anywhere.
I think cmark LaTeX output would benefit from either of the two solutions:

  • Better documentation around what's included in the ouput and what is not
  • Including the actual needed part in the output

Or both!

Is there anyone working on the subject? Maybe I can try to tacle it!

Thoughts?

@jgm
Copy link
Member

jgm commented Jan 18, 2016

The LaTeX output is like the HTML and man output -- it's a
document fragment, which needs the necessary header and
footer. This could be stated more clearly in the README.
I wouldn't want to change the behavior, since it's often
very useful to generate a fragment, and people's needs with
document headers tend to vary quite a bit.

It would also be helpful to document which LaTeX packages
are required. If you want to suggest some revisions to
the README, please feel free.

You might also check out my project jgm/lcmark, which uses
libcmark but adds templates, YAML metadata, and filters
written in lua.

+++ Romain Bazile [Jan 18 16 05:22 ]:

I was wondering if the LaTeX output should include the necessary header
for the file to compile directly with LaTeX interpretor
Right now, there is now \begindocument and more importantly, the
necessary \includepackage are not documented anywhere
I think cmark LaTeX output would benefit from either of the two
solutions:
* Better documentation around what's included in the ouput and what
is not
* Including the actual needed part in the output

Or both!

Is there anyone working on the subject? Maybe I can try to tacle it!

Thoughts?


Reply to this email directly or [1]view it on GitHub.

References

  1. LaTeX output: more complete version #98

@gromain
Copy link
Author

gromain commented Jan 18, 2016

I do agree this is probably better than trying to find a one size fits all thing that probably won't work.
I'll fork your repo and send a pull request with an updated README that makes it clearer!
What do you think (apart from what we just discussed) could be improved regarding the README or the documentation overall? Are there any elements missing you think could be added or any part where I could put my eyes on and try and improve them?

@jgm
Copy link
Member

jgm commented Jan 18, 2016

+++ Romain Bazile [Jan 18 16 09:31 ]:

I do agree this is probably better than trying to find a one size fits
all thing that probably won't work.
I'll fork your repo and send a pull request with an updated README that
makes it clearer!
What do you think (apart from what we just discussed) could be improved
regarding the README or the documentation overall? Are there any
elements missing you think could be added or any part where I could put
my eyes on and try and improve them?

Nothing else I can think of. Note that the main
documentation for the command line program and lib
is in the man pages: man/man1/cmark.1 and man/man3/cmark.3.

@gromain
Copy link
Author

gromain commented Jan 18, 2016

So maybe I should include modifications to those too, to be consistent and complete?

@jgm
Copy link
Member

jgm commented Jan 18, 2016

Yes, it may be that some of these things belong in the man pages rather than the README.md (or in addition -- though I'd like to avoid having the same content in multiple places).

Note that the cmark.3 man page is generated automatically from comments in cmark.h, so you shouldn't modify it manually in the repository.

@jgm jgm closed this as completed Mar 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants