public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Detailed influences on Pandoc LaTeX output
@ 2013-01-28 10:14 oelauge
       [not found] ` <0be5d0c2-f9c1-4de7-9fb0-94856bf9b000-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: oelauge @ 2013-01-28 10:14 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

[-- Attachment #1: Type: text/plain, Size: 1152 bytes --]

With custom templates i have influences on the general output.

But i need a customising in detail on some parameters, e.g. the "figure" 
element for pictures in LaTeX.
Pandoc generate for pictures the following output:

\begin{figure}[htbp]
  \centering
  \fbox{
    \includegraphics{filename}
  }
  \caption{Titel}
  \label{Labelname}
\end{figure}


In some situations, the place of the picture is not the right one like 
defined. Here you can say to LaTeX with the parameter:

\begin{figure}[H]

It is a must have to place the picture at the defined place.

This means, that you have a direct influence on the Pandoc output, but how?

Thank you


 

-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msg/pandoc-discuss/-/fsAcgMyIzFEJ.
For more options, visit https://groups.google.com/groups/opt_out.



[-- Attachment #2: Type: text/html, Size: 1423 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Detailed influences on Pandoc LaTeX output
       [not found] ` <0be5d0c2-f9c1-4de7-9fb0-94856bf9b000-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2013-01-28 14:08   ` Paul M.
       [not found]     ` <CABoaWcW2=K8OOO=GhwCJ5jjF0PWffbS1NQyy75nNT4t_yWLoqQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  2013-01-28 17:55   ` John MacFarlane
  1 sibling, 1 reply; 5+ messages in thread
From: Paul M. @ 2013-01-28 14:08 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

You can customize output by writing scripts or filters that use the
Pandoc API.  See: http://johnmacfarlane.net/pandoc/scripting.html

Here's a simple example of a filter from an earlier exchange:

http://tex.stackexchange.com/questions/44749/how-to-change-emphasis-commands-in-pandocs-latex-template

You should be able to do something similar to customize the figure environment.

--Paul



On Mon, Jan 28, 2013 at 5:14 AM, oelauge <oelauge-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> With custom templates i have influences on the general output.
>
> But i need a customising in detail on some parameters, e.g. the "figure"
> element for pictures in LaTeX.
> Pandoc generate for pictures the following output:
>
> \begin{figure}[htbp]
>   \centering
>   \fbox{
>     \includegraphics{filename}
>   }
>   \caption{Titel}
>   \label{Labelname}
> \end{figure}
>
>
> In some situations, the place of the picture is not the right one like
> defined. Here you can say to LaTeX with the parameter:
>
> \begin{figure}[H]
>
> It is a must have to place the picture at the defined place.
>
> This means, that you have a direct influence on the Pandoc output, but how?
>
> Thank you
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "pandoc-discuss" group.
> To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To unsubscribe from this group, send email to
> pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit
> https://groups.google.com/d/msg/pandoc-discuss/-/fsAcgMyIzFEJ.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Detailed influences on Pandoc LaTeX output
       [not found] ` <0be5d0c2-f9c1-4de7-9fb0-94856bf9b000-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  2013-01-28 14:08   ` Paul M.
@ 2013-01-28 17:55   ` John MacFarlane
  1 sibling, 0 replies; 5+ messages in thread
From: John MacFarlane @ 2013-01-28 17:55 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

There's no way to do this currently.

