* Syntax for specifying image size in output latex
@ 2017-12-30 21:20 singular78
[not found] ` <0f1cad36-5e11-4703-bfae-42e6b89aa568-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: singular78 @ 2017-12-30 21:20 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 1130 bytes --]
## For example
1. input md:
```
![model](model.pdf){#fig:model width=30%}
```
2. output latex:
```
\hypertarget{fig:model}{%
\begin{figure}
\centering
\includegraphics[width=0.3\textwidth,height=\textheight]{model.pdf}
\caption{model}\label{fig:model}
\end{figure}
}
```
## Problem
Why it set `height=\textheight` as default at standalone mode? When I
compile the latex file with a IEEE or ACM latex template, the image is
stretched unless I remove the `height=\textheight`.
How can I get the latex without the default setting of`height=\textheight`?
--
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/0f1cad36-5e11-4703-bfae-42e6b89aa568%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[-- Attachment #1.2: Type: text/html, Size: 1780 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Syntax for specifying image size in output latex
[not found] ` <0f1cad36-5e11-4703-bfae-42e6b89aa568-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2017-12-31 23:23 ` John MacFarlane
2018-01-01 0:07 ` John MacFarlane
1 sibling, 0 replies; 4+ messages in thread
From: John MacFarlane @ 2017-12-31 23:23 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
Are you using the default template? It contains
\setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio}
which sets `keepaspectratio` as a default, so images
shouldn't be stretched out of proportion. Adding something
like this to your gtemplate should help.
I suppose we could add keepaspectratio to the
includegraphics options, but this would remove the user's
option of disabling it in the template.
+++ singular78 [Dec 30 17 13:20 ]:
> ## For example
> 1. input md:
> ```
> ![model](model.pdf){#fig:model width=30%}
> ```
> 2. output latex:
> ```
> \hypertarget{fig:model}{%
> \begin{figure}
> \centering
> \includegraphics[width=0.3\textwidth,height=\textheight]{model.pdf}
> \caption{model}\label{fig:model}
> \end{figure}
> }
> ```
> ## Problem
> Why it set `height=\textheight` as default at standalone mode? When I
> compile the latex file with a IEEE or ACM latex template, the image is
> stretched unless I remove the `height=\textheight`.
> How can I get the latex without the default setting
> of`height=\textheight`?
>
> --
> 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 [1]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To post to this group, send email to
> [2]pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit
> [3]https://groups.google.com/d/msgid/pandoc-discuss/0f1cad36-5e11-4703-
> bfae-42e6b89aa568%40googlegroups.com.
> For more options, visit [4]https://groups.google.com/d/optout.
>
>References
>
> 1. mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> 2. mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> 3. https://groups.google.com/d/msgid/pandoc-discuss/0f1cad36-5e11-4703-bfae-42e6b89aa568-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org?utm_medium=email&utm_source=footer
> 4. https://groups.google.com/d/optout
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Syntax for specifying image size in output latex
[not found] ` <0f1cad36-5e11-4703-bfae-42e6b89aa568-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2017-12-31 23:23 ` John MacFarlane
@ 2018-01-01 0:07 ` John MacFarlane
[not found] ` <20180101000719.GA37165-9Rnp8PDaXcadBw3G0RLmbRFnWt+6NQIA@public.gmane.org>
1 sibling, 1 reply; 4+ messages in thread
From: John MacFarlane @ 2018-01-01 0:07 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
PS. see this thread:
https://groups.google.com/d/msg/pandoc-discuss/I2u70EGe07A/g2jFjx-vAQAJ
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Syntax for specifying image size in output latex
[not found] ` <20180101000719.GA37165-9Rnp8PDaXcadBw3G0RLmbRFnWt+6NQIA@public.gmane.org>
@ 2018-01-03 3:03 ` singular78
0 siblings, 0 replies; 4+ messages in thread
From: singular78 @ 2018-01-03 3:03 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1: Type: text/plain, Size: 153 bytes --]
I use Pandoc with standalone mode, so there is no preamble in the generated latex file.
Now I remove `height=\textheight` using a sed script.
Thanks!
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-01-03 3:03 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-30 21:20 Syntax for specifying image size in output latex singular78
[not found] ` <0f1cad36-5e11-4703-bfae-42e6b89aa568-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2017-12-31 23:23 ` John MacFarlane
2018-01-01 0:07 ` John MacFarlane
[not found] ` <20180101000719.GA37165-9Rnp8PDaXcadBw3G0RLmbRFnWt+6NQIA@public.gmane.org>
2018-01-03 3:03 ` singular78
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).