From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/22633 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Tyler Makaro Newsgroups: gmane.text.pandoc Subject: Markdown -> LaTeX image formating Date: Fri, 26 Apr 2019 09:01:04 -0700 (PDT) Message-ID: <78284a32-0837-4ea2-afef-b629423c4132@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_841_590306340.1556294464356" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="98220"; mail-complaints-to="usenet@blaine.gmane.org" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCW4JDWG7YFRBQOWRTTAKGQEEWYL2YI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Apr 26 18:01:12 2019 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-ot1-f60.google.com ([209.85.210.60]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1hK3Hg-000PLa-KD for gtp-pandoc-discuss@m.gmane.org; Fri, 26 Apr 2019 18:01:08 +0200 Original-Received: by mail-ot1-f60.google.com with SMTP id 70sf1837511otn.15 for ; Fri, 26 Apr 2019 09:01:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=x5+8w1NHhHXvGsRJmMBYMbgim++7iGp/sU7gQNK7wJE=; b=M3l0cqwOKrpttNcZ7Spa8sieUtfI1UBgauWCjw9amc9dCIPDnG6BcgSY4vFjTyJLb7 GuHHIIEXZd9+lGgDFpVT+QM3C4yUJ8fp6Xe2p2GwrRV/apg1tHBN5BT6MWUHDWBlXmTf Tbh9SYuGVqAXMmEoU66yrPpPrxs5b2bDIpCtEL/5IJJ+VGDFRa5ukr20ZTwObE8p9MQJ LCsvKeUZWPMv1eE4prbl3uaKCmvz1+mgB/OV8pJNITM58eQ+xZd6Ob8WpSTEyB0Fo6EM NifP8ZF0q8f53X+q7MsAQy07Bpxbxu6L6HBMy80gFxcoPclCD3995FDP/QfdktOcTttQ VBaA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:subject:mime-version:x-original-sender :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=x5+8w1NHhHXvGsRJmMBYMbgim++7iGp/sU7gQNK7wJE=; b=STSPIa8yAhSQAptEHtFDAnoiHoPjmX7bNni/ZEdBHQ/ChPjOsVB/6CTM5AHar2fZSA mMOz1l939jcCkUiza1Um7gGs8iqlIBxtVTXHARh+TtJtmmKD1fkm540wZIc8YnHk+1p5 gojuYhJKKr0c9PV2deCv4iSROvK6rskgn51MR5XqrngYb2jI+SZLVrtIO7eMX0XhIAt7 V0dSV5LbiIblnC8x5iDdKqzRZC36GeShSLeUuxxjTx5ORvk/Uyp5vQ24pWIOeuulokK6 7H8iaKlJQqNluK4GpoR6xaXDX7gNcnrlgI129A+FIFahlfxfax1kERgfKu2dnf/uvawf F2kw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=x5+8w1NHhHXvGsRJmMBYMbgim++7iGp/sU7gQNK7wJE=; b=nIpxUXpaa5WFxt/Wji9B0vWVfqwEOtNLRrtHUp3zBfFnV8aWQUmV1Fv6AYAzVnKbAI HMizWeSEsJCtDYy8bEO6BoWmZKQot+JaAZleF/Bf/ZvNmujSlOnyymhEip7RUqpLflYW M7gUdz+HGYL3WHanREZ0IpE9aIv8JN7fBCJlqwe/sdXcKwb61mBVEH3gwGixTKa3GTdI m4wQltVHMpUcuAMPqySWUCKOn8R1lrVs93FwyRIzQOh7VRDBq1BRg3rt+1w4fNeWKuMm ZXheYFvGzTbFL+DbhM/yrhedHZ+vNiZM0TOKOW27Zcd7jVRzGaZozUs+Qo1MW5FRzOsu TAgw== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: APjAAAVrqf3vGBPrnE0EetaMkGAx24Xdm81dFGXyLwi6uwPbOL40yNmA H2YGBt1Dn/gVIXAlb0ekonI= X-Google-Smtp-Source: APXvYqy8MsFRcDrvwPfd0TUpI1Ze62tnA2SMQ8cOOEz6MyFafcb1Y12dXyXHYveCBGrnKlUsMi8dUA== X-Received: by 2002:a05:6808:6cd:: with SMTP id m13mr2559987oih.170.1556294466891; Fri, 26 Apr 2019 09:01:06 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aca:37c4:: with SMTP id e187ls805061oia.13.gmail; Fri, 26 Apr 2019 09:01:05 -0700 (PDT) X-Received: by 2002:aca:e64f:: with SMTP id d76mr8023076oih.105.1556294465224; Fri, 26 Apr 2019 09:01:05 -0700 (PDT) X-Original-Sender: DragonCurvePC-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:22633 Archived-At: ------=_Part_841_590306340.1556294464356 Content-Type: multipart/alternative; boundary="----=_Part_842_194231836.1556294464357" ------=_Part_842_194231836.1556294464357 Content-Type: text/plain; charset="UTF-8" AFAIK, I can either disable or enable the implicit-figures extension, but neither of these fully get the style that I need when converting to latex from markdown. With the implicit-figures extension enabled, alt-text is used as a caption, which I don't want (and not all images are considered implicit-images). Without the extension, the images are not centered, but I want them centered. I want all markdown images to be converted to latex like: \begin{center} \adjustimage{max size={0.9\linewidth}{0.9\paperheight}}{((( filename )))} \end{center} { \hspace*{\fill} \\} I am currently working on a fix in nbconvert . The above code is part of a jinja2 macro that nbconvert uses to format image outputs. I'd like markdown images to behave the same way. Is there any way to do this? -- 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/78284a32-0837-4ea2-afef-b629423c4132%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. ------=_Part_842_194231836.1556294464357 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
AFAIK, I can either disable or enable the implicit-fi= gures extension, but neither of these fully get the style that I need when = converting to latex from markdown. With the implicit-figures extension enab= led, alt-text is used as a caption, which I don't want (and not all ima= ges are considered implicit-images). Without the extension, the images are = not centered, but I want them centered. I want all markdown images to be co= nverted to latex like:
\begin{center}
\adjustimage{max size=3D{0.9\linewidth}{0.9\}}{((( = filename )= ))}
\end
{center}
= { \hspace*{\} \\}
I am currently working on a fix in=C2=A0nbconvert. The above code is part = of a jinja2 macro that nbconvert uses to format image outputs. I'd like= markdown images to behave the same way. Is there any way to do this?
=


<= br>





--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/= msgid/pandoc-discuss/78284a32-0837-4ea2-afef-b629423c4132%40googlegroups.co= m.
For more options, visit http= s://groups.google.com/d/optout.
------=_Part_842_194231836.1556294464357-- ------=_Part_841_590306340.1556294464356--