[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1019000: pandoc: LaTeX Error: Environment Shaded undefined.



Quoting Johannes Schauer Marin Rodrigues (2022-09-03 17:37:29)
> Quoting Jonas Smedegaard (2022-09-03 16:54:53)
> > If you want to explore stepwise what is happening between your
> > 
> >   echo ".. code-block:: none" | pandoc -o out.tex -frst
> > 
> > and my
> > 
> >   echo ".. code-block:: none" | pandoc -o out.pdf -frst
> > 
> > then you are probably helped by addding option "--standalone":
> > 
> >   echo ".. code-block:: none" | pandoc -o out.tex -frst --standalone
> 
> Bingo! Using the --standalone option to pandoc indeed made it generate the
> definition for the Highlighting and Verbatim environments.
> 
> Is there a way to tell pandoc to just give me the preamble
> that --standalone produces so that nothing breaks the next
> time pandoc is updated?

There is no command-line option for pandoc to get more finegrained
templating components.  If you want to programmatically query in more
detail, then you need to interact with the underlying Haskell library
"skylighting" as mentioned in my previous post (which it seems I
accidentally didn't cc you - sorry about that!).


> Anyways, not pandoc's fault, so closing this bug.

Happy that it got solved.  Have a nice weekend!


 - Jonas

-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private

Attachment: signature.asc
Description: signature


Reply to: