From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/23306 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: from Latex to Word adding new package Date: Mon, 26 Aug 2019 09:03:17 -0700 Message-ID: References: <148055b7-05a4-4ecd-9527-464cb1308518@googlegroups.com> <5fcaa4c1-5956-407d-9243-5e73df894b14@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="177605"; mail-complaints-to="usenet@blaine.gmane.org" To: =?utf-8?B?5ZC05bCP5a6J?= , pandoc-discuss Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBUMFSDVQKGQESRY7JZY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Aug 26 18:03:33 2019 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-pg1-f188.google.com ([209.85.215.188]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1i2HSu-000k4c-LM for gtp-pandoc-discuss@m.gmane.org; Mon, 26 Aug 2019 18:03:33 +0200 Original-Received: by mail-pg1-f188.google.com with SMTP id z35sf9985835pgk.10 for ; Mon, 26 Aug 2019 09:03:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1566835410; cv=pass; d=google.com; s=arc-20160816; b=XUXdpd7AhX5MQOdJKBqP237bxsbtIebjmOttayoCbiVvowAP5s2ADKHQeHf+KTValm V6z9DAsC9oKntNwoJb9lJixwY0KgYEJqAlezu3rQBhUKeQLBfMfdFjlB9fJM3EfqFXCc jXbeCsGYMeu9sP43ko4L4d4aiB9c3TXBGiJccCeyop6d3sdbXOpsjk8MMk4sCmvS5MpZ 5V1yJ/O+TSaQnHkRAjlhfawYJDUM8ssOsr5jfl3P6fuU28ESMKvrlzdsfON4SMBTiT3Q AfhOXqyGVHOkRCwCrDJ5aAn/dECgYYh4EgmnxNW3m0X6kABDbzVKyVwepV51cB+k42OT xE+g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:content-transfer-encoding :mime-version:message-id:date:references:in-reply-to:subject:to:from :sender:dkim-signature; bh=VmyNJ2Q/We/KxfhvMwlD5eViIDSAZ5PKcVEBBtvQTdE=; b=b5c3yx+mN35RkPhjKnPRKBI/QLf0H1Pcfy4hbwdbtYjL6BgInSzNGg9Ns8NiCnln5C uVRcduMjU4Ac5eB0WlsDjCgDUARQbadUDOf7BSBOwnC2CBhu42Uy6Iwlfvq7w4aF0qZl 8dN3YEce1Av2lVQjufUIupCt1tPYRBtS+WQLBW5VxqmGE7YVJ4BQHzU4lU7rVobzztjl rlJhZB8GfuYuF0rpkXjaRcISTA+AMBfzJiY2Gews2oMh6fEB/E6c4w/W20Ow+VyFkOTn 2GIVjmYHCVzbPoaU6h/oB5D6NpTfONoktI4uSdutST9cp65RGf6AruRbih0Yk/UjdpP/ fOWw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=MfwpndPC; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::434 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=VmyNJ2Q/We/KxfhvMwlD5eViIDSAZ5PKcVEBBtvQTdE=; b=hdVqZUfGIPWYDwz8OEEdoaIZce+T88q+nCClIBSLRN3srn1Sy+LZoAjOk/D7GzNseG X3gW5bHc0ayet+al5ADSPWOqUwH2MvlYwH6H/rebdEGpZe7dXQ6BgIqmRWpeHYPBkC8z LLOLsHCEUbBwqm6eb+n22rPXd9UIhmImK4Ahba50xLvxYm15km7/SU4+lw4xGvjx6D5s BxGlmHNOKBFgAyvPUsiwQUt03M4BEGrIzFxKLwsYyyXFHQQXFsfI3oUsKWpSD17nMumx 9QHfPLYZK+v1qxNzF77dKTk/wOEWbw9idAI2Eamgp3tD1sXBg+LwYk7AqCD3RPqsWo80 hxHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:subject:in-reply-to:references :date:message-id:mime-version:content-transfer-encoding :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=VmyNJ2Q/We/KxfhvMwlD5eViIDSAZ5PKcVEBBtvQTdE=; b=O/2pSbeDT5+z/D//auK5f6j2nx9NlbRcF23Z1uxtdn4yC7cl5JITHxNe3iaQ7wz9z/ t53AsXqLddVjXOMOHtKLqdjCTjPQYZTrftq6cYV2/g+5aQnecjxaGVKNxxG8P+drya7d GPV96rWcgMyKaSp8qPVrKzPDYGPpa2I7cLrmXuEG0ETohSz8dB+sN6i/OygUxxxcZfRD E42+t5HhgF70frnjXSOYw9mUax+ljebKVQHGftOe8lOFoG575BD4mKVPu25vCr3Dh8q7 mw5Uk0ADx8AWT4OxRzbnS2UjgFOq9snQyfUvuK2ron/4Mr70dL9UrhhUHsrQb5wx64co Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: APjAAAWQt42TyzCa7nV+ADBO7h+FJu+MAl7gt8unHq8UgVPDISZLz6zI RVb3Ojp5fze+8/PyaV8fLnE= X-Google-Smtp-Source: APXvYqzWAUMNsTeEXF9mJBtJC5/EEfdRJsSjl5WgbpCTkpNfLOi7VhWS8gi9BMAlkb2j2PvHD4wz0g== X-Received: by 2002:aa7:8dc9:: with SMTP id j9mr14414011pfr.233.1566835410659; Mon, 26 Aug 2019 09:03:30 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a63:3fcf:: with SMTP id m198ls3750754pga.10.gmail; Mon, 26 Aug 2019 09:03:29 -0700 (PDT) X-Received: by 2002:a65:6259:: with SMTP id q25mr6950419pgv.145.1566835409540; Mon, 26 Aug 2019 09:03:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566835409; cv=none; d=google.com; s=arc-20160816; b=GQNzpVG7aTTyr1mpce3Ir3Y86O6HEhkWMO3VmWoHIJ3tMW6FFmSRni4FTdIfukgYr/ KVp6q/IkpoWmkjTykb9QsRZN5880ecV6O8lOJqdBfO5Ybip5A8xMsNjAroM4O9ITvqMZ EqjlnX3r+DbQskHagdlEh6tfRn3rcxCuKf56EX/R7GfI5U3C7R8AaSjl9O4N2FXZAUe6 5mosnjhf2H5BH6SP+Nte3xrYC0+O9wgyNmmG3sVjUJFnGIokk7VKewmVEY688hNQdfgV N7ktwHGqQcl37oS9Qn+dlEQn7ON1Qz+M+YiV1c2Lyl5RxaODDiYmJ0jfwoT7jpxEvKkO nrsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:to:from:dkim-signature; bh=SzaWKLWD8E94bO34UNye9GK8jjdcNmBbOJahWF2TWpY=; b=Kw0ZtHDFgaNjx21sc2fuwSlPhxCU6cdzqu2M8U5qc2KZ/+CiaIGoFZW8xz+TFN5C9E lF1rERfB/EVvcUhvV0kOVV74z2PGxnhK4W5CLjw2lnyt0kX+zIaXXiPABFbX+SCD7WKJ FKTvLtAtbJA75A2smq91BADzYTk2pL1fEU7LhYtGC4n0+R33d0kXa6QjRf1N9Hb6CIXC 1WYb+J4g7PVyiieh73a5Kiz/8n0FyMCz4XJLKSPzGYY25m4kZFGOYrllEJbrCXQF1fuD DTdPfwZ6pWwKmMrp26kSWuYew7QxDRelsjvLPjbPIZ+5ed4UgBek1FLdEVUWcOQthYSF cX3w== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=MfwpndPC; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::434 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pf1-x434.google.com (mail-pf1-x434.google.com. [2607:f8b0:4864:20::434]) by gmr-mx.google.com with ESMTPS id l72si537556pge.0.2019.08.26.09.03.29 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 26 Aug 2019 09:03:29 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::434 as permitted sender) client-ip=2607:f8b0:4864:20::434; Original-Received: by mail-pf1-x434.google.com with SMTP id o70so12078807pfg.5 for ; Mon, 26 Aug 2019 09:03:29 -0700 (PDT) X-Received: by 2002:a65:6081:: with SMTP id t1mr17301256pgu.9.1566835409072; Mon, 26 Aug 2019 09:03:29 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id u7sm10782172pgr.94.2019.08.26.09.03.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Aug 2019 09:03:28 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 85F9CA18E; Mon, 26 Aug 2019 12:03:17 -0400 (EDT) In-Reply-To: <5fcaa4c1-5956-407d-9243-5e73df894b14-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=MfwpndPC; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::434 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@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:23306 Archived-At: Pandoc is generally solid with standard latex and the most common packages, but it can't handle tex primitives like \kern or \raise1pt well. If there is a unicode character, or combination of characters, that approximates \boxright, then (assuming you're using xelatex or lualatex) you may be able to do something like \newcommand{\boxright}{=C2=B5} where =C2=B5 stands in for whatever the unicode character is. The character would be passed directly through to Word. Give it a try. =E5=90=B4=E5=B0=8F=E5=AE=89 writes: > Thank you Professor MacFarlane ! > > I tried this one : > > \documentclass{article} > > \usepackage{amsmath} > > \usepackage{unicode-math} > > \usepackage{amsfonts} > > \newcommand{\boxright}{\ensuremath{% > > \mathrel{\Box\kern-1.5pt\raise1pt\hbox{$\mathord{\rightarrow}$}}}} > > \begin{document} > > $A\boxright B$ > > \end{document} > > > but it doesn't work, I thought these packages are pandoc can handle = (https://pandoc.org/MANUAL.html).=20 > > > > On Monday, August 26, 2019 at 2:48:03 PM UTC+8, John MacFarlane wrote: >> >> >> Adding a package won't help in this case. The texmath library=20 >> doesn't understand \boxright.=20 >> >> However, you could write your own macro to redefine=20 >> \boxright to something pandoc can handle, and include=20 >> this macro in your tex document.=20 >> >> =E5=90=B4=E5=B0=8F=E5=AE=89 > writes:=20 >> >> > Hi, I try to convert a tex document to word, everything is fine, but= =20 >> the=20 >> > $boxright$ can not convert ([WARNING] Could not convert TeX math 'A=20 >> > \boxright C', rendering as TeX: A \boxright C )=20 >> >=20 >> > I don't know how to add "\usepackage{pifont}" to the pandoc, could y= ou=20 >> > tell me how can I do it ? Thank you very much !=20 >> >=20 >> > =20 >> >=20 >> > --=20 >> > You received this message because you are subscribed to the Google=20 >> Groups "pandoc-discuss" group.=20 >> > To unsubscribe from this group and stop receiving emails from it, send= =20 >> an email to pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org .=20 >> > To view this discussion on the web visit=20 >> https://groups.google.com/d/msgid/pandoc-discuss/148055b7-05a4-4ecd-9527= -464cb1308518%40googlegroups.com.=20 >> >> > > --=20 > 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 view this discussion on the web visit https://groups.google.com/d/msgi= d/pandoc-discuss/5fcaa4c1-5956-407d-9243-5e73df894b14%40googlegroups.com. --=20 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 e= mail to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/m2d0grgbi2.fsf%40johnmacfarlane.net.