Re: Define Latex packages in reST file

Guenter Milde <[email protected]>
Newsgroups gmane.text.docutils.user
Message-ID <[email protected]>
On 2015-09-01, engelbert gruber wrote:
> On 1 September 2015 at 09:43, Masood Azizi <[email protected]> wrote:

...
>> But I do not know where to add packages like \usepackage{tabulary}.

>> If I add it in the rst file like I've shown above, even in the very
>> beginning, this \usepackage line is automatically added after
>> \begin{document} in the tex output file. This obviously generates an error.

>> Any idea where can I add \usepackage commands in reST?

Currently, preamble code must be added in a configuration file or command
line option.

See http://docutils.sourceforge.net/docs/user/config.html
and look for

> latex_preamble or stylesheet


(BTW: there is a long-standing issue/discussion about allowing preamble code
in an rST document, see http://docutils.sourceforge.net/docs/dev/todo.html

  misc.raw: add a "destination" option to the "raw" directive?
  
  .. raw:: html
     :destination: head
  
     <link ...>
  
  It needs thought & discussion though, to come up with a consistent set of
  destination labels and consistent behavior.


Günter


------------------------------------------------------------------------------
_______________________________________________
Docutils-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/docutils-users

Please use "Reply All" to reply to the list.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.