+++ oelauge [Jan 28 13 02:14 ]:
>    With custom templates i have influences on the general output.
>    But i need a customising in detail on some parameters, e.g. the
>    "figure" element for pictures in LaTeX.
>    Pandoc generate for pictures the following output:
> \begin{figure}[htbp]
>   \centering
>   \fbox{
>     \includegraphics{filename}
>   }
>   \caption{Titel}
>   \label{Labelname}
> \end{figure}
> 
>    In some situations, the place of the picture is not the right one like
>    defined. Here you can say to LaTeX with the parameter:
> \begin{figure}[H]
> It is a must have to place the picture at the defined place.
> This means, that you have a direct influence on the Pandoc output, but how?
> Thank you
> 
> 
>    --
>    You received this message because you are subscribed to the Google
>    Groups "pandoc-discuss" group.
>    To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>    To unsubscribe from this group, send email to
>    pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>    To view this discussion on the web visit
>    [1]https://groups.google.com/d/msg/pandoc-discuss/-/fsAcgMyIzFEJ.
>    For more options, visit [2]https://groups.google.com/groups/opt_out.
> 
> References
> 
>    1. https://groups.google.com/d/msg/pandoc-discuss/-/fsAcgMyIzFEJ
>    2. https://groups.google.com/groups/opt_out


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Detailed influences on Pandoc LaTeX output
       [not found]     ` <CABoaWcW2=K8OOO=GhwCJ5jjF0PWffbS1NQyy75nNT4t_yWLoqQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2014-12-10 22:20       ` Samuel Johnson
       [not found]         ` <2eb93208-f284-451f-a446-311f3f834a3d-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Samuel Johnson @ 2014-12-10 22:20 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw


[-- Attachment #1.1: Type: text/plain, Size: 3293 bytes --]

I'm encountering a similar situation. While the solution you propose, Paul, 
is viable, is there a reason why it wouldn't be preferable for the default 
output to be:

\begin{figure}[]
  \centering
  \fbox{
    \includegraphics{filename}
  }
  \caption{Titel}
  \label{Labelname}
\end{figure}


and then have something in the default.latex file like:

\makeatletter
  \def\fps@figure{ht}
\makeatother


which would have the same effect, but could be overridden? I'm relatively new to Pandoc, so I'm not sure if that violates some design principle, but it doesn't look like it would be a difficult fix to make, if that's something that the community would accept.


--Samuel


On Monday, January 28, 2013 9:08:46 AM UTC-5, pmags wrote:
>
> You can customize output by writing scripts or filters that use the 
> Pandoc API.  See: http://johnmacfarlane.net/pandoc/scripting.html 
>
> Here's a simple example of a filter from an earlier exchange: 
>
>
> http://tex.stackexchange.com/questions/44749/how-to-change-emphasis-commands-in-pandocs-latex-template 
>
> You should be able to do something similar to customize the figure 
> environment. 
>
> --Paul 
>
>
>
> On Mon, Jan 28, 2013 at 5:14 AM, oelauge <oel...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <javascript:>> 
> wrote: 
> > With custom templates i have influences on the general output. 
> > 
> > But i need a customising in detail on some parameters, e.g. the "figure" 
> > element for pictures in LaTeX. 
> > Pandoc generate for pictures the following output: 
> > 
> > \begin{figure}[htbp] 
> >   \centering 
> >   \fbox{ 
> >     \includegraphics{filename} 
> >   } 
> >   \caption{Titel} 
> >   \label{Labelname} 
> > \end{figure} 
> > 
> > 
> > In some situations, the place of the picture is not the right one like 
> > defined. Here you can say to LaTeX with the parameter: 
> > 
> > \begin{figure}[H] 
> > 
> > It is a must have to place the picture at the defined place. 
> > 
> > This means, that you have a direct influence on the Pandoc output, but 
> how? 
> > 
> > Thank you 
> > 
> > 
> > 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups 
> > "pandoc-discuss" group. 
> > To post to this group, send email to pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org 
> <javascript:>. 
> > To unsubscribe from this group, send email to 
> > pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <javascript:>. 
> > To view this discussion on the web visit 
> > https://groups.google.com/d/msg/pandoc-discuss/-/fsAcgMyIzFEJ. 
> > For more options, visit https://groups.google.com/groups/opt_out. 
> > 
> > 
>

-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/2eb93208-f284-451f-a446-311f3f834a3d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #1.2: Type: text/html, Size: 6748 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Detailed influences on Pandoc LaTeX output
       [not found]         ` <2eb93208-f284-451f-a446-311f3f834a3d-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2014-12-11  1:22           ` John MacFarlane
  0 siblings, 0 replies; 5+ messages in thread
From: John MacFarlane @ 2014-12-11  1:22 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

Nice suggestion.  In general I like pandoc's latex output to be
as "vanilla" as possible, so that pandoc can be used for generating
fragments and doesn't presuppose lots of special definitions in the
preamble.  (I realize that this often conflicts with customizability.)

So the predictable question is:  what happens with your recommended
output if someone doesn't have the special definition in their preamble?
(That is, how does LaTeX treat the \begin{figure} if no placement
specifiers are given?)  If the default is okay, even without the
special stuff in the preamble, then this seems a good solution.

+++ Samuel Johnson [Dec 10 14 14:20 ]:
>I'm encountering a similar situation. While the solution you propose, Paul,
>is viable, is there a reason why it wouldn't be preferable for the default
>output to be:
>
>\begin{figure}[]
>  \centering
>  \fbox{
>    \includegraphics{filename}
>  }
>  \caption{Titel}
>  \label{Labelname}
>\end{figure}
>
>
>and then have something in the default.latex file like:
>
>\makeatletter
>  \def\fps@figure{ht}
>\makeatother
>
>
>which would have the same effect, but could be overridden? I'm relatively new to Pandoc, so I'm not sure if that violates some design principle, but it doesn't look like it would be a difficult fix to make, if that's something that the community would accept.
>
>
>--Samuel
>
>
>On Monday, January 28, 2013 9:08:46 AM UTC-5, pmags wrote:
>>
>> You can customize output by writing scripts or filters that use the
>> Pandoc API.  See: http://johnmacfarlane.net/pandoc/scripting.html
>>
>> Here's a simple example of a filter from an earlier exchange:
>>
>>
>> http://tex.stackexchange.com/questions/44749/how-to-change-emphasis-commands-in-pandocs-latex-template
>>
>> You should be able to do something similar to customize the figure
>> environment.
>>
>> --Paul
>>
>>
>>
>> On Mon, Jan 28, 2013 at 5:14 AM, oelauge <oel...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <javascript:>>
>> wrote:
>> > With custom templates i have influences on the general output.
>> >
>> > But i need a customising in detail on some parameters, e.g. the "figure"
>> > element for pictures in LaTeX.
>> > Pandoc generate for pictures the following output:
>> >
>> > \begin{figure}[htbp]
>> >   \centering
>> >   \fbox{
>> >     \includegraphics{filename}
>> >   }
>> >   \caption{Titel}
>> >   \label{Labelname}
>> > \end{figure}
>> >
>> >
>> > In some situations, the place of the picture is not the right one like
>> > defined. Here you can say to LaTeX with the parameter:
>> >
>> > \begin{figure}[H]
>> >
>> > It is a must have to place the picture at the defined place.
>> >
>> > This means, that you have a direct influence on the Pandoc output, but
>> how?
>> >
>> > Thank you
>> >
>> >
>> >
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> Groups
>> > "pandoc-discuss" group.
>> > To post to this group, send email to pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
>> <javascript:>.
>> > To unsubscribe from this group, send email to
>> > pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <javascript:>.
>> > To view this discussion on the web visit
>> > https://groups.google.com/d/msg/pandoc-discuss/-/fsAcgMyIzFEJ.
>> > For more options, visit https://groups.google.com/groups/opt_out.
>> >
>> >
>>
>
>-- 
>You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
>To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/2eb93208-f284-451f-a446-311f3f834a3d%40googlegroups.com.
>For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/20141211012207.GB79781%40localhost.hsd1.ca.comcast.net.
For more options, visit https://groups.google.com/d/optout.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-12-11  1:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-28 10:14 Detailed influences on Pandoc LaTeX output oelauge
     [not found] ` <0be5d0c2-f9c1-4de7-9fb0-94856bf9b000-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2013-01-28 14:08   ` Paul M.
     [not found]     ` <CABoaWcW2=K8OOO=GhwCJ5jjF0PWffbS1NQyy75nNT4t_yWLoqQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-12-10 22:20       ` Samuel Johnson
     [not found]         ` <2eb93208-f284-451f-a446-311f3f834a3d-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2014-12-11  1:22           ` John MacFarlane
2013-01-28 17:55   ` John MacFarlane

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).