From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28397 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: jiewuza Newsgroups: gmane.text.pandoc Subject: The difference between image caption and title Date: Thu, 20 May 2021 09:39:29 +0800 (GMT+08:00) Organization: news.gmane.io Message-ID: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_2_115498933.1621474769547" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32973"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCKYBFEGRAJRB3X3S2CQMGQEUU53QVI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu May 20 03:40:00 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ej1-f58.google.com ([209.85.218.58]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ljXfM-0008NA-MM for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 20 May 2021 03:40:00 +0200 Original-Received: by mail-ej1-f58.google.com with SMTP id c11-20020a170906170bb02903bbefa04cd1sf4406869eje.8 for ; Wed, 19 May 2021 18:40:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1621474799; cv=pass; d=google.com; s=arc-20160816; b=KOMgC6WFcFGUYmI5c72dCORgSZ8FsRiLBXE52jREbgmPOjo0dYLUhSl7VDPOt0u+ob 88g77DMiqUk07DZF8TvYfDqaUx0JJd1IVjqhtFRcVJdrrwFHVlgrxI/rqixzpvrgqlhK yjSYffcqB9cHykph73sfcHWsFUuWuk0SkxKTym5jn8BEbPd/33x8TXWKei1vUc/17oGp yN+pxNdbGQMypkZIgtTmy2h31LMgrIg0F8DBCY0NB9DLRZ79qyknWv2qVMGUxeGO0d0b CS0Mr1yO2BWQ0K9QbSjjtUoMqjffptB9dWaSb4R+8wSecwh24RZOT3GB/lQZn5UOqABQ 975A== 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:mime-version:message-id :organization:date:subject:from:to:sender:dkim-signature; bh=QBADNBMueXh2un2cyPwnwgMkZRZ9iDf359EynVAkQ5M=; b=Q7Lo4IyB2qOF9b8qTPbWOXXY9RLzPPfuXzHl1IdlZuD+GFtBAPkrvf3VVHJJWPJesi LlptUIXLEPPxU8tWNrDDtv//9RLhf1t3hqJfoCtYL5bVpQrfSrvPTP0EnffKuXTbz2mi Fd0dQVGHeo+BayDL6kAnLo+FEFtOPtkfhOHg2/yalsCgbQHW2FQjyRbxkjXvqdDaVyFJ 3FkW0eTX6wVVHlmcFqDBaZQRMgY3JZsnkc1e6w+VDAf70t5J/t//IPIvNBKBK4qxQOrq 5ZCwVyzYmJrv65PMjME45MkLP+vuuy6OK2DwPsYy/JxHWzkkP5sbLtg0Gaq0Ig+pEbaK Wa7A== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of gtp-pandoc-discuss@m.gmane-mx.org designates 116.202.254.214 as permitted sender) smtp.mailfrom=gtp-pandoc-discuss@m.gmane-mx.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=163.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:to:from:subject:date:organization:message-id:mime-version :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=QBADNBMueXh2un2cyPwnwgMkZRZ9iDf359EynVAkQ5M=; b=sX9h7F04psFtTnHI95jw4cuk8FzFaAlbyx5x3gPrsu7RwXZdqTMkXBCxAiBgyl6W7x OsRNpidhTdRtIuweApoWeZpT6Gq51FsxZfzzwdTPAJG86PFaf0Rlu7j63mfgrLSPMva2 q9YsqbN1OYND4MKXYOArQFkJf5Rl2wRtRr2xAgK6S9QvUkoUSrdJa/Yvlmi97HjX9hxV JXWfUkt0zrJdHLze+MAFtiFyccLIPl5I3mXv3p09tO1gHrBZfCnjIvaFxHvd1O9+217C X6UhRQXr2bBBdFH2lEeTEotgKapdtOT4Np4z/gyrMhVP0UNJ/FGK3mR3QYgUtkb8FvYT tywA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:to:from:subject:date:organization :message-id:mime-version: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=QBADNBMueXh2un2cyPwnwgMkZRZ9iDf359EynVAkQ5M=; b=c0Wr3SOb2huFZepNK6vl6VkoV+dXJ2db8DJcmDUXEnLtQgRBfkRHc5JK7HtGe354YL LFJxdRVgWGRAwi7jBkwphw6F/1HhjKqeJtPAb/tGix0ibJh+F5gvPgSyLtXQa8fj96Yh k8d3EFZBKSNZfIk14we3alqR5B5f64/P8OqlVS7Kgqy8zpo3MxHe10vUkLSd3tHlXtFx TN+qdoPllvDQn4/sR3QxyCDSYNMFCdyYpKhGcVeLhn9KBZlLpeBIipvGzCq4Hv8nCRCF +Wb+OWOY6zo7CJ4yyibqhYfeQIC4Dqq6PoC0SisxQ6ko24t/mvkBEObvWaUFVai9Zu5g iGWA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM531grQMx6KIzU5ByD6AuIVeoNr7PuLSzppgCk379Foedka8nAL71 7nPV/0gGy2HlgXwBelbsnT0= X-Google-Smtp-Source: ABdhPJwfdEkVLt895Je5/YWgd42IrHA8NlvVGmx4EEq8VaG/uP8vXDhN4eGyn4/wsvdwHCn6deH6og== X-Received: by 2002:a50:f385:: with SMTP id g5mr2278414edm.222.1621474799788; Wed, 19 May 2021 18:39:59 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a17:907:20d6:: with SMTP id qq22ls609688ejb.3.gmail; Wed, 19 May 2021 18:39:57 -0700 (PDT) X-Received: by 2002:a17:906:26d4:: with SMTP id u20mr2215823ejc.114.1621474797354; Wed, 19 May 2021 18:39:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621474797; cv=none; d=google.com; s=arc-20160816; b=vfOamA9bOaFQd5yMUV2Txas1BcAqubEUJZeHtIKgPYrRzPN7ZYgsHHc4bj/5iI7jTC Awx22sQNDEibxOSMA/oTEIW3mA4tmpTS5pUQzcFf5gq2tvhpjuWgyNm8aXgVYrcd9Ztt Z6fcHOPNpxgKdi9YCigpgNC5prGFoiyAI3gdWf6PyjE3r2b+YaKQewbNyVMtEaDy1YXc h3CXnvqvqErMUmgQuvV2HjcW0VmK3ipKsnOebWvuO2SRzCuodfLFF17BKcyzsMit3Z+Z hQ8aK1WhgmPqDaR6Wj/BHX/EwrkrwdleqE2ZjQhR/hYzAHChZXoAZVZ2nXWBrsY3gN96 Yawg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:organization:date:subject:from:to; bh=HQiQ9DDgTfxYvGgoxln7gTSajtlzQJ2QxN7zI62nqaw=; b=UUFAyOPDR2Tn1tDcttJUS8/9KrXbnqWnvb42Pz+XjEu4Tw1dcHeUKdbS1Tw9XdrSCP 1BkIvX4TUdhkjJga81Nu6MNpXgVnPs4u1DPoee1pqOZbCIIZn9RE3JOL2vICzIf99nUI Pvig5BelVgkNR7a5P1bYfS3zEayXvdiiPdLd/uZOfVrfNoh7OkiKBnjT5/cT9+aJ4zOL N2OI0Whh43deyy5mgNgySZvIPDyYlWC0TWxoXTKebPzOb6qr0P4aWfKS7i1g6shl5D+3 48h88VMrbdod6z8XhDpRl6G10n5jPy8epesV6wVixH66qawClaHlyrTcgXzWDDFUFr2R avLA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of gtp-pandoc-discuss@m.gmane-mx.org designates 116.202.254.214 as permitted sender) smtp.mailfrom=gtp-pandoc-discuss@m.gmane-mx.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=163.com Original-Received: from ciao.gmane.io (ciao.gmane.io. [116.202.254.214]) by gmr-mx.google.com with ESMTPS id b25si71792edr.3.2021.05.19.18.39.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 May 2021 18:39:57 -0700 (PDT) Received-SPF: pass (google.com: domain of gtp-pandoc-discuss@m.gmane-mx.org designates 116.202.254.214 as permitted sender) client-ip=116.202.254.214; Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1ljXfI-0008Jb-If for pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; Thu, 20 May 2021 03:39:56 +0200 X-Injected-Via-Gmane: http://gmane.org/ X-Newsreader: PiaoHong NewsGroups Reader 1.27 X-Original-Sender: gtp-pandoc-discuss@m.gmane-mx.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of gtp-pandoc-discuss@m.gmane-mx.org designates 116.202.254.214 as permitted sender) smtp.mailfrom=gtp-pandoc-discuss@m.gmane-mx.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=163.com 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.io gmane.text.pandoc:28397 Archived-At: ------=_Part_2_115498933.1621474769547 Content-Type: text/plain; charset="UTF-8" I have tested a lua function: ``` function handleFigure(el) ... --- some code to get the figure and caption object if caption.content[1] then figure.caption = caption.content[1] print(TableToStr(figure)) end ---figure.title = 'fig:' return pandoc.Para{ figure } end ``` The printed info as below shows the caption is set correctly. ``` {['attr']={['identifier']='',['classes']={},['attributes']={}},['caption']={['content']={{['text']='xxx'},{},{['text']='yyy'}}},['src']='img/logo.png',['title']=''} ``` But the resulting latex is (What I expected is a floating figure since it has a caption) ``` \includegraphics{img/logo.png} ``` When I uncomment the line of setting figure.title, I get the expected latex result, except that the caption is still empty. ``` \begin{figure} \centering \includegraphics{img/logo.png} \caption{} \end{figure} ``` So I am confused what is the difference between caption and title, and how can I set the caption. --